|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opt4j.viewer.PopulationWidget
public class PopulationWidget
A widget that monitors the Population.
| Nested Class Summary | |
|---|---|
protected class |
PopulationWidget.Model
The PopulationWidget.Model. |
protected class |
PopulationWidget.Table
The PopulationWidget.Table. |
| Field Summary | |
|---|---|
protected org.opt4j.core.optimizer.Archive |
archive
|
protected java.util.List<org.opt4j.core.Objective> |
objectives
|
protected static int |
OFFSET
|
protected javax.swing.JPanel |
panel
|
protected org.opt4j.viewer.SynchronizedIndividualList |
population
|
protected int |
size
|
protected java.util.List<org.opt4j.core.Individual> |
swtIndividuals
|
protected javax.swing.JTable |
table
|
protected org.opt4j.core.config.visualization.DelayTask |
task
|
| Constructor Summary | |
|---|---|
PopulationWidget(org.opt4j.core.optimizer.Population population,
org.opt4j.core.optimizer.Archive archive,
org.opt4j.core.IndividualFactory individualFactory,
ObjectivesMonitor objectivesMonitor)
Constructs a PopulationWidget. |
|
| Method Summary | |
|---|---|
javax.swing.JPanel |
getPanel()
Returns the panel with the content. |
protected javax.swing.JTable |
getTable()
|
void |
individualAdded(org.opt4j.core.IndividualSet collection,
org.opt4j.core.Individual individual)
|
void |
individualRemoved(org.opt4j.core.IndividualSet collection,
org.opt4j.core.Individual individual)
|
void |
inidividualStateChanged(org.opt4j.core.Individual individual)
|
void |
init(Viewport viewport)
Called once after the widget is added to the Viewport. |
void |
objectives(java.util.Collection<org.opt4j.core.Objective> obj)
Callback method that passes the objectives of the optimization problem. |
protected void |
paint()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final int OFFSET
protected final org.opt4j.core.optimizer.Archive archive
protected final org.opt4j.viewer.SynchronizedIndividualList population
protected java.util.List<org.opt4j.core.Individual> swtIndividuals
protected final java.util.List<org.opt4j.core.Objective> objectives
protected final javax.swing.JPanel panel
protected final javax.swing.JTable table
protected int size
protected final org.opt4j.core.config.visualization.DelayTask task
| Constructor Detail |
|---|
@Inject
public PopulationWidget(org.opt4j.core.optimizer.Population population,
org.opt4j.core.optimizer.Archive archive,
org.opt4j.core.IndividualFactory individualFactory,
ObjectivesMonitor objectivesMonitor)
PopulationWidget.
population - the populationarchive - the archiveindividualFactory - the individual creatorobjectivesMonitor - the objective monitor that determine the objective of the
optimization problem| Method Detail |
|---|
protected final javax.swing.JTable getTable()
public void init(Viewport viewport)
WidgetViewport.
init in interface Widgetviewport - the base viewportpublic void inidividualStateChanged(org.opt4j.core.Individual individual)
inidividualStateChanged in interface org.opt4j.core.IndividualStateListener
public void individualAdded(org.opt4j.core.IndividualSet collection,
org.opt4j.core.Individual individual)
individualAdded in interface org.opt4j.core.IndividualSetListener
public void individualRemoved(org.opt4j.core.IndividualSet collection,
org.opt4j.core.Individual individual)
individualRemoved in interface org.opt4j.core.IndividualSetListenerprotected void paint()
public javax.swing.JPanel getPanel()
Widget
getPanel in interface Widgetpublic void objectives(java.util.Collection<org.opt4j.core.Objective> obj)
ObjectivesMonitor.ObjectivesListener
objectives in interface ObjectivesMonitor.ObjectivesListenerobj - the objectives
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||