AfterTime

data class AfterTime<T, P : Position<P>>(val endTime: Time) : TerminationPredicate<T, P>

Terminates the simulation when a given time is reached.

Type Parameters

T

the concentration type

P

the position type

Constructors

Link copied to clipboard
constructor(endTime: Time)

Properties

Link copied to clipboard

the end time 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.