The first time isSatisfied(Population) is invoked, the end time of the evolution is determined based on the
provided maxTime value. Once the elapsed time reaches the configured maxTime value,
isSatisfied(Population) returns true.
| Modifier and Type | Field and Description |
|---|---|
| private long | endTime
The predetermined termination time (stopping condition). |
| private final long | maxTimePeriod
Maximum allowed time period (in nanoseconds). |
| Access | Constructor and Description |
|---|---|
| public | FixedElapsedTime(final long
maximum number of seconds generations are allowed to evolve maxTime)Create a new |
| public | FixedElapsedTime(final long
maximum time generations are allowed to evolve maxTime, final TimeUnit TimeUnit of the maxTime argumentCreate a new |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true IFF the maximum allowed time period has elapsedignored (no impact on result) population)Implements org. Determine whether or not the maximum allowed time has passed. |
| endTime | back to summary |
|---|---|
| private long endTime The predetermined termination time (stopping condition). | |
| maxTimePeriod | back to summary |
|---|---|
| private final long maxTimePeriod Maximum allowed time period (in nanoseconds). | |
| FixedElapsedTime | back to summary |
|---|---|
| public FixedElapsedTime(final long maxTime) throws NumberIsTooSmallException Create a new
| |
| FixedElapsedTime | back to summary |
|---|---|
| public FixedElapsedTime(final long maxTime, final TimeUnit unit) throws NumberIsTooSmallException Create a new
| |
| isSatisfied | back to summary |
|---|---|
| public boolean isSatisfied(final Population population) Implements org. Determine whether or not the maximum allowed time has passed. The termination time is determined after the first generation.
| |