|
|
The Pull Network Class. It holds the nodes which are connected by the Network. A network has always a single input node and a sink node (output node). We use a Factory for the cration of Node instances. That way, we can use a lookup dictionary that contains a name for that factory and a pointer to a Factory Base class that uses a virtual function callde Create(). The initialization must begin at the sink node and is propagated through the network until it reaches the input node.A network can be included as a node as well.
|
Subnet: NetworkNode constructor
~ |
default destructor
Node* |
Returns the associated Node pointer from a lookup dictionary with the node name. We return NULL if the node doesn't exist.
void |
Adding a node to the network. We use a factory Name to create an instance of the Node and store the node in the node dictionary with an associated name.
void |
Adding a already constructed node. WATCHOUT , THE NODE IS NOT COPIED AT THE MOMENT
void |
[virtual]
connecting two nodes. We are using the node names.
Node* |
removing a node. We are using the node name.
string |
Returns the name of the node (the same as in the node dictionary)
Reimplemented from Node.
void |
Naming the current network
Node* |
Returns the sinkNode
void |
[virtual]
Setting the sink node (unique)
Node* |
Returns the inputNode pointer
void |
[virtual]
Setting the input node (unique)
vector<NodeInput>& |
[virtual]
Returns the inputs vector
Reimplemented from Node.
void |
[virtual]
resets the Network and all the internal nodes
Reimplemented from Node.
void |
[virtual]
Asks the node to stop what it is doing to allow processing termination
Reimplemented from Node.
void |
[virtual]
Notify the node that is will be destroyed shortly
Reimplemented from Node.
void |
[virtual]
Standard request-passing method between nodes during initialization
Reimplemented from Node.
void |
[virtual]
Subnet : NetworkNode specific initialize
Reimplemented from Node.
ObjectRef |
[virtual]
Subnet : NetworkNode returns the output of the SubNet (from the sinkNode)
Reimplemented from Node.
bool |
[const virtual]
Subnet : checks if the sinkNode has the desired output
Reimplemented from Node.
void |
[virtual]
Subnet : The connectToNode method overloaded from Node
Reimplemented from Node.
void |
[virtual]
Verify input connections for the node
Reimplemented from Node.
int |
[protected virtual]
Subnet : getting the related number of the input description
Reimplemented from Node.
int |
[protected virtual]
Subnet : getting the related number of the output description
Reimplemented from Node.
void |
[protected virtual]
Subnet : Connect an input node using numeric (integer) input/output names
Reimplemented from Node.
int |
[protected]
The number of nodes in the network
map<string,Node*> |
[protected]
The node dictionary
Node * |
[protected]
The sink node
Node * |
[protected]
The input node
|
[protected]
default constructor should never be used
Generated by: jmvalin@usw-pr-shell2 on Mon Jun 24 00:06:36 2002, using kdoc 2.0a40. |