Package org.opt4j.viewer
Provides the classes for the optimization visualization, i.e., the Viewer
.
The Viewer
is a JFrame
consisting of the
following elements:
The Viewport
is a desktop for Widget
elements.
A widget is similar to a JInternalFrame
, several properties are
defined in the WidgetParameters
. Widgets are added
directly to the viewport.
Additional buttons are added to the ToolBar
using the
ToolBarService
. Each ToolBarService
is added in
the VisualizationModule
.
One predefined specific widget is the ArchiveWidget
.
This widget shows all Individual
s which are currently in the
Archive
. By default, these are the best Individual
s found so far during the optimization process. In practice a user
might want to visualize one of these Individual
s or their Phenotype
, respectively. The IndividualMouseListener
is used to listen to the double-clicking of an Individual
in the
Archive
as well as a popup handling which is usually invoked by a
right-click. An IndividualMouseListener
is added in the
VisualizationModule
.
-
ClassDescriptionA widget that monitors the archive.The
ControlButtons
containsJButton
s for the controls:TheControlToolBarService
is aToolBarService
that allows toControl
theOptimizer
.This service has anToolBarOrder
with-100
.TheConvergencePlotWidget
plots the convergence for eachObjective
.TheDelayTask
executes tasks immediately or delayed if they arrive too close (delay).Listener for mouse events onIndividual
s.TheObjectivesMonitor
informs its listeners about theObjective
s of the optimization problem as soon as it is available.TheObjectivesMonitor.ObjectivesListener
is an interface for classes that need the objectives.A widget that monitors thePopulation
.TheStatusBar
contains informations about the optimization progress and time per iteration.TheToolBar
is a collection of theToolBarService
s.TheToolBarOrder
Annotation is used forToolBarService
ordering.TheToolBarService
is an interface for arbitrary components that are added to the tool bar in the viewer.TheViewer
.TheViewer.CloseEvent
that is triggered if this viewer is closed.TheViewerModule
configures the optimization process viewer.TheVisualizationModule
.TheWidgetParameters
.