void sg_platf_new_bypassRoute(sg_platf_route_cbarg_t bypassRoute)
{
- routing_get_current()->parseBypassroute(bypassRoute);
+ routing_get_current()->addBypassRoute(bypassRoute);
}
void sg_platf_new_process(sg_platf_process_cbarg_t process)
void As::addRoute(sg_platf_route_cbarg_t /*route*/){
xbt_die("AS %s does not accept new routes (wrong class).",name_);
}
- void As::parseBypassroute(sg_platf_route_cbarg_t /*e_route*/){
+ void As::addBypassRoute(sg_platf_route_cbarg_t /*e_route*/){
xbt_die("AS %s does not accept new bypass routes (wrong class).",name_);
}
/* Add content to the AS, at parsing time. It should be sealed afterward. */
virtual int addComponent(NetCard *elm); /* A host, a router or an AS, whatever */
virtual void addRoute(sg_platf_route_cbarg_t route);
- virtual void parseBypassroute(sg_platf_route_cbarg_t e_route);
+ virtual void addBypassRoute(sg_platf_route_cbarg_t e_route);
};
struct XBT_PRIVATE NetCardImpl : public NetCard {
xbt_dict_free(&bypassRoutes_);
}
-void AsRoutedGraph::parseBypassroute(sg_platf_route_cbarg_t e_route)
+void AsRoutedGraph::addBypassRoute(sg_platf_route_cbarg_t e_route)
{
char *src = (char*)(e_route->src);
char *dst = (char*)(e_route->dst);
virtual sg_platf_route_cbarg_t getBypassRoute(NetCard *src, NetCard *dst, double *lat) override;
/* Add content to the AS, at parsing time */
- virtual void parseBypassroute(sg_platf_route_cbarg_t e_route) override;
+ virtual void addBypassRoute(sg_platf_route_cbarg_t e_route) override;
virtual sg_platf_route_cbarg_t newExtendedRoute(e_surf_routing_hierarchy_t hierarchy, sg_platf_route_cbarg_t routearg, int change_order);
protected: