protected:
const kernel::lmm::Constraint* constraint_ = nullptr;
+
+ struct Metric {
+ double peak; /**< The peak of the metric, ie its max value */
+ double scale; /**< Current availability of the metric according to the traces, in [0,1] */
+ tmgr_trace_event_t event; /**< The associated trace event associated to the metric */
+ };
};
} // namespace model
} // namespace kernel
virtual void setSpeedTrace(tmgr_trace_t trace); /*< setup the trace file with availability events (peak speed changes due to external load). Trace must contain relative values (ratio between 0 and 1) */
tmgr_trace_event_t stateEvent_ = nullptr;
- s_surf_metric_t speed_ = {1.0, 0, nullptr};
+ Metric speed_ = {1.0, 0, nullptr};
};
/**********
Trace must contain absolute values */
tmgr_trace_event_t stateEvent_ = nullptr;
- s_surf_metric_t latency_ = {1.0, 0, nullptr};
- s_surf_metric_t bandwidth_ = {1.0, 0, nullptr};
+ Metric latency_ = {1.0, 0, nullptr};
+ Metric bandwidth_ = {1.0, 0, nullptr};
/* User data */
void* getData() { return userData; }
* Resource *
************/
-/** @ingroup SURF_interface
- * @brief Resource which have a metric handled by a maxmin system
- */
-struct s_surf_metric_t {
- double peak; /**< The peak of the metric, ie its max value */
- double scale; /**< Current availability of the metric according to the traces, in [0,1] */
- tmgr_trace_event_t event; /**< The associated trace event associated to the metric */
-};
-
#endif /* SURF_MODEL_H_ */