![]() |
Class describing a state machine in order to control an application. More...
#include <arcsstatemachine.h>
Public Slots | |
void | setToken (QString s) |
Signals | |
void | sendSheet (QString s) |
signal emitted when a transition has been triggered. | |
void | finished () |
signal emitted when a state labelled as last state of the statemachine is reached. | |
Public Member Functions | |
void | setFirstSheetName (QString s) |
Sets the name of the first sheet i.e. the starting node of the statemachine. | |
void | setLastSheetName (QString s) |
Sets the name of the last sheet i.e. the node ending the statemachine. | |
QString | getFirstSheetName () |
Returns the name of the first state activated in the statemachine. | |
QString | getLastSheetName () |
Returns the name of the last state activated in the statemachine. | |
QString | getCurrentSheetName () |
Returns the name of the current activated sheet in the statemachine. | |
void | renameSheet (QString oldName, QString newName) |
Renames a sheet in the set of transitions. | |
void | clear () |
void | start () |
bool | hasError () |
void | addTransition (QString bState, QString token, QString eState) |
void | getTransitions (QStringList &bState, QStringList &token, QStringList &eState) |
bool | hasFinished () |
Class describing a state machine in order to control an application.
Definition at line 43 of file arcsstatemachine.h.
|
slot |
slot receiving a token. The token should activate a transition in the statemachine. Triggers the signal sendSheet() if a transition has been triggered.
Definition at line 107 of file arcsstatemachine.cpp.