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

CCM::Node Class Reference

Inheritance diagram for CCM::Node:

CCM::StateNode CCM::StateRefNode CCM::TransitionNode CCM::MethodCallNode CCM::ValueInNode CCM::ValueOutNode List of all members.

Detailed Description

Node in the process graph.

This encapsulates common behaviour, but only its concrete child classes should (and can) be instantiated.


Public Member Functions

 Node ()
 Initialize the node.

void addBranch (Node n)
 Add a new alternative branch n to the node.

bool hasSuccessors ()
 Return whether this node has any successor nodes.

virtual string ccmb ()
 Generate a CCMB notation of this node and all its successors (i. e. its transitive alternatives).

virtual string prolog ()
 Generate a Prolog notation of this node and all its successors (i. e. its transitive alternatives).

IEnumerator GetEnumerator ()
 Return an enumerator over all child nodes.

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


Static Public Member Functions

void appendCurrent (Node node)
 Append given node to the current node and make it the new current node.


Static Public Attributes

Node currentNode = null
 Provide global access to the current node.

int numNodes = 0

Static Protected Attributes

int writeDepth = 0

Private Attributes

IList next


Constructor & Destructor Documentation

CCM::Node::Node  ) 
 

Initialize the node.


Member Function Documentation

void CCM::Node::addBranch Node  n  ) 
 

Add a new alternative branch n to the node.

void CCM::Node::appendCurrent Node  node  )  [static]
 

Append given node to the current node and make it the new current node.

virtual string CCM::Node::ccmb  )  [virtual]
 

Generate a CCMB notation of this node and all its successors (i. e. its transitive alternatives).

Reimplemented in CCM::StateRefNode, and CCM::TransitionNode.

IEnumerator CCM::Node::GetEnumerator  ) 
 

Return an enumerator over all child nodes.

bool CCM::Node::hasSuccessors  ) 
 

Return whether this node has any successor nodes.

virtual string CCM::Node::prolog  )  [virtual]
 

Generate a Prolog notation of this node and all its successors (i. e. its transitive alternatives).

Reimplemented in CCM::StateRefNode, and CCM::TransitionNode.

override string CCM::Node::ToString  ) 
 

Return a string representation of this Node.

Reimplemented in CCM::StateNode, CCM::StateRefNode, CCM::ValueInNode, CCM::ValueOutNode, and CCM::MethodCallNode.


Member Data Documentation

Node CCM::Node::currentNode = null [static]
 

Provide global access to the current node.

IList CCM::Node::next [private]
 

int CCM::Node::numNodes = 0 [static]
 

int CCM::Node::writeDepth = 0 [static, protected]
 


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