-/*********
- * Trace *
- *********/
-/* For the trace and trace:connect tag (store their content till the end of the parsing) */
-XBT_PUBLIC_DATA(xbt_dict_t) traces_set_list;
-XBT_PUBLIC_DATA(xbt_dict_t) trace_connect_list_host_avail;
-XBT_PUBLIC_DATA(xbt_dict_t) trace_connect_list_power;
-XBT_PUBLIC_DATA(xbt_dict_t) trace_connect_list_link_avail;
-XBT_PUBLIC_DATA(xbt_dict_t) trace_connect_list_bandwidth;
-XBT_PUBLIC_DATA(xbt_dict_t) trace_connect_list_latency;
-
-/*********
- * Model *
- *********/
-XBT_PUBLIC_DATA(xbt_dynar_t) model_list;
-
-/** @ingroup SURF_interface
- * @brief SURF model interface class
- * @details A model is an object which handle the interactions between its Resources and its Actions
- */
-XBT_PUBLIC_CLASS Model {
-public:
- /**
- * @brief Model constructor
- *
- * @param name the name of the model
- */
- Model(const char *name);
-
- /**
- * @brief Model destructor
- */
- virtual ~Model();
-
- virtual void addTraces() =0;
-
- /**
- * @brief Get the name of the current Model
- *
- * @return The name of the current Model
- */
- const char *getName() {return p_name;}
-
- /**
- * @brief Get the set of [actions](@ref Action) in *ready* state
- *
- * @return The set of [actions](@ref Action) in *ready* state
- */
- virtual ActionListPtr getReadyActionSet() {return p_readyActionSet;}
-
- /**
- * @brief Get the set of [actions](@ref Action) in *running* state
- *
- * @return The set of [actions](@ref Action) in *running* state
- */
- virtual ActionListPtr getRunningActionSet() {return p_runningActionSet;}
-
- /**
- * @brief Get the set of [actions](@ref Action) in *failed* state
- *
- * @return The set of [actions](@ref Action) in *failed* state
- */
- virtual ActionListPtr getFailedActionSet() {return p_failedActionSet;}
-
- /**
- * @brief Get the set of [actions](@ref Action) in *done* state
- *
- * @return The set of [actions](@ref Action) in *done* state
- */
- virtual ActionListPtr getDoneActionSet() {return p_doneActionSet;}
-
- /**
- * @brief Get the set of modified [actions](@ref Action)
- *
- * @return The set of modified [actions](@ref Action)
- */
- virtual ActionLmmListPtr getModifiedSet() {return p_modifiedSet;}
-
- /**
- * @brief Get the maxmin system of the current Model
- *
- * @return The maxmin system of the current Model
- */
- lmm_system_t getMaxminSystem() {return p_maxminSystem;}
-
- /**
- * @brief Get the update mechanism of the current Model
- * @see e_UM_t
- *
- * @return [description]
- */
- e_UM_t getUpdateMechanism() {return p_updateMechanism;}
-
- /**
- * @brief Get Action heap
- * @details [TODO]
- *
- * @return The Action heap
- */
- xbt_heap_t getActionHeap() {return p_actionHeap;}
-
- /**
- * @brief share the resources
- * @details Share the resources between the actions
- *
- * @param now The current time of the simulation
- * @return The delta of time till the next action will finish
- */
- virtual double shareResources(double now);
- virtual double shareResourcesLazy(double now);
- virtual double shareResourcesFull(double now);
- double shareResourcesMaxMin(ActionListPtr running_actions,
- lmm_system_t sys,
- void (*solve) (lmm_system_t));
-
- /**
- * @brief Update state of actions
- * @details Update action to the current time
- *
- * @param now The current time of the simulation
- * @param delta The delta of time since the last update
- */
- virtual void updateActionsState(double now, double delta);
- virtual void updateActionsStateLazy(double now, double delta);
- virtual void updateActionsStateFull(double now, double delta);
-
-protected:
- ActionLmmListPtr p_modifiedSet;
- lmm_system_t p_maxminSystem;
- e_UM_t p_updateMechanism;
- int m_selectiveUpdate;
- xbt_heap_t p_actionHeap;
-
-private:
- const char *p_name;
-
- ActionListPtr p_readyActionSet; /**< Actions in state SURF_ACTION_READY */
- ActionListPtr p_runningActionSet; /**< Actions in state SURF_ACTION_RUNNING */
- ActionListPtr p_failedActionSet; /**< Actions in state SURF_ACTION_FAILED */
- ActionListPtr p_doneActionSet; /**< Actions in state SURF_ACTION_DONE */
-};
-
-/************
- * Resource *
- ************/
-
-/** @ingroup SURF_interface
- * @brief Resource which have a metric handled by a maxmin system
- */
-typedef struct {
- double scale; /**< The scale of the metric */
- double peak; /**< The peak of the metric */
- tmgr_trace_event_t event; /**< The associated trace event associated to the metric */
-} s_surf_metric_t;