OperationalStateCommands

interface OperationalStateCommands

Known direct subclasses
OperationalState

API for the OperationalState trait.


Summary

Public functions

suspend OperationalStateTrait.PauseCommand.Response

Pause the device if possible, based on the current operation underway.

suspend OperationalStateTrait.ResumeCommand.Response

Resume operation if the device is in a state where it can be resumed.

suspend OperationalStateTrait.StartCommand.Response

Start the device if the device is in a state where it can be started.

suspend OperationalStateTrait.StopCommand.Response

Stop the device if possible, based on the current operation underway.

Public functions

pause

suspend fun pause(): OperationalStateTrait.PauseCommand.Response

Pause the device if possible, based on the current operation underway.

Returns
OperationalStateTrait.PauseCommand.Response

The result of the completed Pause command.

resume

suspend fun resume(): OperationalStateTrait.ResumeCommand.Response

Resume operation if the device is in a state where it can be resumed.

Returns
OperationalStateTrait.ResumeCommand.Response

The result of the completed Resume command.

start

suspend fun start(): OperationalStateTrait.StartCommand.Response

Start the device if the device is in a state where it can be started.

Returns
OperationalStateTrait.StartCommand.Response

The result of the completed Start command.

stop

suspend fun stop(): OperationalStateTrait.StopCommand.Response

Stop the device if possible, based on the current operation underway.

Returns
OperationalStateTrait.StopCommand.Response

The result of the completed Stop command.