Class CallbackExtension
java.lang.Object
org.moeaframework.algorithm.extension.CallbackExtension
- All Implemented Interfaces:
Extension
Extension that invokes a callback function every iteration.
-
Constructor Summary
ConstructorDescriptionCallbackExtension
(Consumer<Algorithm> callback) Creates a new callback extension. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.moeaframework.algorithm.extension.Extension
onInitialize, onRegister, onTerminate
-
Constructor Details
-
CallbackExtension
Creates a new callback extension.- Parameters:
callback
- the callback function
-
-
Method Details