Class AbstractEvaluationModule

    • Field Detail

      • LOGGER

        private static final org.slf4j.Logger LOGGER
      • consumer

        protected com.rabbitmq.client.QueueingConsumer consumer
        Consumer used to receive the responses from the evaluation storage.
      • evalModule2EvalStoreQueue

        protected RabbitQueue evalModule2EvalStoreQueue
        Queue to the evaluation storage.
      • evalStore2EvalModuleQueue

        protected RabbitQueue evalStore2EvalModuleQueue
        Incoming queue from the evaluation storage.
      • experimentUri

        protected String experimentUri
        The URI of the experiment.
    • Constructor Detail

      • AbstractEvaluationModule

        public AbstractEvaluationModule()
    • Method Detail

      • run

        public void run()
                 throws Exception
        Description copied from interface: Component
        This method executes the component.
        Throws:
        Exception - if an error occurs during the execution
      • evaluateResponse

        protected abstract void evaluateResponse​(byte[] expectedData,
                                                 byte[] receivedData,
                                                 long taskSentTimestamp,
                                                 long responseReceivedTimestamp)
                                          throws Exception
        Evaluates the given response pair.
        Parameters:
        expectedData - the data that has been expected
        receivedData - the data that has been received from the system
        taskSentTimestamp - the time at which the task has been sent to the system
        responseReceivedTimestamp - the time at which the response has been received from the system
        Throws:
        Exception - if an error occurs during the evaluation
      • summarizeEvaluation

        protected abstract org.apache.jena.rdf.model.Model summarizeEvaluation()
                                                                        throws Exception
        Summarizes the evaluation and generates an RDF model containing the evaluation results.
        Returns:
        an RDF model containing the evaluation results
        Throws:
        Exception - if a sever error occurs
      • sendResultModel

        private void sendResultModel​(org.apache.jena.rdf.model.Model model)
                              throws IOException
        Sends the model to the benchmark controller.
        Parameters:
        model - the model that should be sent
        Throws:
        IOException - if an error occurs during the commmunication
      • createDefaultModel

        protected org.apache.jena.rdf.model.Model createDefaultModel()