Class OptimizationEventListener
java.lang.Object
com.dna.jopt.framework.body.event.OptimizationEventListener
- All Implemented Interfaces:
IOptimizationEventListener
The listener interface for receiving optimizationEvent events. The class that is interested in
processing a optimizationEvent event implements this interface, and the object created with that
class is registered with a component using the component's
addOptimizationEventListener
method. When the optimizationEvent event occurs, that object's appropriate method is
invoked.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonAfterNodeFilteringOptimizationResult(IOptimizationResult requestedresult) voidonAsynchronousOptimizationResult(IOptimizationResult rapoptResult) On asynchronous optimization result.voidonBeforeNodeFilteringOptimizationResult(IOptimizationResult requestedresult) voidOn error.voidonError(IErrorEvent errorEvent) On error.voidonNodeFiltering(int code, String message, List<INodeFilterReason> filterReasons) On node filtering.voidonNodeFiltering(NodeFilteringEvent nodeFilteringEvent) On node filtering.voidonProgress(IOptimizationProgress rapoptProgress) On progress.voidonProgress(String winnerProgressString) On progress.voidonRequestCodeExecutionDone(String executionId) On asynch execution done.voidOn status.voidonStatus(IStatusEvent statusEvent) On status.voidOn warning.voidonWarning(IWarningEvent warningEvent) On warning.voidrequestedAsynchronousOptimizationResult(IOptimizationResult requestedresult) Requested asynchronous optimization result.
-
Constructor Details
-
OptimizationEventListener
public OptimizationEventListener()
-
-
Method Details
-
onError
Description copied from interface:IOptimizationEventListenerOn error.- Specified by:
onErrorin interfaceIOptimizationEventListener- Parameters:
code- the codemessage- the message
-
onError
Description copied from interface:IOptimizationEventListenerOn error.- Specified by:
onErrorin interfaceIOptimizationEventListener- Parameters:
errorEvent- the error event
-
onStatus
Description copied from interface:IOptimizationEventListenerOn status.- Specified by:
onStatusin interfaceIOptimizationEventListener- Parameters:
code- the codemessage- the message
-
onStatus
Description copied from interface:IOptimizationEventListenerOn status.- Specified by:
onStatusin interfaceIOptimizationEventListener- Parameters:
statusEvent- the status event
-
onWarning
Description copied from interface:IOptimizationEventListenerOn warning.- Specified by:
onWarningin interfaceIOptimizationEventListener- Parameters:
code- the codemessage- the message
-
onWarning
Description copied from interface:IOptimizationEventListenerOn warning.- Specified by:
onWarningin interfaceIOptimizationEventListener- Parameters:
warningEvent- the i warning event
-
onProgress
Description copied from interface:IOptimizationEventListenerOn progress. UseIOptimizationEventListener.onProgress(IOptimizationProgress)instead- Specified by:
onProgressin interfaceIOptimizationEventListener- Parameters:
winnerProgressString- the winner progress string
-
onProgress
Description copied from interface:IOptimizationEventListenerOn progress.- Specified by:
onProgressin interfaceIOptimizationEventListener- Parameters:
rapoptProgress- the cur best entity
-
onAsynchronousOptimizationResult
Description copied from interface:IOptimizationEventListenerOn asynchronous optimization result.- Specified by:
onAsynchronousOptimizationResultin interfaceIOptimizationEventListener- Parameters:
rapoptResult- the winner
-
onNodeFiltering
Description copied from interface:IOptimizationEventListenerOn node filtering.- Specified by:
onNodeFilteringin interfaceIOptimizationEventListener- Parameters:
code- the codemessage- the messagefilterReasons- the filter reasons
-
onNodeFiltering
Description copied from interface:IOptimizationEventListenerOn node filtering.- Specified by:
onNodeFilteringin interfaceIOptimizationEventListener- Parameters:
nodeFilteringEvent- the node filtering event
-
onRequestCodeExecutionDone
Description copied from interface:IOptimizationEventListenerOn asynch execution done.- Specified by:
onRequestCodeExecutionDonein interfaceIOptimizationEventListener- Parameters:
executionId- the execution id
-
requestedAsynchronousOptimizationResult
Description copied from interface:IOptimizationEventListenerRequested asynchronous optimization result.- Specified by:
requestedAsynchronousOptimizationResultin interfaceIOptimizationEventListener- Parameters:
requestedresult- the requestedresult
-
onBeforeNodeFilteringOptimizationResult
- Specified by:
onBeforeNodeFilteringOptimizationResultin interfaceIOptimizationEventListener
-
onAfterNodeFilteringOptimizationResult
- Specified by:
onAfterNodeFilteringOptimizationResultin interfaceIOptimizationEventListener
-