addTerminator

open fun addTerminator(@NotNull terminator: TerminationPredicate<T, P>)(source)

Adds to the simulation a predicate that determines whether a simulation should be terminated.

Parameters

terminator

the termination predicate.