+const char *surf_action_state_names[6] = {
+ "SURF_ACTION_READY",
+ "SURF_ACTION_RUNNING",
+ "SURF_ACTION_FAILED",
+ "SURF_ACTION_DONE",
+ "SURF_ACTION_TO_FREE",
+ "SURF_ACTION_NOT_IN_THE_SYSTEM"
+};
+
+
+s_surf_model_description_t surf_network_model_description[] = {
+ {"Constant", NULL, surf_network_model_init_Constant},
+ {"CM02", NULL, surf_network_model_init_CM02},
+#ifdef HAVE_GTNETS
+ {"GTNets", NULL, surf_network_model_init_GTNETS},
+#endif
+#ifdef HAVE_SDP
+ {"SDP", NULL, surf_network_model_init_SDP},
+#endif
+ {"Reno", NULL, surf_network_model_init_Reno},
+ {"Reno2", NULL, surf_network_model_init_Reno2},
+ {"Vegas", NULL, surf_network_model_init_Vegas},
+ { NULL,NULL,NULL} /* this array must be NULL terminated */
+};
+
+s_surf_model_description_t surf_cpu_model_description[] = {
+ {"Cas01", NULL, surf_cpu_model_init_Cas01},
+ { NULL,NULL,NULL} /* this array must be NULL terminated */
+};
+
+s_surf_model_description_t surf_workstation_model_description[] = {
+ {"CLM03", NULL, surf_workstation_model_init_CLM03, create_workstations},
+ {"compound", NULL, surf_workstation_model_init_compound, create_workstations},
+ {"ptask_L07", NULL, surf_workstation_model_init_ptask_L07, NULL},
+ { NULL,NULL,NULL} /* this array must be NULL terminated */
+};
+
+void update_model_description(s_surf_model_description_t * table,
+ const char *name,
+ surf_model_t model)
+{
+ int i = find_model_description(table, name);
+ table[i].model = model;
+}