MOEA Framework 2.12
API Specification

org.moeaframework.core.termination
Class CompoundTerminationCondition

java.lang.Object
  extended by org.moeaframework.core.termination.CompoundTerminationCondition
All Implemented Interfaces:
TerminationCondition

public class CompoundTerminationCondition
extends Object
implements TerminationCondition

Terminates a run when one or more termination conditions are satisfied.


Constructor Summary
CompoundTerminationCondition(TerminationCondition... conditions)
          Constructs a new termination condition based on at least one individual termination condition being satsified.
 
Method Summary
 void initialize(Algorithm algorithm)
          Invoked when the algorithm is created to collect any initial conditions.
 boolean shouldTerminate(Algorithm algorithm)
          Invoked after every step to check if the algorithm should terminate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompoundTerminationCondition

public CompoundTerminationCondition(TerminationCondition... conditions)
Constructs a new termination condition based on at least one individual termination condition being satsified.

Parameters:
conditions - the termination conditions
Method Detail

initialize

public void initialize(Algorithm algorithm)
Description copied from interface: TerminationCondition
Invoked when the algorithm is created to collect any initial conditions. Note that the algorithm may not have been initialized at this point.

Specified by:
initialize in interface TerminationCondition
Parameters:
algorithm - the algorithm

shouldTerminate

public boolean shouldTerminate(Algorithm algorithm)
Description copied from interface: TerminationCondition
Invoked after every step to check if the algorithm should terminate.

Specified by:
shouldTerminate in interface TerminationCondition
Parameters:
algorithm - the algorithm
Returns:
true if the algorithm should terminate; false otherwise

MOEA Framework 2.12
API Specification

Copyright 2009-2016 MOEA Framework. All rights reserved.
Licensed under the GNU Lesser General Public License.
Return to the MOEA Framework homepage. Visit us on Github!