StepCount

data class StepCount<T, P : Position<P>>(val lastStep: Long) : TerminationPredicate<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.

Parameters

lastStep

the last step.

Constructors

Link copied to clipboard
constructor(lastStep: Long)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun invoke(environment: Environment<T, P>): Boolean
Link copied to clipboard

Builds a predicate that is true if both this and the other predicate are true.

Link copied to clipboard
open fun test(environment: Environment<T, P>): Boolean

Same as invoke.