#include <cfsm.h>
Inheritance diagram for cFSM::

Public Methods | |
Constructors, destructor, assignment. | |
| cFSM (const char *name=NULL) | |
| cFSM (const cFSM &vs) | |
| cFSM& | operator= (const cFSM &vs) |
Redefined cObject member functions. | |
| virtual cObject* | dup () const |
| virtual void | info (char *buf) |
| virtual void | writeContents (ostream &os) |
| virtual int | netPack () |
| virtual int | netUnpack () |
FSM functions. | |
| int | state () const |
| const char* | stateName () const |
| int | inTransientState () const |
| void | setState (int state, const char *stn=NULL) |
|
|
Constructor. |
|
|
Copy constructor. |
|
|
Creates and returns an exact copy of this object. See cObject for more details. Reimplemented from cObject. |
|
|
Returns true if the FSM is currently in a transient state. |
|
|
Produces a one-line description of object contents into the buffer passed as argument. See cObject for more details. Reimplemented from cObject. |
|
|
Serializes the object into a PVM or MPI send buffer. Used by the simulation kernel for parallel execution. See cObject for more details. Reimplemented from cObject. |
|
|
Deserializes the object from a PVM or MPI receive buffer Used by the simulation kernel for parallel execution. See cObject for more details. Reimplemented from cObject. |
|
|
Assignment operator. The name member doesn't get copied; see cObject's operator=() for more details. |
|
|
Sets the state of the FSM. This method is usually invoked through the FSM_Goto() macro. The first arg is the state code. The second arg is the name of the state. setState() assumes this is pointer to a string literal (the string is not copied, only the pointer is stored).
|
|
|
Returns the state the FSM is currently in. |
|
|
Returns the name of the state the FSM is currently in. |
|
|
Writes textual information about this object to the stream. See cObject for more details. Reimplemented from cObject. |
1.2.8.1 written by Dimitri van Heesch,
© 1997-2001