|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opt4j.viewer.ConvergencePlotWidget
public class ConvergencePlotWidget
The ConvergencePlotWidget plots the convergence for each
Objective.
| Field Summary | |
|---|---|
protected org.opt4j.viewer.ConvergencePlotData |
data
|
protected javax.swing.JPanel |
panel
|
protected ptolemy.plot.Plot |
plot
|
protected org.opt4j.viewer.ConvergencePlotWidget.Selection |
selection
|
protected org.opt4j.core.config.visualization.DelayTask |
task
|
| Constructor Summary | |
|---|---|
ConvergencePlotWidget(org.opt4j.core.optimizer.Optimizer optimizer,
org.opt4j.viewer.ConvergencePlotData data,
ObjectivesMonitor objectivesMonitor,
AutoZoomButton autoZoom)
Constructs a ConvergencePlotWidget. |
|
| Method Summary | |
|---|---|
protected void |
doPaint()
Force a repaint of the plot. |
javax.swing.JPanel |
getPanel()
Returns the panel with the content. |
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()
Repaints the plot. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.opt4j.core.config.visualization.DelayTask task
protected final org.opt4j.viewer.ConvergencePlotData data
protected final org.opt4j.viewer.ConvergencePlotWidget.Selection selection
protected final javax.swing.JPanel panel
protected final ptolemy.plot.Plot plot
| Constructor Detail |
|---|
@Inject
public ConvergencePlotWidget(org.opt4j.core.optimizer.Optimizer optimizer,
org.opt4j.viewer.ConvergencePlotData data,
ObjectivesMonitor objectivesMonitor,
AutoZoomButton autoZoom)
ConvergencePlotWidget.
optimizer - the optimizerdata - the dataobjectivesMonitor - the objective monitor that determine the objective of the
optimization problem| Method Detail |
|---|
public javax.swing.JPanel getPanel()
Widget
getPanel in interface Widgetpublic void init(Viewport viewport)
WidgetViewport.
init in interface Widgetviewport - the base viewportpublic void iterationComplete(int iteration)
iterationComplete in interface org.opt4j.core.optimizer.OptimizerIterationListenerprotected void doPaint()
protected void paint()
doPaint() instead.
public 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 | |||||||