+ route_extended_t(*get_route) (routing_component_t rc, const char *src,
+ const char *dst);
+ double(*get_latency) (routing_component_t rc, const char *src,
+ const char *dst, route_extended_t e_route);
+ xbt_dynar_t(*get_onelink_routes) (routing_component_t rc);
+ e_surf_network_element_type_t(*get_network_element_type) (const char *name);
+ route_extended_t(*get_bypass_route) (routing_component_t rc,
+ const char *src, const char *dst);
+ void (*finalize) (routing_component_t rc);
+ /* The parser calls the following functions to inform the routing models
+ * that a new element is added to the AS currently built.
+ *
+ * Of course, only the routing model of this AS is informed, not every ones */
+ void (*parse_PU) (routing_component_t rc, const char *name); /* A host or a router, whatever */
+ void (*parse_AS) (routing_component_t rc, const char *name);
+ void (*parse_route) (routing_component_t rc, const char *src,
+ const char *dst, name_route_extended_t route);
+ void (*parse_ASroute) (routing_component_t rc, const char *src,
+ const char *dst, name_route_extended_t route);
+ void (*parse_bypassroute) (routing_component_t rc, const char *src,
+ const char *dst, route_extended_t e_route);
+} s_routing_component_t;
+
+typedef struct s_network_element_info {
+ routing_component_t rc_component;
+ e_surf_network_element_type_t rc_type;
+} s_network_element_info_t, *network_element_info_t;
+
+typedef int *network_element_t;