#include <State.h>
Inheritance diagram for State::

Public Methods | |
| State (Machine *m, const QString, QString, int cd, bool ends) | |
| Constructor. More... | |
| State (Machine *m) | |
| Constructor. | |
| State (const State &) | |
| Copy constructor. | |
| State () | |
| Standard constructor. | |
| ~State () | |
| Destructor. | |
| State & | operator= (const State &) |
| Overloaded assignment operator. | |
| void | setName (QString n) |
| Sets the name of the state. | |
| QString | getName () |
| Returns the name of the state. | |
| void | setDescription (QString d) |
| Sets the description of the state. | |
| QString | getDescription () |
| Returns the description of the state. | |
| void | setCode (int c) |
| Sets the code of the state. | |
| int | getCode () |
| Returns the code of the state. | |
| void | setEndState (bool es=TRUE) |
| Sets/clears the 'end state' flag. | |
| void | toggleEndState () |
| Toggles the 'end state' flag. | |
| bool | isEndState () |
| Returns TRUE if this state is an end state, otherwise FALSE. | |
| QString | getCodeStr (int type=-1) |
| Returns a string representing the coding of the state. More... | |
Static Public Methods | |
| bool | codeValid (int mtype, QString) |
| Validates the code in string s. More... | |
Protected Attributes | |
| Machine * | machine |
| Pointer to the machine this state belongs to. | |
| QString | sname |
| Name. | |
| QString | sdescription |
| Description. | |
| int | code |
| Coding of the state (equals moore outputs). | |
| bool | endstate |
| If TRUE, this state is an end state. | |
|
||||||||||||||||||||||||||||||||||||
|
Constructor. Initialises a state object with name n and code c. |
|
|||||||||||||||
|
Validates the code in string s. If code valid returns TRUE otherwise returns FALSE. |
|
|
Returns a string representing the coding of the state.
|
1.2.9.1 written by Dimitri van Heesch,
© 1997-2001