#include <Network.h>
Inheritance diagram for FD::Network:
Public Member Functions | |
Network (std::string nodeName, ParameterSet params) | |
~Network () | |
Node * | getNodeNamed (const std::string &name) |
void | addNode (const std::string &factoryName, const std::string &nodeName, const ParameterSet ¶meters) |
void | addNode (Node &node) |
virtual void | connect (const std::string ¤tNodeName, const std::string &inputName, const std::string &inputNodeName, const std::string &outputName) |
Node * | removeNode (const std::string &nodeName) |
std::string | getName () |
void | setName (const std::string &my_name) |
Node * | getSinkNode () |
virtual void | setSinkNode (Node *node) |
Node * | getInputNode () |
virtual void | setInputNode (Node *node) |
virtual std::vector< NodeInput > & | getInputs () |
virtual void | reset () |
virtual void | stop () |
virtual void | cleanupNotify () |
virtual void | request (int outputID, const ParameterSet &req) |
virtual void | initialize () |
virtual ObjectRef | getOutput (int output_id, int count) |
virtual bool | hasOutput (int output_id) const |
virtual void | connectToNode (std::string in, Node *inNode, std::string out) |
virtual void | verifyConnect () |
Protected Member Functions | |
virtual int | translateInput (std::string inputName) |
virtual int | translateOutput (std::string outputName) |
virtual void | connectToNode (unsigned int in, Node *inNode, unsigned int out) |
Network () | |
Protected Attributes | |
int | numNodes |
std::map< std::string, Node * > | nodeDictionary |
Node * | sinkNode |
Node * | inputNode |
|
Subnet: NetworkNode constructor |
|
default destructor |
|
default constructor should never be used |
|
Adding a already constructed node. WATCHOUT , THE NODE IS NOT COPIED AT THE MOMENT |
|
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. |
|
Notify the node that is will be destroyed shortly Reimplemented from FD::Node. |
|
connecting two nodes. We are using the node names. |
|
Subnet : Connect an input node using numeric (integer) input/output names Reimplemented from FD::Node. Reimplemented in FD::Iterator. |
|
Subnet : The connectToNode method overloaded from Node Reimplemented from FD::Node. Reimplemented in FD::Iterator. |
|
Returns the inputNode pointer |
|
Returns the inputs vector Reimplemented from FD::Node. |
|
Returns the name of the node (the same as in the node dictionary) Reimplemented from FD::Node. |
|
Returns the associated Node pointer from a lookup dictionary with the node name. We return NULL if the node doesn't exist. |
|
Subnet : NetworkNode returns the output of the SubNet (from the sinkNode) Implements FD::Node. Reimplemented in FD::Iterator. |
|
Returns the sinkNode |
|
Subnet : checks if the sinkNode has the desired output Reimplemented from FD::Node. |
|
Subnet : NetworkNode specific initialize Reimplemented from FD::Node. Reimplemented in FD::Iterator. |
|
removing a node. We are using the node name. |
|
Standard request-passing method between nodes during initialization Reimplemented from FD::Node. Reimplemented in FD::Iterator. |
|
resets the Network and all the internal nodes Reimplemented from FD::Node. Reimplemented in FD::Iterator. |
|
Setting the input node (unique) |
|
Naming the current network |
|
Setting the sink node (unique) |
|
Asks the node to stop what it is doing to allow processing termination Reimplemented from FD::Node. Reimplemented in FD::Iterator. |
|
Subnet : getting the related number of the input description Reimplemented from FD::Node. |
|
Subnet : getting the related number of the output description Reimplemented from FD::Node. |
|
Verify input connections for the node Reimplemented from FD::Node. |
|
The input node |
|
The node dictionary |
|
The number of nodes in the network |
|
The sink node |