StepCount

data class StepCount<T, P : Position<P>>(val lastStep: Long) : TerminationPredicate<T, P> (source)

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.

Type Parameters

T

the concentration type

P

the position type

Constructors

Link copied to clipboard
constructor(lastStep: Long)

Properties

Link copied to clipboard

the last step at which the simulation should terminate

Functions

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