#include <xbt.h>
#include <string>
#include <vector>
+#include <iostream>
#include <memory>
-#include <boost/smart_ptr.hpp>
#include <boost/function.hpp>
-#include <boost/functional/factory.hpp>
-#include <boost/bind.hpp>
#include "surf/trace_mgr.h"
#include "xbt/lib.h"
#include "surf/surf_routing.h"
ModelPtr getModel() {return p_model;};
virtual e_surf_resource_state_t getState();
+ virtual void setState(e_surf_resource_state_t state);
void printModel() { std::cout << p_model->getName() << "<<plop"<<std::endl;};
void *p_resource;
const char *m_name;
xbt_swag_t p_stateSet;
double m_priority; /**< priority (1.0 by default) */
+ double m_bound; /**< the capping of the CPU use */
bool m_failed;
double m_start; /**< start time */
double m_finish; /**< finish time : this is modified during the run and fluctuates until the task is completed */
ActionLmm() : m_suspended(false) {
p_actionListHookup.prev = 0;
p_actionListHookup.next = 0;
+ m_lastUpdate = 0;
+ m_lastValue = 0;
};
- ActionLmm(ModelPtr model, double cost, bool failed) : m_suspended(false) {
+ ActionLmm(ModelPtr /*model*/, double /*cost*/, bool /*failed*/) : m_suspended(false) {
p_actionListHookup.prev = 0;
p_actionListHookup.next = 0;
+ m_lastUpdate = 0;
+ m_lastValue = 0;
};
virtual void updateRemainingLazy(double now);