Termination Predicate
fun interface TerminationPredicate<T, P : Position<out P>> : Function1<Environment<T, P>, Boolean> , Serializable
A predicate that determines whether a simulation should be terminated. The predicate is evaluated at the end of each simulation step. If the predicate returns true, the simulation gets terminated.
Type Parameters
T
the type of the concentration
P
the type of the position
Inheritors
Functions
Link copied to clipboard
Builds a predicate that is true if both this and the other predicate are true.
Link copied to clipboard
context(environment: Environment<T, P>)
operator fun <T, P : Position<P>> TerminationPredicate<T, P>.unaryMinus()
operator fun <T, P : Position<P>> TerminationPredicate<T, P>.unaryMinus()
Registers this TerminationPredicate into the current Environment.