-void *model_rulebased_create(void)
-{
- routing_component_rulebased_t new_component =
- xbt_new0(s_routing_component_rulebased_t, 1);
- new_component->generic_routing.set_processing_unit =
- model_rulebased_set_processing_unit;
- new_component->generic_routing.set_autonomous_system =
- model_rulebased_set_autonomous_system;
- new_component->generic_routing.set_route = model_rulebased_set_route;
- new_component->generic_routing.set_ASroute = model_rulebased_set_ASroute;
- new_component->generic_routing.set_bypassroute = model_rulebased_set_bypassroute;
+AS_t model_rulebased_create(void) {
+
+ AS_rulebased_t new_component = (AS_rulebased_t)
+ model_generic_create_sized(sizeof(s_AS_rulebased_t));
+
+ new_component->generic_routing.parse_PU = model_rulebased_parse_PU;
+ new_component->generic_routing.parse_AS = model_rulebased_parse_AS;
+ new_component->generic_routing.parse_route = model_rulebased_parse_route;
+ new_component->generic_routing.parse_ASroute = model_rulebased_parse_ASroute;
+ new_component->generic_routing.parse_bypassroute = model_rulebased_parse_bypassroute;