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.

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

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.

Link copied to clipboard
context(environment: Environment<T, P>)
operator fun <T, P : Position<P>> TerminationPredicate<T, P>.unaryMinus()

Registers this TerminationPredicate into the current Environment.