public class ParetoPlotWidget extends Object implements OptimizerIterationListener, Widget, ObjectivesMonitor.ObjectivesListener
| Constructor and Description |
|---|
ParetoPlotWidget(Population population,
Archive archive,
Optimizer optimizer,
ObjectivesMonitor objectivesMonitor,
AutoZoomButton autoZoomButton)
Constructs a
ParetoPlotWidget. |
| Modifier and Type | Method and Description |
|---|---|
JPanel |
getPanel()
Returns the panel with the content.
|
void |
init(Viewport viewport)
Called once after the widget is added to the
Viewport. |
void |
iterationComplete(Optimizer optimizer,
int iteration)
Invoked if the
Optimizer completes an iteration. |
void |
objectives(Collection<Objective> objectives)
Callback method that passes the objectives of the optimization
problem.
|
@Inject public ParetoPlotWidget(Population population, Archive archive, Optimizer optimizer, ObjectivesMonitor objectivesMonitor, AutoZoomButton autoZoomButton)
ParetoPlotWidget.population - the populationarchive - the archiveoptimizer - the optimizerobjectivesMonitor - the objective monitor that determine the objective of the
optimization problempublic void init(Viewport viewport)
WidgetViewport.public void iterationComplete(Optimizer optimizer, int iteration)
OptimizerIterationListenerOptimizer completes an iteration.iterationComplete in interface OptimizerIterationListeneroptimizer - the optimizeriteration - the completed iterationpublic JPanel getPanel()
Widgetpublic void objectives(Collection<Objective> objectives)
ObjectivesMonitor.ObjectivesListenerobjectives in interface ObjectivesMonitor.ObjectivesListenerobjectives - the objectives