-/* Authors: Arnaud Legrand */
+/* $Id$ */
+
+/* Copyright (c) 2004 Arnaud Legrand. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
- under the terms of the license (GNU LGPL) which comes with this package. */
+ * under the terms of the license (GNU LGPL) which comes with this package. */
+
#include "xbt/sysdep.h"
#include "xbt/error.h"
#include "maxmin_private.h"
#include <stdlib.h>
-/* extern lmm_system_t Sys; */
-/* extern lmm_constraint_t L1; */
-/* extern lmm_constraint_t L2; */
-/* extern lmm_constraint_t L3; */
-
-/* extern lmm_variable_t R_1_2_3; */
-/* extern lmm_variable_t R_1; */
-/* extern lmm_variable_t R_2; */
-/* extern lmm_variable_t R_3; */
-
-
lmm_system_t lmm_system_new(void)
{
lmm_system_t l = NULL;
return var->id;
}
-static void saturated_constraints_update(lmm_system_t sys,
+static void saturated_constraint_set_update(lmm_system_t sys,
lmm_constraint_t cnst,
xbt_maxmin_float_t * min_usage)
{
}
}
-static void saturated_variables_update(lmm_system_t sys)
+static void saturated_variable_set_update(lmm_system_t sys)
{
lmm_constraint_t cnst = NULL;
xbt_swag_t cnst_list = NULL;
lmm_element_t elem = NULL;
xbt_swag_t elem_list = NULL;
- sys->modified = 1;
-
cnst_list = &(sys->saturated_constraint_set);
while ((cnst = xbt_swag_getFirst(cnst_list))) {
/* xbt_swag_foreach(cnst, cnst_list) { */
}
/* Saturated constraints update */
- saturated_constraints_update(sys, cnst, &min_usage);
+ saturated_constraint_set_update(sys, cnst, &min_usage);
}
- saturated_variables_update(sys);
+ saturated_variable_set_update(sys);
/* Saturated variables update */
cnst_list = &(sys->active_constraint_set);
min_usage = -1;
xbt_swag_foreach(cnst, cnst_list) {
- saturated_constraints_update(sys, cnst, &min_usage);
+ saturated_constraint_set_update(sys, cnst, &min_usage);
}
- saturated_variables_update(sys);
+ saturated_variable_set_update(sys);
} while (xbt_swag_size(&(sys->saturated_variable_set)));