alchemist-interfaces / it.unibo.alchemist.core.interfaces / Simulation / waitFor

waitFor

abstract fun waitFor(s: Status!, timeout: Long, timeunit: TimeUnit!): Status!

Suspends the caller until the simulation reaches the selected Status.

Parameters

s - Status!: The Status the simulation must reach before returning from this method

timeout - Long: The maximum lapse of time the caller wants to wait before being resumed (0 means "no limit")

timeunit - TimeUnit!: The TimeUnit used to define "timeout"

Return
Status!: the status of the Simulation at the end of the wait