waitFor

open override fun waitFor(state: SimulationState, timeout: Long, timeunit: TimeUnit): SimulationState

Waits for the simulation to reach a given status.

Return

the current simulation status

Parameters

state

the SimulationState the simulation should reach before returning

timeout

the maximum time to wait

timeunit

the TimeUnit defining the timeout