- /** Retrieve the property value (or nullptr if not set) */
- const char* getProperty(const char* key);
- void setProperty(const char* key, const char* value);
-
- /* Add content to the netzone, at parsing time. It should be sealed afterward. */
- virtual int addComponent(kernel::routing::NetPoint * elm); /* A host, a router or a netzone, whatever */
- virtual void addRoute(kernel::routing::NetPoint * src, kernel::routing::NetPoint * dst,
- kernel::routing::NetPoint * gw_src, kernel::routing::NetPoint * gw_dst,
- std::vector<simgrid::surf::LinkImpl*> & link_list, bool symmetrical);
- virtual void addBypassRoute(kernel::routing::NetPoint * src, kernel::routing::NetPoint * dst,
- kernel::routing::NetPoint * gw_src, kernel::routing::NetPoint * gw_dst,
- std::vector<simgrid::surf::LinkImpl*> & link_list, bool symmetrical) = 0;
-
- /*** Called on each newly created regular route (not on bypass routes) */
- static simgrid::xbt::signal<void(bool symmetrical, kernel::routing::NetPoint* src, kernel::routing::NetPoint* dst,
- kernel::routing::NetPoint* gw_src, kernel::routing::NetPoint* gw_dst,
- std::vector<surf::LinkImpl*>& link_list)>
- onRouteCreation;
- static simgrid::xbt::signal<void(NetZone&)> onCreation;
- static simgrid::xbt::signal<void(NetZone&)> onSeal;
-
-protected:
- unsigned int getTableSize() { return vertices_.size(); }
- std::vector<kernel::routing::NetPoint*> getVertices() { return vertices_; }