Package es.urjc.etsii.grafo.events.types
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
Triggered when starting an experiment before any other action occurs
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet list of algorithms to execute in the current experimentGet current experiment nameGet current instance nameGet reference value for instance if availableint
Get number of repetitions for each (instance, algorithm) pair.Methods inherited from class es.urjc.etsii.grafo.events.types.MorkEvent
equals, getEventId, getType, getWorkerName, hashCode
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
Methods inherited from class java.util.EventObject
getSource, toString
-
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 nameinstanceName
- instance namealgorithms
- list of algorithms to execute in the current experimentrepetitions
- number of repetitions for each (instance, algorithm) pairrefValues
- best value for the given instance if known.
-
-
Method Details
-
getExperimentName
Get current experiment name- Returns:
- current experiment name
-
getInstanceName
Get current instance name- Returns:
- instance name
-
getRefValues
Get reference value for instance if available- Returns:
- reference value, or empty if not configured via a ReferenceResultProvider
-
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.
-