Package org.opt4j.viewer
Class StatusBar
java.lang.Object
org.opt4j.viewer.StatusBar
- All Implemented Interfaces:
OptimizerIterationListener,OptimizerStateListener
The
StatusBar contains informations about the optimization progress
and time per iteration.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget()Returns the component.voidinit()Initialization.voiditerationComplete(Optimizer optimizer, int iteration) Invoked if theOptimizercompletes an iteration.voidoptimizationStarted(Optimizer optimizer) Invoked if theOptimizerstarts the optimization process.voidoptimizationStopped(Optimizer optimizer) Invoked if theOptimizerstops the optimization process.protected void
-
Field Details
-
progress
-
task
-
label
-
timeLabel
-
bar
-
panel
-
time
protected long time
-
-
Constructor Details
-
StatusBar
Constructs aStatusBar.- Parameters:
progress- the progress
-
-
Method Details
-
init
public void init()Initialization. This method has to called once after construction. -
update
-
get
Returns the component.- Returns:
- the component
-
iterationComplete
Description copied from interface:OptimizerIterationListenerInvoked if theOptimizercompletes an iteration.- Specified by:
iterationCompletein interfaceOptimizerIterationListener- Parameters:
optimizer- the optimizeriteration- the completed iteration
-
optimizationStarted
Description copied from interface:OptimizerStateListenerInvoked if theOptimizerstarts the optimization process.- Specified by:
optimizationStartedin interfaceOptimizerStateListener- Parameters:
optimizer- the optimizer
-
optimizationStopped
Description copied from interface:OptimizerStateListenerInvoked if theOptimizerstops the optimization process.- Specified by:
optimizationStoppedin interfaceOptimizerStateListener- Parameters:
optimizer- the optimizer
-