- routing_component_cluster_t new_component = model_rulebased_create();
- new_component->generic_routing.get_route = cluster_get_route;
+ AS_t result = model_none_create_sized(sizeof(s_as_cluster_t));
+ result->get_route_and_latency = cluster_get_route_and_latency;
+ result->finalize = model_cluster_finalize;
+
+ return (AS_t) result;
+}
+
+void surf_routing_cluster_add_link(const char* host_id,surf_parsing_link_up_down_t info) {
+ if(!cluster_host_link)
+ cluster_host_link = xbt_dict_new_homogeneous(xbt_free);
+
+ xbt_dict_set(cluster_host_link,host_id,info,NULL);
+}