public class OptimizationEventListener extends Object implements IOptimizationEventListener
addOptimizationEventListener
method. When the optimizationEvent event occurs, that object's appropriate method is
invoked.OptimizationEvents
Constructor and Description |
---|
OptimizationEventListener() |
Modifier and Type | Method and Description |
---|---|
void |
onAsynchronousOptimizationResult(IOptimizationResult rapoptResult)
On asynchronous optimization result.
|
void |
onError(IErrorEvent errorEvent)
On error.
|
void |
onError(int code,
String message)
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 |
onStatus(int code,
String message)
On status.
|
void |
onStatus(IStatusEvent statusEvent)
On status.
|
void |
onWarning(int code,
String message)
On warning.
|
void |
onWarning(IWarningEvent warningEvent)
On warning.
|
void |
requestedAsynchronousOptimizationResult(IOptimizationResult requestedresult)
Requested asynchronous optimization result.
|
public void onError(int code, String message)
IOptimizationEventListener
onError
in interface IOptimizationEventListener
code
- the codemessage
- the messagepublic void onError(IErrorEvent errorEvent)
IOptimizationEventListener
onError
in interface IOptimizationEventListener
errorEvent
- the error eventpublic void onStatus(int code, String message)
IOptimizationEventListener
onStatus
in interface IOptimizationEventListener
code
- the codemessage
- the messagepublic void onStatus(IStatusEvent statusEvent)
IOptimizationEventListener
onStatus
in interface IOptimizationEventListener
statusEvent
- the status eventpublic void onWarning(int code, String message)
IOptimizationEventListener
onWarning
in interface IOptimizationEventListener
code
- the codemessage
- the messagepublic void onWarning(IWarningEvent warningEvent)
IOptimizationEventListener
onWarning
in interface IOptimizationEventListener
warningEvent
- the i warning eventpublic void onProgress(String winnerProgressString)
IOptimizationEventListener
IOptimizationEventListener.onProgress(IOptimizationProgress)
insteadonProgress
in interface IOptimizationEventListener
winnerProgressString
- the winner progress stringpublic void onProgress(IOptimizationProgress rapoptProgress)
IOptimizationEventListener
onProgress
in interface IOptimizationEventListener
rapoptProgress
- the cur best entitypublic void onAsynchronousOptimizationResult(IOptimizationResult rapoptResult)
IOptimizationEventListener
onAsynchronousOptimizationResult
in interface IOptimizationEventListener
rapoptResult
- the winnerpublic void onNodeFiltering(int code, String message, List<INodeFilterReason> filterReasons)
IOptimizationEventListener
onNodeFiltering
in interface IOptimizationEventListener
code
- the codemessage
- the messagefilterReasons
- the filter reasonspublic void onNodeFiltering(NodeFilteringEvent nodeFilteringEvent)
IOptimizationEventListener
onNodeFiltering
in interface IOptimizationEventListener
nodeFilteringEvent
- the node filtering eventpublic void onRequestCodeExecutionDone(String executionId)
IOptimizationEventListener
onRequestCodeExecutionDone
in interface IOptimizationEventListener
executionId
- the execution idpublic void requestedAsynchronousOptimizationResult(IOptimizationResult requestedresult)
IOptimizationEventListener
requestedAsynchronousOptimizationResult
in interface IOptimizationEventListener
requestedresult
- the requestedresultCopyright © 2017–2023 DNA Evolutions GmbH. All rights reserved.