do {
//Get the next node
xbt_dynar_get_cpy(connected_nodes, iterator, &graph_node);
- node_data = xbt_graph_node_get_data(graph_node);
//add all the linked nodes to the connected node array
outgoing_edges = xbt_graph_node_get_outedges(graph_node);
node_data->router_id = bprintf("router-%d", ++last_router);
router_parameters.id = node_data->router_id;
sg_platf_new_router(&router_parameters);
+ break;
}
}
break;
case HOST:
route_parameters.src = src_data->host_parameters.id;
+ break;
}
switch(dst_data->kind) {
case ROUTER:
break;
case HOST:
route_parameters.dst = dst_data->host_parameters.id;
+ break;
}
sg_platf_route_begin(&route_parameters);
sg_platf_route_add_link(link_parameters->id, &route_parameters);