/** @ingroup ROUTING_API
* @brief Network cards are the vertices in the graph representing the network, used to compute paths between nodes.
*
- * @details This represents a position in the network. One can route information between two netcards
+ * @details This represents a position in the network. One can send information between two netcards
*/
class NetCard : public simgrid::xbt::Extendable<NetCard> {
}
-void sg_instr_new_router(const char* name, const char* coords)
+void sg_instr_new_router(const char* name)
{
- container_t father = currentContainer.back();
- PJ_container_new(name, INSTR_ROUTER, father);
+ if (TRACE_is_enabled() && TRACE_needs_platform()) {
+ container_t father = currentContainer.back();
+ PJ_container_new(name, INSTR_ROUTER, father);
+ }
}
static void instr_routing_parse_end_platform ()
if (coords && strcmp(coords, ""))
new simgrid::kernel::routing::vivaldi::Coords(netcard, coords);
- if (TRACE_is_enabled() && TRACE_needs_platform())
- sg_instr_new_router(name, coords);
+ sg_instr_new_router(name);
return netcard;
}
XBT_PUBLIC(void) routing_route_free(sg_platf_route_cbarg_t route);
/********** Instr. **********/
XBT_PRIVATE void sg_instr_AS_begin(sg_platf_AS_cbarg_t AS);
-XBT_PRIVATE void sg_instr_new_router(const char* name, const char* coords);
+XBT_PRIVATE void sg_instr_new_router(const char* name);
XBT_PRIVATE void sg_instr_new_host(simgrid::s4u::Host& host);
XBT_PRIVATE void sg_instr_AS_end();