-
- All Implemented Interfaces:
-
java.util.function.Predicate
public final class AfterTime implements Predicate<Environment<?, ?>>
-
-
Method Summary
Modifier and Type Method Description final TimegetEndTime()Booleantest(Environment<?, ?> environment)Tries to access the simulation time from the environment. -
-
Constructor Detail
-
AfterTime
AfterTime(Time endTime)
- Parameters:
endTime- the end time.
-
-
Method Detail
-
getEndTime
final Time getEndTime()
-
test
Boolean test(Environment<?, ?> environment)
Tries to access the simulation time from the environment. If the simulation is unaccessible, throws an exception. Otherwise, reads the current time, and flips to true once it got past the provided endTime.
-
-
-
-