5#ifndef TEAM2026_STATEMACHINE_H
6#define TEAM2026_STATEMACHINE_H
8#include <memory_resource>
14 StateMachine() =
default;
15 explicit StateMachine(
Node *startingNode) : startingNode(startingNode) {}
30 Node* startingNode =
nullptr;
31 std::deque<Node*> activeNodes = {};
void execute()
Execute the grafcet Uses a queue (activeNodes) to keep track of which node are enabled,...
Definition StateMachine.cpp:9
void setStartingNode(Node *startingNode)
Set the starting node of the grafcet.
Definition StateMachine.h:21