#include <ymlnetwork.h>
Inheritance diagram for YMLNetwork:
Public Member Functions | |
YMLNetwork () | |
virtual | ~YMLNetwork () |
void | addLink (YMLLink *link) |
int | getNumLinks () |
YMLLink * | getLink (int i) |
void | addNode (YMLNode *node) |
YMLNode * | findNode (const char *name) |
int | getNumNodes () |
YMLNode * | getNode (int i) |
void | collectAllNodes (node_list_t &list) |
int | getNumConnections () |
YMLConnection * | getConnection (int i) |
bool | connect () |
void | createDirectConnections (YMLEntityFactory *factory, YMLPort *source, YMLPortSide *side, int commChannelID) |
void | createDirectConnections (YMLEntityFactory *factory) |
void | setTraceContext (TraceContext *traceContext) |
TraceContext * | getTraceContext () |
virtual void | dumpXML (XMLSerializer &stream) |
void | dumpXMLLinks (XMLSerializer &stream) |
void | dumpXMLNodes (XMLSerializer &stream) |
virtual void | dumpDOT (std::ostream &stream, int tabLevel, bool flat=false) |
void | dumpDOTConnections (std::ostream &stream, int tabLevel, bool flat=false) |
void | dumpDOTNodes (std::ostream &stream, int tabLevel) |
void | dumpDOTSubNets (std::ostream &stream, int tabLevel, bool flat=false) |
void | dumpDOTSubNet (std::ostream &stream, int tabLevel, bool flat=false) |
void | doFinalizeNodes () |
void | doFinalizeLinks () |
void | doFinalize () |
ymlentity_t | getType () |
|
|
|
|
|
Add a link to the network.
|
|
|
|
Get a link by id. Ids are from 0 to getNumLinks() - 1.
|
|
Add a node to this network. If the node name is already in use the function will throw a BasicException
|
|
Find a YMLNode by name.
|
|
|
|
Get a node by id. Ids are from 0 to getNumNodes() - 1.
|
|
Copy all of the nodes in this network and sub-networks in order in to the provided list.
|
|
|
|
Get a connection by id. Ids are from 0 to getNumConnections() - 1.
|
|
Connected links and check directions and types.
|
|
Connect port to ports with direct connections. This function bypasses YMLLinks with YMLConnections. Starting from side createDirectConnections branches out recursively until it hits a YMLNode. When an node is encountered a YMLConnection is created between it and the source port.
|
|
Create direct connections for all of the connections originating in this network.
|
|
|
|
|
|
Print this network as XML.
Reimplemented from YMLNode. |
|
Print this networks links as XML.
|
|
Print this networks nodes as XML.
|
|
Print this network as a GraphViz dot graph.
|
|
Print this networks connections as a GraphViz dot graph.
|
|
Print this networks nodes as a GraphViz dot graph.
|
|
Print this networks subnetworks as a GraphViz dot graph.
|
|
Print this networks subnets as a GraphViz dot graph.
|
|
Call finalize on all nodes. |
|
Call finalize on all links. |
|
Call doFinalizeNodes(), doFinalizeLinks(), doFinalizePorts(), then finalize(). Reimplemented from YMLNode. |
|
Get the YMLEntity type.
Reimplemented from YMLNode. |