Package es.urjc.etsii.grafo.events.types
Class InstanceProcessingEndedEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
es.urjc.etsii.grafo.events.types.MorkEvent
es.urjc.etsii.grafo.events.types.InstanceProcessingEndedEvent
- All Implemented Interfaces:
Serializable
Triggered after ending an experiment
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionInstanceProcessingEndedEvent
(String experimentName, String instanceName, long executionTime, long experimentStartTime) Create a new instance processing ended event. -
Method Summary
Modifier and TypeMethodDescriptionlong
Get execution time in nanosGet current experiment namelong
Get experiment start time as a timestampGet instance nameMethods 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
-
InstanceProcessingEndedEvent
public InstanceProcessingEndedEvent(String experimentName, String instanceName, long executionTime, long experimentStartTime) Create a new instance processing ended event. The event is triggered by the framework when an instance has been solved by all the algorithms.- Parameters:
experimentName
- Current experiment nameinstanceName
- Instance nameexecutionTime
- Accumulated execution time in nanoseconds for this instanceexperimentStartTime
- experiment start timestamp
-
-
Method Details
-
getExperimentName
Get current experiment name- Returns:
- experiment name
-
getExecutionTime
public long getExecutionTime()Get execution time in nanos- Returns:
- execution time in nanos
-
getInstanceName
Get instance name- Returns:
- instance name
-
getExperimentStartTime
public long getExperimentStartTime()Get experiment start time as a timestamp- Returns:
- start time as a timestamp
-