public class TerminateAtCertainTime extends java.lang.Object implements TerminationCondition
Constructor and Description |
---|
TerminateAtCertainTime(java.util.Date dateTime)
Stop the algorithm as soon as the provided date (with time) has passed.
|
Modifier and Type | Method and Description |
---|---|
boolean |
shouldTerminate(PopulationData<?> populationData)
The condition is queried via this method to determine whether or not
evolution should finish at the current point.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toString
public TerminateAtCertainTime(java.util.Date dateTime)
dateTime
- public boolean shouldTerminate(PopulationData<?> populationData)
TerminationCondition
shouldTerminate
in interface TerminationCondition
populationData
- Information about the current state of evolution. This may be
used to determine whether evolution should continue or not.