waitFor
abstract fun waitFor(state: SimulationState, timeout: Long, timeunit: TimeUnit): SimulationState(source)
Suspends the caller until the simulation reaches the selected SimulationState, or the timeout, expressed in timeunit, expires. Waiting for a status does not mean that every OutputMonitor has already been notified of the update.
Return
the status of the simulation at the end of the wait