Package org.opt4j.viewer
Class ObjectivesMonitor
java.lang.Object
org.opt4j.viewer.ObjectivesMonitor
- All Implemented Interfaces:
IndividualStateListener
The
ObjectivesMonitor informs its listeners about the
Objectives of the optimization problem as soon as it is available.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceTheObjectivesMonitor.ObjectivesListeneris an interface for classes that need the objectives. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected Set<ObjectivesMonitor.ObjectivesListener> -
Constructor Summary
ConstructorsConstructorDescriptionObjectivesMonitor(IndividualFactory individualFactory, Archive archive) Constructs theObjectivesMonitor. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds anObjectivesMonitor.ObjectivesListener.voidinidividualStateChanged(Individual individual) Invoked if theIndividualchanges its state.protected voidpublishObjectives(Individual individual) voidRemove anObjectivesMonitor.ObjectivesListener.
-
Field Details
-
done
protected boolean done -
objectives
-
listeners
-
-
Constructor Details
-
ObjectivesMonitor
Constructs theObjectivesMonitor.- Parameters:
individualFactory-
-
-
Method Details
-
addListener
Adds anObjectivesMonitor.ObjectivesListener.- Parameters:
listener- the listener
-
removeListener
Remove anObjectivesMonitor.ObjectivesListener.- Parameters:
listener- the listener
-
inidividualStateChanged
Description copied from interface:IndividualStateListenerInvoked if theIndividualchanges its state.- Specified by:
inidividualStateChangedin interfaceIndividualStateListener- Parameters:
individual- the individual that changes the state
-
publishObjectives
-