Class StepCount

  • All Implemented Interfaces:
    java.util.function.Predicate

    
    public final class StepCount<T extends Object, P extends Position<P>>
     implements Predicate<Environment<T, P>>
                        

    Terminates the simulation after a given number of steps. If the simulation is uninitialized (thus, the environment returns null when asked for the simulation), this predicate always returns false.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final Long lastStep
    • Constructor Summary

      Constructors 
      Constructor Description
      StepCount(Long lastStep)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Long getLastStep()
      Boolean test(Environment<T, P> 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