Package org.opt4j.viewer
Class ObjectivesMonitor
java.lang.Object
org.opt4j.viewer.ObjectivesMonitor
- All Implemented Interfaces:
IndividualStateListener
The
ObjectivesMonitor
informs its listeners about the
Objective
s of the optimization problem as soon as it is available.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
TheObjectivesMonitor.ObjectivesListener
is an interface for classes that need the objectives. -
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected Set<ObjectivesMonitor.ObjectivesListener>
-
Constructor Summary
ConstructorDescriptionObjectivesMonitor
(IndividualFactory individualFactory, Archive archive) Constructs theObjectivesMonitor
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds anObjectivesMonitor.ObjectivesListener
.void
inidividualStateChanged
(Individual individual) Invoked if theIndividual
changes its state.protected void
publishObjectives
(Individual individual) void
Remove 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:IndividualStateListener
Invoked if theIndividual
changes its state.- Specified by:
inidividualStateChanged
in interfaceIndividualStateListener
- Parameters:
individual
- the individual that changes the state
-
publishObjectives
-