|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opt4j.viewer.ParetoPlotWidget
public class ParetoPlotWidget
The ParetoPlotWidget is a widget that displays the Population
and Archive in two dimensional plot.
| Nested Class Summary | |
|---|---|
protected class |
ParetoPlotWidget.Selection
The selection box for the current two objectives. |
| Field Summary | |
|---|---|
protected org.opt4j.viewer.SynchronizedIndividualSet |
archive
|
protected javax.swing.JPanel |
panel
|
protected ptolemy.plot.Plot |
plot
|
protected org.opt4j.viewer.SynchronizedIndividualSet |
population
|
protected ParetoPlotWidget.Selection |
selection
|
protected org.opt4j.core.config.visualization.DelayTask |
task
|
| Constructor Summary | |
|---|---|
ParetoPlotWidget(org.opt4j.core.optimizer.Population population,
org.opt4j.core.optimizer.Archive archive,
AutoZoomButton autoZoomButton)
Constructs a ParetoPlotWidget. |
|
| Method Summary | |
|---|---|
protected void |
doPaint()
Repaints the diagram. |
javax.swing.JPanel |
getPanel()
Returns the panel with the content. |
protected java.util.Set<java.awt.geom.Point2D.Double> |
getPoints(java.util.Collection<org.opt4j.core.Individual> indivualCollection,
org.opt4j.core.Objective one,
org.opt4j.core.Objective two)
Returns the two dimensional representation of the given IndividualCollection. |
void |
init(Viewport viewport)
Called once after the widget is added to the Viewport. |
void |
iterationComplete(int iteration)
|
void |
objectives(java.util.Collection<org.opt4j.core.Objective> objectives)
Callback method that passes the objectives of the optimization problem. |
protected void |
paint(java.util.Collection<org.opt4j.core.Individual> archive,
java.util.Collection<org.opt4j.core.Individual> population)
Repaints the diagram. |
void |
registerAtObjectivesMonitor(ObjectivesMonitor objectivesMonitor)
Register at the ObjectivesMonitor. |
void |
registerAtOptimizer(org.opt4j.core.optimizer.Optimizer optimizer)
Register at the Optimizer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.opt4j.viewer.SynchronizedIndividualSet population
protected final org.opt4j.viewer.SynchronizedIndividualSet archive
protected final org.opt4j.core.config.visualization.DelayTask task
protected final ptolemy.plot.Plot plot
protected final ParetoPlotWidget.Selection selection
protected final javax.swing.JPanel panel
| Constructor Detail |
|---|
@Inject
public ParetoPlotWidget(org.opt4j.core.optimizer.Population population,
org.opt4j.core.optimizer.Archive archive,
AutoZoomButton autoZoomButton)
ParetoPlotWidget.
population - the populationarchive - the archiveautoZoomButton - the button to reset zooming| Method Detail |
|---|
@Inject(optional=true) public void registerAtOptimizer(org.opt4j.core.optimizer.Optimizer optimizer)
Optimizer.
optimizer - the optimizer@Inject(optional=true) public void registerAtObjectivesMonitor(ObjectivesMonitor objectivesMonitor)
ObjectivesMonitor.
objectivesMonitor - the objectives monitorpublic void init(Viewport viewport)
WidgetViewport.
init in interface Widgetviewport - the base viewportpublic void iterationComplete(int iteration)
iterationComplete in interface org.opt4j.core.optimizer.OptimizerIterationListener
protected java.util.Set<java.awt.geom.Point2D.Double> getPoints(java.util.Collection<org.opt4j.core.Individual> indivualCollection,
org.opt4j.core.Objective one,
org.opt4j.core.Objective two)
IndividualCollection.
indivualCollection - the {IndividualCollection
protected void doPaint()
protected void paint(java.util.Collection<org.opt4j.core.Individual> archive,
java.util.Collection<org.opt4j.core.Individual> population)
public javax.swing.JPanel getPanel()
Widget
getPanel in interface Widgetpublic void objectives(java.util.Collection<org.opt4j.core.Objective> objectives)
ObjectivesMonitor.ObjectivesListener
objectives in interface ObjectivesMonitor.ObjectivesListenerobjectives - the objectives
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||