Class RuntimeCollectorExtension
java.lang.Object
org.moeaframework.algorithm.extension.PeriodicExtension
org.moeaframework.algorithm.extension.RuntimeCollectorExtension
Extends an algorithm to record the approximation sets at periodic intervals.
-
Field Summary
Fields inherited from class org.moeaframework.algorithm.extension.PeriodicExtension
frequency, iteration, lastInvocation -
Constructor Summary
ConstructorsConstructorDescriptionRuntimeCollectorExtension(ResultFileWriter writer, Frequency frequency) Constructs a new wrapper to collect runtime dynamics. -
Method Summary
Modifier and TypeMethodDescriptionvoidThe action that is called by this extension.voidonRegister(Algorithm algorithm) Called when this extension is registered with an algorithm.Methods inherited from class org.moeaframework.algorithm.extension.PeriodicExtension
loadState, onStep, saveStateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.moeaframework.algorithm.extension.Extension
onInitialize, onRun, onTerminate
-
Constructor Details
-
RuntimeCollectorExtension
Constructs a new wrapper to collect runtime dynamics.- Parameters:
writer- the result file writer where the runtime information is storedfrequency- the frequency at which the runtime snapshots are recorded
-
-
Method Details
-
onRegister
Description copied from interface:ExtensionCalled when this extension is registered with an algorithm. This can be used to perform any type checking or initialization.- Specified by:
onRegisterin interfaceExtension- Overrides:
onRegisterin classPeriodicExtension- Parameters:
algorithm- the algorithm associated with this extension
-
doAction
Description copied from class:PeriodicExtensionThe action that is called by this extension.- Specified by:
doActionin classPeriodicExtension- Parameters:
algorithm- the algorithm associated with this extension
-