|
Public Types |
enum | Type { subnet = 0,
iterator = 1,
threaded = 2
} |
Public Member Functions |
| UINetwork (UIDocument *_doc, std::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 (std::string n) |
void | addNode (UINode *node) |
void | removeNode (UINode *node) |
void | addLink (UILink *link) |
void | removeLink (UILink *link) |
const std::string & | getName () |
std::string | getDescription () |
void | setDescription (const std::string &_description) |
Type | getType () |
UIDocument * | getDocument () |
bool | isIter () |
void | saveXML (xmlNode *root) |
virtual void | newNetNotify (const std::string &cat, const std::string &type) |
void | addTerminal (UINetTerminal *term) |
void | removeTerminal (UINetTerminal *term) |
std::vector< std::string > | getTerminals (UINetTerminal::NetTermType termType) |
void | insertNetParams (std::vector< ItemInfo * > ¶ms) |
virtual UINode * | newNode (UINetwork *_net, xmlNodePtr def) |
virtual UINode * | newNode (UINetwork *_net, std::string _name, std::string _type, double _x, double _y, bool doInit) |
virtual UILink * | newLink (UITerminal *_from, UITerminal *_to, char *str=NULL) |
virtual UINote * | newNote (const std::string &text, double x, double y, bool visible) |
virtual UINetTerminal * | newNetTerminal (UITerminal *_terminal, UINetTerminal::NetTermType _type, const std::string &_name, const std::string &_objType="any", const std::string &_description="No description available") |
Network * | build (const std::string &netName, const ParameterSet ¶ms) |
void | genCode (std::ostream &out, int &id, std::set< std::string > &nodeList) |
std::vector< UINode * > | getNodes () |
std::vector< UILink * > | getLinks () |
std::vector< UINetTerminal * > | getTerminals () |
std::vector< UINote * > | getNotes () |
| Direct access to the note vector.
|
void | addNote (UINote *note) |
void | removeNote (UINote *note) |
virtual void | rename (std::string newName) |
void | interfaceChangeNotify () |
virtual void | updateAllSubnetTerminals (const std::string _nettype, const std::string _terminalname, UINetTerminal::NetTermType _terminaltype, bool _remove) |
virtual void | updateAllSubnetParameters (const std::string _nettype, NodeInfo *_info) |
Protected Attributes |
bool | destroyed |
UIDocument * | doc |
std::string | name |
std::string | m_description |
Type | type |
std::vector< UINode * > | nodes |
std::vector< UILink * > | links |
std::vector< UINetTerminal * > | terminals |
std::vector< UINote * > | m_notes |