org.opt4j.viewer
Class ObjectivesMonitor
java.lang.Object
org.opt4j.viewer.ObjectivesMonitor
- All Implemented Interfaces:
- org.opt4j.core.IndividualStateListener
public class ObjectivesMonitor
- extends java.lang.Object
- implements org.opt4j.core.IndividualStateListener
The ObjectivesMonitor informs its listeners about the
Objectives of the optimization problem as soon as it is available.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
done
protected boolean done
objectives
protected java.util.List<org.opt4j.core.Objective> objectives
listeners
protected java.util.Set<ObjectivesMonitor.ObjectivesListener> listeners
ObjectivesMonitor
@Inject
public ObjectivesMonitor(org.opt4j.core.IndividualFactory individualFactory,
org.opt4j.core.optimizer.Archive archive)
- Constructs the
ObjectivesMonitor.
- Parameters:
individualFactory - the individual factoryarchive - the archive
addListener
public void addListener(ObjectivesMonitor.ObjectivesListener listener)
- Adds an
ObjectivesMonitor.ObjectivesListener.
- Parameters:
listener - the listener
removeListener
public void removeListener(ObjectivesMonitor.ObjectivesListener listener)
- Remove an
ObjectivesMonitor.ObjectivesListener.
- Parameters:
listener - the listener
inidividualStateChanged
public void inidividualStateChanged(org.opt4j.core.Individual individual)
- Specified by:
inidividualStateChanged in interface org.opt4j.core.IndividualStateListener
publishObjectives
protected void publishObjectives(org.opt4j.core.Individual individual)