Package org.opt4j.viewer
Class StatusBar
- java.lang.Object
-
- org.opt4j.viewer.StatusBar
-
- All Implemented Interfaces:
OptimizerIterationListener
,OptimizerStateListener
public class StatusBar extends Object implements OptimizerIterationListener, OptimizerStateListener
TheStatusBar
contains informations about the optimization progress and time per iteration.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JComponent
get()
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
update(String message, String progressMessage)
-
-
-
Method Detail
-
init
public void init()
Initialization. This method has to called once after construction.
-
get
public JComponent get()
Returns the component.- Returns:
- the component
-
iterationComplete
public void iterationComplete(Optimizer optimizer, int iteration)
Description copied from interface:OptimizerIterationListener
Invoked if theOptimizer
completes an iteration.- Specified by:
iterationComplete
in interfaceOptimizerIterationListener
- Parameters:
optimizer
- the optimizeriteration
- the completed iteration
-
optimizationStarted
public void optimizationStarted(Optimizer optimizer)
Description copied from interface:OptimizerStateListener
Invoked if theOptimizer
starts the optimization process.- Specified by:
optimizationStarted
in interfaceOptimizerStateListener
- Parameters:
optimizer
- the optimizer
-
optimizationStopped
public void optimizationStopped(Optimizer optimizer)
Description copied from interface:OptimizerStateListener
Invoked if theOptimizer
stops the optimization process.- Specified by:
optimizationStopped
in interfaceOptimizerStateListener
- Parameters:
optimizer
- the optimizer
-
-