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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionget()
Returns the component.void
init()
Initialization.void
iterationComplete
(Optimizer optimizer, int iteration) Invoked if theOptimizer
completes an iteration.void
optimizationStarted
(Optimizer optimizer) Invoked if theOptimizer
starts the optimization process.void
optimizationStopped
(Optimizer optimizer) Invoked if theOptimizer
stops 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:OptimizerIterationListener
Invoked if theOptimizer
completes an iteration.- Specified by:
iterationComplete
in interfaceOptimizerIterationListener
- Parameters:
optimizer
- the optimizeriteration
- the completed iteration
-
optimizationStarted
Description copied from interface:OptimizerStateListener
Invoked if theOptimizer
starts the optimization process.- Specified by:
optimizationStarted
in interfaceOptimizerStateListener
- Parameters:
optimizer
- the optimizer
-
optimizationStopped
Description copied from interface:OptimizerStateListener
Invoked if theOptimizer
stops the optimization process.- Specified by:
optimizationStopped
in interfaceOptimizerStateListener
- Parameters:
optimizer
- the optimizer
-