@Singleton public class ObjectivesMonitor extends Object implements IndividualStateListener
ObjectivesMonitor informs its listeners about the
Objectives of the optimization problem as soon as it is available.| Modifier and Type | Class and Description |
|---|---|
static interface |
ObjectivesMonitor.ObjectivesListener
The
ObjectivesMonitor.ObjectivesListener is an interface for classes that need the
objectives. |
| Constructor and Description |
|---|
ObjectivesMonitor(IndividualFactory individualFactory,
Archive archive)
Constructs the
ObjectivesMonitor. |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(ObjectivesMonitor.ObjectivesListener listener)
Adds an
ObjectivesMonitor.ObjectivesListener. |
void |
inidividualStateChanged(Individual individual)
Invoked if the
Individual changes its state. |
void |
removeListener(ObjectivesMonitor.ObjectivesListener listener)
Remove an
ObjectivesMonitor.ObjectivesListener. |
@Inject public ObjectivesMonitor(IndividualFactory individualFactory, Archive archive)
ObjectivesMonitor.individualFactory - public void addListener(ObjectivesMonitor.ObjectivesListener listener)
ObjectivesMonitor.ObjectivesListener.listener - the listenerpublic void removeListener(ObjectivesMonitor.ObjectivesListener listener)
ObjectivesMonitor.ObjectivesListener.listener - the listenerpublic void inidividualStateChanged(Individual individual)
IndividualStateListenerIndividual changes its state.inidividualStateChanged in interface IndividualStateListenerindividual - the individual that changes the state