Class InstanceProcessingStartedEvent

java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
es.urjc.etsii.grafo.events.types.MorkEvent
es.urjc.etsii.grafo.events.types.InstanceProcessingStartedEvent
All Implemented Interfaces:
Serializable

public class InstanceProcessingStartedEvent extends MorkEvent
Triggered when starting an experiment before any other action occurs
See Also:
  • Constructor Details

    • InstanceProcessingStartedEvent

      public InstanceProcessingStartedEvent(String experimentName, String instanceName, List<? extends Algorithm<?,?>> algorithms, int repetitions, Map<String,Double> refValues)
      Create a new InstanceProcessingStartedEvent
      Parameters:
      experimentName - experiment name
      instanceName - instance name
      algorithms - list of algorithms to execute in the current experiment
      repetitions - number of repetitions for each (instance, algorithm) pair
      refValues - best value for the given instance if known.
  • Method Details

    • getExperimentName

      public String getExperimentName()
      Get current experiment name
      Returns:
      current experiment name
    • getInstanceName

      public String getInstanceName()
      Get current instance name
      Returns:
      instance name
    • getRefValues

      public Map<String,Double> getRefValues()
      Get reference value for instance if available
      Returns:
      reference value, or empty if not configured via a ReferenceResultProvider
    • getAlgorithms

      public List<? extends Algorithm<?,?>> getAlgorithms()
      Get list of algorithms to execute in the current experiment
      Returns:
      list of algorithms
    • getRepetitions

      public int getRepetitions()
      Get number of repetitions for each (instance, algorithm) pair.
      Returns:
      number of repetitions for each (instance, algorithm) pair.