waitFor

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

Suspends the caller until the simulation reaches the selected Status or the timeout ends. Please note that waiting for a status does not mean that every OutputMonitor will already be notified of the update.

Return

the status of the Simulation at the end of the wait

Parameters

s

The Status the simulation should reach before returning from this method

timeout

The maximum lapse of time the caller wants to wait before being resumed

timeunit

The TimeUnit used to define "timeout"