class UINetwork
|
UINetwork is the represantation used to store data for any network,
either in the GUI or in batch mode. More... |
|
|
Public Types
- enum Type {subnet=0, iterator=1, threaded=2}
Public Methods
- UINetwork (UIDocument *_doc, string _name, Type _type)
- UINetwork (UIDocument *_doc, xmlNodePtr net, bool init=true)
- void load (xmlNodePtr net)
- virtual ~ UINetwork ()
- void setModified ()
- UINode * loadNode (xmlNodePtr node)
- UINode * getNodeNamed (string n)
- void addNode (UINode *node)
- void removeNode (UINode *node)
- void addLink (UILink *link)
- void removeLink (UILink *link)
- const string & getName ()
- Type getType ()
- UIDocument * getDocument ()
- bool isIter ()
- void saveXML (xmlNode *root)
- virtual void newNetNotify (const string &cat, const string &type)
- void addTerminal (UINetTerminal *term)
- void removeTerminal (UINetTerminal *term)
- vector<string> getTerminals (UINetTerminal::NetTermType termType)
- void insertNetParams (vector<ItemInfo *> ¶ms)
- virtual UINode * newNode (UINetwork* _net, xmlNodePtr def)
- virtual UINode * newNode (UINetwork* _net, string _name, string _type, double _x, double _y, bool doInit)
- virtual UILink * newLink (UITerminal *_from, UITerminal *_to, char *str=NULL)
- virtual UINetTerminal * newNetTerminal (UITerminal *_terminal, UINetTerminal::NetTermType _type, string _name)
- Network * build (const string &netName, const ParameterSet ¶ms)
- void genCode (ostream &out, int &id, set<string> &nodeList)
- vector<UINode *> getNodes ()
- vector<UILink *> getLinks ()
- vector<UINetTerminal *> getTerminals ()
- virtual void rename (string newName)
- void interfaceChangeNotify ()
- virtual void updateAllSubnetTerminals (const string _nettype, const string _terminalname, UINetTerminal::NetTermType _terminaltype, bool _remove)
Protected Members
Detailed Description
UINetwork is the represantation used to store data for any network,
either in the GUI or in batch mode. A UINetwork cannot perform any
operation but can be used to build a real Network.
enum Type {subnet=0, iterator=1, threaded=2}
|
Available network types
[protected]
Has the network been destroyed? Not too sure what I was thinking...
[protected]
Document (.n file) to which the network belongs
[protected]
Name of the network
[protected]
Network type (subnet, iterator, threaded iterator
[protected]
All the links included in the network
[protected]
All the links included in the network
[protected]
Pointer to all the network terminals
UINetwork (UIDocument *_doc, string _name, Type _type)
|
Basic constructor, allows building the UINetwork gradually
UINetwork (UIDocument *_doc, xmlNodePtr net, bool init=true)
|
Construct a UINetwork from a parsed XML file
void load (xmlNodePtr net)
|
Loads the info from the XML parse tree
[virtual]
Destructor
Informs that some part of the network has been changed. To be called anytime one modifies something in the network, a node, a link, ...
UINode * loadNode (xmlNodePtr node)
|
UINode * getNodeNamed (string n)
|
void removeNode (UINode *node)
|
void removeLink (UILink *link)
|
const string & getName ()
|
void saveXML (xmlNode *root)
|
void newNetNotify (const string &cat, const string &type)
|
[virtual]
vector<string> getTerminals (UINetTerminal::NetTermType termType)
|
void insertNetParams (vector<ItemInfo *> ¶ms)
|
[virtual]
UINode * newNode (UINetwork* _net, string _name, string _type, double _x, double _y, bool doInit)
|
[virtual]
[virtual]
[virtual]
void genCode (ostream &out, int &id, set<string> &nodeList)
|
Generate C++ code for building the document, instead of using XML
void rename (string newName)
|
[virtual]
void interfaceChangeNotify ()
|
void updateAllSubnetTerminals (const string _nettype, const string _terminalname, UINetTerminal::NetTermType _terminaltype, bool _remove)
|
[virtual]
- Author: Jean-Marc Valin
- Generated: jmvalin@usw-pr-shell2 on Mon Jun 24 00:06:36 2002, using kdoc 2.0a40.