Public Slots | Signals | Public Member Functions | List of all members
ARCSStateMachine Class Reference

Class describing a state machine in order to control an application. More...

#include <arcsstatemachine.h>

Inheritance diagram for ARCSStateMachine:
Inheritance graph
Collaboration diagram for ARCSStateMachine:
Collaboration graph

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 ()
 

Detailed Description

Class describing a state machine in order to control an application.

Author
Jean-Yves Didier
Date
January, the 16th, 2009

Definition at line 43 of file arcsstatemachine.h.

Member Function Documentation

void ARCSStateMachine::setToken ( QString  s)
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.


The documentation for this class was generated from the following files: