X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5ed37babb2fa9097abe82df299c0aa259ed84d5a..1a0b456abcc5188a31ba979c6ddafb20fc38163d:/src/kernel/lmm/System.hpp diff --git a/src/kernel/lmm/System.hpp b/src/kernel/lmm/System.hpp index ab4684b837..25fa550730 100644 --- a/src/kernel/lmm/System.hpp +++ b/src/kernel/lmm/System.hpp @@ -8,10 +8,7 @@ #include "simgrid/kernel/resource/Action.hpp" #include "simgrid/kernel/resource/Model.hpp" -#include "simgrid/s4u/Link.hpp" -#include "src/surf/surf_interface.hpp" #include "xbt/asserts.h" -#include "xbt/ex.h" #include "xbt/mallocator.h" #include @@ -21,9 +18,14 @@ #include #include +/* user-visible parameters */ +XBT_PUBLIC_DATA double sg_precision_workamount; +XBT_PUBLIC_DATA double sg_precision_timing; +XBT_PUBLIC_DATA int sg_concurrency_limit; + namespace simgrid::kernel::lmm { -/** @addtogroup SURF_lmm +/** @addtogroup Model_lmm * @details * A linear maxmin solver to resolve inequations systems. * @@ -133,7 +135,7 @@ namespace simgrid::kernel::lmm { * At the current state, each variable counts as 1 if its consumption weight is greater than 1. */ -/** @{ @ingroup SURF_lmm */ +/** @{ @ingroup Model_lmm */ /** * @brief LMM element @@ -218,8 +220,8 @@ public: /** @brief Check how a constraint is shared */ SharingPolicy get_sharing_policy() const { return sharing_policy_; } - /** @brief Get the usage of the constraint after the last lmm solve */ - double get_usage() const; + /** @brief Get the load of the constraint after the last lmm solve */ + double get_load() const; /** @brief Sets the concurrency limit for this constraint */ void set_concurrency_limit(int limit) @@ -243,7 +245,7 @@ public: int get_concurrency_maximum() const { xbt_assert(concurrency_limit_ < 0 || concurrency_maximum_ <= concurrency_limit_, - "Very bad: maximum observed concurrency is higher than limit. This is a bug of SURF, please report it."); + "Very bad: maximum observed concurrency is higher than limit. This is a bug, please report it."); return concurrency_maximum_; }