Class AdaptiveTimeContinuationExtensionCollector
java.lang.Object
org.moeaframework.analysis.runtime.AdaptiveTimeContinuationExtensionCollector
- All Implemented Interfaces:
EventListener,RestartListener,Collector
public class AdaptiveTimeContinuationExtensionCollector
extends Object
implements Collector, RestartListener
Collects the number of restart events resulting from
AdaptiveTimeContinuationExtension.-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an unattached collector for recording the number of restart events resulting fromAdaptiveTimeContinuationExtension.Constructs a collector for recording the number of restart events resulting from the specifiedAdaptiveTimeContinuationExtensioninstance. -
Method Summary
Modifier and TypeMethodDescriptionReturns a new instance of this collector which has been attached to the specified object as identified by the attach point returned throughCollector.getAttachPoint().voidcollect(ResultEntry result) Collects the requested information from the object, storing the data to the given result.Returns the attach point describing where this collector is attached.static intgetNumberOfRestarts(ResultEntry result) Reads the number of restarts value from the result.voidrestarted(RestartEvent event) Invoked when a restart event has occurred.
-
Constructor Details
-
AdaptiveTimeContinuationExtensionCollector
public AdaptiveTimeContinuationExtensionCollector()Constructs an unattached collector for recording the number of restart events resulting fromAdaptiveTimeContinuationExtension. -
AdaptiveTimeContinuationExtensionCollector
Constructs a collector for recording the number of restart events resulting from the specifiedAdaptiveTimeContinuationExtensioninstance.- Parameters:
extension- the extension this collector records data from
-
-
Method Details
-
collect
Description copied from interface:CollectorCollects the requested information from the object, storing the data to the given result. This method must only be invoked after this collector has been attached to an appropriate object. -
restarted
Description copied from interface:RestartListenerInvoked when a restart event has occurred.- Specified by:
restartedin interfaceRestartListener- Parameters:
event- the object storing details about the restart event
-
getAttachPoint
Description copied from interface:CollectorReturns the attach point describing where this collector is attached. The matched object should be unique.- Specified by:
getAttachPointin interfaceCollector- Returns:
- the attach point describing where this collector is attached
-
attach
Description copied from interface:CollectorReturns a new instance of this collector which has been attached to the specified object as identified by the attach point returned throughCollector.getAttachPoint(). -
getNumberOfRestarts
Reads the number of restarts value from the result.- Parameters:
result- the result- Returns:
- the number of restarts
-