State Machine Runtime
The State Machine Runtime toolbox is the engine under state machine graphs, offered as nodes. It makes a machine (Make State Machine), registers states (Register State), adds transitions (Add Transition), and runs it with a driver (Make State Machine Driver, Run Application) and a tick scheduler.
Most people never need it: drawing a state machine graph on the machine canvas does all of this for you. Use it when you want to build or inspect a machine from a graph, or to see how a machine runs. The nodes you place inside a state (Enter, Update, Exit) are in State Machine.
- Included in: Divooka Explore and Divooka Compute, every tier. In Compute, add the State Machines reference with Add reference (
Ctrl+Shift+L). - Maturity: Preview · Support: Tier 1 (proposed) · what these mean
- Open it: node library (
Ctrl+Shift+Space) → State Machine Runtime, or search for a node withCtrl+Space. - Reference: State Machine Runtime node reference
New to graphs? Start with Your first program.
What the parts do
| Part | What it does |
|---|---|
| State Machine | The machine: its name, states and transitions |
| State Machine State | One state, and its tick rate |
| State Machine Driver | Runs a machine as an application |
| Real-time Tick Scheduler | Waits for the next tick in real time |
| Callbacks | Enter, Update and Exit |
Example
The traffic light in Special (Experimental) > State Machine (Ctrl+Shift+E) runs on this runtime. Its walkthrough is on the State Machine page.
Tips and limits
- Experimental. State machines are still finding their place in Divooka, so these nodes may change.
- A compiled machine needs only this toolbox. A state machine in a compiled program runs on this runtime; the editor's host (State Machine Host) is only needed to run it in the editor.
What is in the toolbox
| Category | Some of its nodes |
|---|
See also
- State Machine Runtime node reference
- State Machine
- Toolboxes - every other toolbox.