#include <iaStateMachine.h>
◆ 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 |
◆ openGate()
open a gate for given transition
- Parameters
-
transitionID | the given transition |
index | the gate index to open (0-15) |
◆ registerEnterStateDelegate()
void iaux::iaStateMachine::registerEnterStateDelegate |
( |
iaEnterStateDelegate |
enterStateDelegate | ) |
|
register delegate to enter event of specified state
- Parameters
-
enterStateDelegate | enter state delegate |
◆ registerLeaveStateDelegate()
void iaux::iaStateMachine::registerLeaveStateDelegate |
( |
iaLeaveStateDelegate |
leaveStateDelegate | ) |
|
register delegate to leave event of specified state
- Parameters
-
leaveStateDelegate | leave state delegate |
◆ registerReEnterStateDelegate()
void iaux::iaStateMachine::registerReEnterStateDelegate |
( |
iaReEnterStateDelegate |
reEnterStateDelegate | ) |
|
register delegate to reenter event of specified state
- Parameters
-
reEnterStateDelegate | reenter state delegate |
◆ registerUpdateStateDelegate()
void iaux::iaStateMachine::registerUpdateStateDelegate |
( |
iaUpdateStateDelegate |
updateStateDelegate | ) |
|
register delegate to update event of specified state
- Parameters
-
updateStateDelegate | update state delegate |
◆ 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 |
( |
| ) |
|
finalizes the state machine.
after this you can not manipulate the state machine anymore
◆ unregisterEnterStateDelegate()
void iaux::iaStateMachine::unregisterEnterStateDelegate |
( |
iaEnterStateDelegate |
enterStateDelegate | ) |
|
unregister delegate from enter event with specified state
- Parameters
-
enterStateDelegate | enter state delegate |
◆ unregisterLeaveStateDelegate()
void iaux::iaStateMachine::unregisterLeaveStateDelegate |
( |
iaLeaveStateDelegate |
leaveStateDelegate | ) |
|
unregister delegate from leave event with specified state
- Parameters
-
leaveStateDelegate | leave state delegate |
◆ unregisterReEnterStateDelegate()
void iaux::iaStateMachine::unregisterReEnterStateDelegate |
( |
iaReEnterStateDelegate |
reEnterStateDelegate | ) |
|
unregister delegate from reenter event with specified state
- Parameters
-
reEnterStateDelegate | reenter state delegate |
◆ unregisterUpdateStateDelegate()
void iaux::iaStateMachine::unregisterUpdateStateDelegate |
( |
iaUpdateStateDelegate |
updateStateDelegate | ) |
|
unregister delegate from update event with specified state
- Parameters
-
updateStateDelegate | update state delegate |
◆ update()
void iaux::iaStateMachine::update |
( |
| ) |
|
calls the update of the current state
The documentation for this class was generated from the following files: