Skip to main content

Module constants

Module constants 

Source
Expand description

Global constants for the framework.

Constantsยง

EVENT_NUM
The number of Events in the framework.
MAX_DECOMPRESSED_SIZE
The maximum size of a decompressed encoded Machine in bytes. Set to 1MB. This is a soft limit and can be increased if necessary.
MAX_SAMPLED_BLOCK_DURATION
The maximum sampled blocking duration in a State, set to a day in microseconds.
MAX_SAMPLED_TIMEOUT
The maximum sampled timeout in a State, set to a day in microseconds.
MAX_SAMPLED_TIMER_DURATION
The maximum sampled timer duration in a State, set to a day in microseconds.
STATE_END
A pseudo-state that means the Machine should completely stop.
STATE_MAX
The maximum number of States a Machine can have. Set to 100,000 as a safety measure to prevent resource exhaustion. Likely much higher than MAX_DECOMPRESSED_SIZE allows for as-is.
STATE_SIGNAL
A pseudo-state that triggers a Signal Event in all other running machines.
VERSION
The highest possible version of a Machine supported by this framework.