Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members

CCM::StateNode Class Reference

Inheritance diagram for CCM::StateNode:

CCM::Node List of all members.

Detailed Description

Node that represents a state.

CCMB only allows this as the initial node of a process.


Public Member Functions

 StateNode (IList state)
 Create state node for given list of Variables.

void setName (string p)
 Set an user defined name for this state.

IList getState ()
 Return the list of Variables this state represents.

string stateName ()
 Returns the name of this state.

string prologStateName ()
 Returns the name of this state in Prolog compatible syntax.

override string ToString ()
 Return a string representation of this Node.


Static Private Member Functions

string stateStr (Object s)
 Construct a state name tuple from the given object.

string prologStateStr (Object s)
 Construct a Prolog compatible state name tuple from the given object.


Private Attributes

IList state
string name


Constructor & Destructor Documentation

CCM::StateNode::StateNode IList  state  ) 
 

Create state node for given list of Variables.


Member Function Documentation

IList CCM::StateNode::getState  ) 
 

Return the list of Variables this state represents.

string CCM::StateNode::prologStateName  ) 
 

Returns the name of this state in Prolog compatible syntax.

If an user defined name was set, it is returned; otherwise the name is constructed as a tuple of the values in state.

See also:
setName

string CCM::StateNode::prologStateStr Object  s  )  [static, private]
 

Construct a Prolog compatible state name tuple from the given object.

void CCM::StateNode::setName string  p  ) 
 

Set an user defined name for this state.

string CCM::StateNode::stateName  ) 
 

Returns the name of this state.

If an user defined name was set, it is returned; otherwise the name is constructed as a tuple of the values in state.

See also:
setName

string CCM::StateNode::stateStr Object  s  )  [static, private]
 

Construct a state name tuple from the given object.

override string CCM::StateNode::ToString  ) 
 

Return a string representation of this Node.

Reimplemented from CCM::Node.


Member Data Documentation

string CCM::StateNode::name [private]
 

IList CCM::StateNode::state [private]
 


The documentation for this class was generated from the following file:
Generated on Mon Jun 21 01:20:50 2004 for cs2ccmb by doxygen 1.3.7