Interface IOptimizationEventListener
- All Known Subinterfaces:
IOptimization
- All Known Implementing Classes:
Optimization,OptimizationEventListener
public interface IOptimizationEventListener
The listener interface for receiving IOptimizationEvent events.
The class that is interested in processing a IOptimizationEvent
event implements this interface, and the object created
with that class is registered with a component using the
component's
addIOptimizationEventListener method. When
the IOptimizationEvent event occurs, that object's appropriate
method is invoked.- See Also:
-
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 iWarningEvent) On warning.voidrequestedAsynchronousOptimizationResult(IOptimizationResult requestedresult) Requested asynchronous optimization result.
-
Method Details
-
onError
On error.- Parameters:
code- the codemessage- the message
-
onError
On error.- Parameters:
errorEvent- the error event
-
onStatus
On status.- Parameters:
code- the codemessage- the message
-
onStatus
On status.- Parameters:
statusEvent- the status event
-
onWarning
On warning.- Parameters:
code- the codemessage- the message
-
onWarning
On warning.- Parameters:
iWarningEvent- the i warning event
-
onProgress
On progress. UseonProgress(IOptimizationProgress)instead- Parameters:
winnerProgressString- the winner progress string
-
onProgress
On progress.- Parameters:
rapoptProgress- the cur best entity
-
onAsynchronousOptimizationResult
On asynchronous optimization result.- Parameters:
rapoptResult- the winner
-
onNodeFiltering
On node filtering.- Parameters:
code- the codemessage- the messagefilterReasons- the filter reasons
-
onNodeFiltering
On node filtering.- Parameters:
nodeFilteringEvent- the node filtering event
-
onRequestCodeExecutionDone
On asynch execution done.- Parameters:
executionId- the execution id
-
requestedAsynchronousOptimizationResult
Requested asynchronous optimization result.- Parameters:
requestedresult- the requestedresult
-
onBeforeNodeFilteringOptimizationResult
-
onAfterNodeFilteringOptimizationResult
-