- tmgr_trace_t bw_trace;
- tmgr_trace_t state_trace;
- tmgr_trace_t lat_trace;
-
- surf_parse_get_trace(&bw_trace, A_surfxml_link_bandwidth_file);
- surf_parse_get_trace(&lat_trace, A_surfxml_link_latency_file);
- surf_parse_get_trace(&state_trace, A_surfxml_link_state_file);
-
- /*TODO Where is WARNING0 defined??? */
-#if 0
- if (bw_trace)
- WARNING0
- ("The GTNetS network model doesn't support bandwidth state traces");
- if (lat_trace)
- WARNING0
- ("The GTNetS network model doesn't support latency state traces");
- if (state_trace)
- WARNING0
- ("The GTNetS network model doesn't support link state traces");
-#endif
- }
- /* KF: remove several arguments to link_new */
- current_property_set = xbt_dict_new();
- link_new(name, bw, lat, current_property_set);
-}
-
-static int nb_link = 0;
-static char **link_name = NULL;
-static int src_id = -1;
-static int dst_id = -1;
-
-/* Parses a route from the XML: UNMODIFIED BY HC */
-static void parse_route_set_endpoints(void)
-{
- src_id = network_card_new(A_surfxml_route_src);
- dst_id = network_card_new(A_surfxml_route_dst);
-
-/* nb_link = 0;
- link_name = NULL;
-*/
- route_link_list = xbt_dynar_new(sizeof(char *), &free_string);
-}
-
-/* KF*/
-static void parse_route_set_routers(void)
-{
- int id = network_card_new(A_surfxml_router_name);
-
- /* KF: Create the GTNets router */
- if (gtnets_add_router(id)) {
- xbt_assert0(0, "Cannot add GTNetS router");
- }
-}
-
-//The following is common to all and has been relocated to surfxml_parse
-/* Parses a route element from the XML: UNMODIFIED BY HC */
-/*static void parse_route_elem(void)
-{
- nb_link++;
- link_name = xbt_realloc(link_name, (nb_link) * sizeof(char *));
- link_name[(nb_link) - 1] = xbt_strdup(A_surfxml_route_element_name);
-}
-*/
-
-/* Create the route (more than one hops): MODIFIED BY KF */
-static void parse_route_set_route(void)
-{
-/* if (nb_link > 1)
- route_new(src_id, dst_id, link_name, nb_link);
-*/
- name = bprintf("%d##%d",src_id, dst_id);
- xbt_dict_set(route_table, name, route_link_list, NULL);
- free(name);
-}