Namespace for the timer commands.
- Version:
-
- v1
- Source:
Type Definitions
-
_sleep
-
Sleep for a given duration using a specific timer.
Handler should return
effectsthat the timer is not running.- Source:
Properties:
Name Type Description commandstring "timer._sleep"
agentstring Agent identifier
equipmentstring Equipment identifier
durationnumber Number of seconds to sleep
-
_start
-
Start the given timer.
Handler should return
effectsthat the timer is running.- Source:
Properties:
Name Type Description commandstring "timer._start"
agentstring Agent identifier
equipmentstring Equipment identifier
-
_stop
-
Stop the given timer.
Handler should return
effectsthat the timer is not running.- Source:
Properties:
Name Type Description commandstring "timer._stop"
agentstring Agent identifier
equipmentstring Equipment identifier
-
_wait
-
Wait until the given timer has reacher the given elapsed time.
Handler should:
- expect that the timer (identified by the
equipmentparameter) is running - return
effectsthat the timer is not running
- Source:
Properties:
Name Type Description commandstring "timer._wait"
agentstring Agent identifier
equipmentstring Equipment identifier
tillnumber Number of seconds to wait till from the time the timer was started
stopboolean Whether to stop the timer after waiting, or let it continue
- expect that the timer (identified by the
-
doAndWait
-
A control construct to perform the given sub-steps and then wait until a certain amount of time has elapsed since the beginning of this command.
- Source:
Properties:
Name Type Argument Description commandstring "timer.doAndWait"
agentstring <optional>
Agent identifier
equipmentstring <optional>
Equipment identifier
durationnumber Number of seconds this command should last
stepsArray | Object Sub-steps to perform
-
sleep
-
Sleep for a given duration.
- Source:
Properties:
Name Type Argument Description commandstring "timer.sleep"
agentstring <optional>
Agent identifier
equipmentstring <optional>
Equipment identifier
durationnumber Number of seconds to sleep
-
start
-
Start a timer.
- Source:
Properties:
Name Type Argument Description commandstring "timer.start"
agentstring <optional>
Agent identifier
equipmentstring <optional>
Equipment identifier
-
stop
-
Stop a running timer.
- Source:
Properties:
Name Type Argument Description commandstring "timer.stop"
agentstring <optional>
Agent identifier
equipmentstring <optional>
Equipment identifier