+static int no_bypassroute_declared = 1;
+
+AS_t model_generic_create_sized(size_t childsize) {
+ AS_t new_component = model_none_create_sized(childsize);
+
+ new_component->parse_PU = generic_parse_PU;
+ new_component->parse_AS = generic_parse_AS;
+ new_component->parse_route = NULL;
+ new_component->parse_ASroute = NULL;
+ new_component->parse_bypassroute = generic_parse_bypassroute;
+ new_component->get_route_and_latency = NULL;
+ new_component->get_onelink_routes = NULL;
+ new_component->get_bypass_route =
+ generic_get_bypassroute;
+ new_component->finalize = model_generic_finalize;
+
+ new_component->to_index = xbt_dict_new_homogeneous(xbt_free);
+ new_component->bypassRoutes = xbt_dict_new_homogeneous((void (*)(void *)) generic_free_route);
+
+ return new_component;
+}
+void model_generic_finalize(AS_t as) {
+ xbt_dict_free(&as->to_index);
+ xbt_dict_free(&as->bypassRoutes);
+ model_none_finalize(as);
+}