WaitState¶
-
virtual void ITopController::WaitState(ETopControllerState state, double timeout) = 0¶
Waits until the state of the state machine changes to the specified state, or the timeout interval is exceeded.
- Parameters
state – State to wait for.
timeout – Interval in seconds to wait for the specified state. Negative value means infinite.
- Throws
CInvalidArgumentException
– Unknown state specified.CInvalidArgumentException
– Invalid timeout (NaN).CTimeoutException
– Timeout interval exceeded while waiting for state.CCommunicationErrorException
– Protocol error.CConnectionLostException
– Connection to controller lost.CRebootedException
– Controller has been rebooted since this object reference was retrieved, invalidating this reference.CIncompatibleException
– Incompatible firmware version loaded.CObjectDestroyedException
– Object is destroyed.
- Remarks
If the state already matches the specified state, this method returns immediately. Execution does not requires a subscription resource.