#include <iaStateMachine.h>
◆ iaEvent
event type definition
Enumerator |
---|
Enter | |
ReEnter | |
NoChange | |
◆ iaStateMachine()
iaux::iaStateMachine::iaStateMachine |
( |
| ) |
|
|
default |
◆ ~iaStateMachine()
iaux::iaStateMachine::~iaStateMachine |
( |
| ) |
|
|
default |
◆ activateGate()
activate a gate for given transition
- Parameters
-
transitionID | the given transition |
index | the gate index to activate (0-15) |
◆ addState()
creates and adds a new state
- Parameters
-
name | optional name of state |
- Returns
- new state id
◆ addTransition()
creates transition form source state to destination state
- Parameters
-
from | source state |
to | destination state |
- Returns
- transition id
◆ closeGate()
close a gate for given transition
- Parameters
-
transitionID | the given transition |
index | the gate index to close (0-15) |
◆ deactivateGate()
deactivate a gate for given transition
- Parameters
-
transitionID | the given transition |
index | the gate index to deactivate (0-15) |
◆ getCurrentState()
iaStateID iaux::iaStateMachine::getCurrentState |
( |
| ) |
const |
◆ getInitialState()
iaStateID iaux::iaStateMachine::getInitialState |
( |
| ) |
const |
◆ getOutgoingTransitions()
- Returns
- outgoing transition for given state id
- Parameters
-
stateID | the given state id |
◆ isValid()
bool iaux::iaStateMachine::isValid |
( |
| ) |
const |
- Returns
- true if state machine is well defined and ready to use
◆ openGate()
open a gate for given transition
- Parameters
-
transitionID | the given transition |
index | the gate index to open (0-15) |
◆ resetGates()
closes all gates on for given transition
- Parameters
-
transitionID | the given transition |
◆ setInitialState()
void iaux::iaStateMachine::setInitialState |
( |
iaStateID |
id | ) |
|
sets the initial state by id
- Parameters
-
◆ start()
void iaux::iaStateMachine::start |
( |
| ) |
|
starts the state machine at it initial state
◆ update()
processes the state machine
- Returns
- latest event
The documentation for this class was generated from the following files: