Class AfterTime

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final Time endTime
    • Constructor Summary

      Constructors 
      Constructor Description
      AfterTime(Time endTime)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Time getEndTime()
      Boolean test(Environment<T, P> environment) Tries to access the simulation time from the environment.
      • Methods inherited from class java.util.function.Predicate

        and, negate, or
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AfterTime

        AfterTime(Time endTime)
        Parameters:
        endTime - the end time.
    • Method Detail

      • test

         Boolean test(Environment<T, P> 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.