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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onAfterNodeFilteringOptimizationResult
(IOptimizationResult requestedresult) void
onAsynchronousOptimizationResult
(IOptimizationResult rapoptResult) On asynchronous optimization result.void
onBeforeNodeFilteringOptimizationResult
(IOptimizationResult requestedresult) void
On error.void
onError
(IErrorEvent errorEvent) On error.void
onNodeFiltering
(int code, String message, List<INodeFilterReason> filterReasons) On node filtering.void
onNodeFiltering
(NodeFilteringEvent nodeFilteringEvent) On node filtering.void
onProgress
(IOptimizationProgress rapoptProgress) On progress.void
onProgress
(String winnerProgressString) On progress.void
onRequestCodeExecutionDone
(String executionId) On asynch execution done.void
On status.void
onStatus
(IStatusEvent statusEvent) On status.void
On warning.void
onWarning
(IWarningEvent warningEvent) On warning.void
requestedAsynchronousOptimizationResult
(IOptimizationResult requestedresult) Requested asynchronous optimization result.
-
Constructor Details
-
OptimizationEventListener
public OptimizationEventListener()
-
-
Method Details
-
onError
Description copied from interface:IOptimizationEventListener
On error.- Specified by:
onError
in interfaceIOptimizationEventListener
- Parameters:
code
- the codemessage
- the message
-
onError
Description copied from interface:IOptimizationEventListener
On error.- Specified by:
onError
in interfaceIOptimizationEventListener
- Parameters:
errorEvent
- the error event
-
onStatus
Description copied from interface:IOptimizationEventListener
On status.- Specified by:
onStatus
in interfaceIOptimizationEventListener
- Parameters:
code
- the codemessage
- the message
-
onStatus
Description copied from interface:IOptimizationEventListener
On status.- Specified by:
onStatus
in interfaceIOptimizationEventListener
- Parameters:
statusEvent
- the status event
-
onWarning
Description copied from interface:IOptimizationEventListener
On warning.- Specified by:
onWarning
in interfaceIOptimizationEventListener
- Parameters:
code
- the codemessage
- the message
-
onWarning
Description copied from interface:IOptimizationEventListener
On warning.- Specified by:
onWarning
in interfaceIOptimizationEventListener
- Parameters:
warningEvent
- the i warning event
-
onProgress
Description copied from interface:IOptimizationEventListener
On progress. UseIOptimizationEventListener.onProgress(IOptimizationProgress)
instead- Specified by:
onProgress
in interfaceIOptimizationEventListener
- Parameters:
winnerProgressString
- the winner progress string
-
onProgress
Description copied from interface:IOptimizationEventListener
On progress.- Specified by:
onProgress
in interfaceIOptimizationEventListener
- Parameters:
rapoptProgress
- the cur best entity
-
onAsynchronousOptimizationResult
Description copied from interface:IOptimizationEventListener
On asynchronous optimization result.- Specified by:
onAsynchronousOptimizationResult
in interfaceIOptimizationEventListener
- Parameters:
rapoptResult
- the winner
-
onNodeFiltering
Description copied from interface:IOptimizationEventListener
On node filtering.- Specified by:
onNodeFiltering
in interfaceIOptimizationEventListener
- Parameters:
code
- the codemessage
- the messagefilterReasons
- the filter reasons
-
onNodeFiltering
Description copied from interface:IOptimizationEventListener
On node filtering.- Specified by:
onNodeFiltering
in interfaceIOptimizationEventListener
- Parameters:
nodeFilteringEvent
- the node filtering event
-
onRequestCodeExecutionDone
Description copied from interface:IOptimizationEventListener
On asynch execution done.- Specified by:
onRequestCodeExecutionDone
in interfaceIOptimizationEventListener
- Parameters:
executionId
- the execution id
-
requestedAsynchronousOptimizationResult
Description copied from interface:IOptimizationEventListener
Requested asynchronous optimization result.- Specified by:
requestedAsynchronousOptimizationResult
in interfaceIOptimizationEventListener
- Parameters:
requestedresult
- the requestedresult
-
onBeforeNodeFilteringOptimizationResult
- Specified by:
onBeforeNodeFilteringOptimizationResult
in interfaceIOptimizationEventListener
-
onAfterNodeFilteringOptimizationResult
- Specified by:
onAfterNodeFilteringOptimizationResult
in interfaceIOptimizationEventListener
-