JSON Schema
State Machine
Represents a state machine with a collection of states. |
||||
type |
object |
|||
properties |
||||
|
State Machine Name |
|||
The name of the state machine |
||||
type |
string |
|||
minLength |
1 |
|||
default |
State Machine |
|||
|
default |
|||
#/$defs/States |
||||
|
default |
|||
#/$defs/GlobalTimers |
||||
|
default |
|||
#/$defs/GlobalCounters |
||||
|
default |
|||
#/$defs/Conditions |
||||
$defs |
||||
|
Actions |
|||
A collection of actions. |
||||
type |
object |
|||
additionalProperties |
The integer value of the output action |
|||
type |
integer |
|||
maximum |
255 |
|||
minimum |
0 |
|||
|
Condition |
|||
A condition in the state machine. |
||||
type |
object |
|||
properties |
||||
|
Channel |
|||
The channel or global timer attached to the condition |
||||
type |
string |
|||
minLength |
1 |
|||
|
Value |
|||
The value of the condition channel if the condition is met |
||||
type |
boolean |
|||
|
Conditions |
|||
A collection of conditions. |
||||
type |
object |
|||
patternProperties |
||||
|
#/$defs/Condition |
|||
|
Global Counter |
|||
A global counter in the state machine. |
||||
type |
object |
|||
properties |
||||
|
Event |
|||
A state machine event |
||||
type |
string |
|||
minLength |
1 |
|||
|
Threshold |
|||
The count threshold to generate an event |
||||
type |
integer |
|||
maximum |
4294967295 |
|||
minimum |
0 |
|||
|
Global Counters |
|||
A collection of global counters. |
||||
type |
object |
|||
patternProperties |
||||
|
#/$defs/GlobalCounter |
|||
|
Global Timer |
|||
A global timer in the state machine. |
||||
type |
object |
|||
properties |
||||
|
Global Timer Duration |
|||
The duration of the global timer in seconds |
||||
type |
number |
|||
minimum |
0.0 |
|||
|
Onset Delay |
|||
The onset delay of the global timer in seconds |
||||
type |
number |
|||
minimum |
0.0 |
|||
default |
0.0 |
|||
|
Channel |
|||
default |
null |
|||
anyOf |
type |
string |
||
type |
null |
|||
|
Channel Value |
|||
The value a channel is set to |
||||
type |
integer |
|||
maximum |
255 |
|||
minimum |
0 |
|||
default |
0 |
|||
|
Channel Value |
|||
The value a channel is set to |
||||
type |
integer |
|||
maximum |
255 |
|||
minimum |
0 |
|||
default |
0 |
|||
|
Send Events |
|||
Whether the global timer is sending events |
||||
type |
boolean |
|||
default |
True |
|||
|
Loop Mode |
|||
Whether the global timer is looping or not |
||||
type |
integer |
|||
maximum |
255 |
|||
minimum |
0 |
|||
default |
0 |
|||
|
Loop Interval |
|||
The interval in seconds that the global timer is looping |
||||
type |
number |
|||
minimum |
0.0 |
|||
default |
0.0 |
|||
|
Onset Trigger |
|||
An integer whose bits indicate other global timers to trigger |
||||
type |
integer |
|||
minimum |
0 |
|||
default |
0 |
|||
|
Global Timers |
|||
A collection of global timers. |
||||
type |
object |
|||
patternProperties |
||||
|
#/$defs/GlobalTimer |
|||
|
State |
|||
A state in the state machine. |
||||
type |
object |
|||
properties |
||||
|
State Timer |
|||
The state’s timer in seconds |
||||
type |
number |
|||
minimum |
0.0 |
|||
default |
0.0 |
|||
|
default |
|||
#/$defs/Transitions |
||||
|
default |
|||
#/$defs/Actions |
||||
|
Comment |
|||
default |
null |
|||
anyOf |
Comment |
|||
A comment describing the state. |
||||
type |
string |
|||
type |
null |
|||
|
States |
|||
A collection of states. |
||||
type |
object |
|||
patternProperties |
||||
|
#/$defs/State |
|||
|
State Transitions |
|||
A collection of state transitions. |
||||
type |
object |
|||
additionalProperties |
anyOf |
State Name |
||
The name of the state |
||||
type |
string |
|||
minLength |
1 |
|||
pattern |
^(?!>)(?!exit$).+$ |
|||
Operator |
||||
A state machine operator |
||||
type |
string |
|||
pattern |
^(exit)|(>.+)$ |