*/
class HostModel : public Model {
public:
- /** @brief Constructor */
- HostModel(const char *name);
-
- /** @brief Constructor */
- HostModel();
-
- /** @brief Destructor */
- ~HostModel();
+ HostModel() : Model() {}
+ ~HostModel() {}
virtual Host *createHost(const char *name)=0;
void addTraces(){DIE_IMPOSSIBLE;}
virtual void adjustWeightOfDummyCpuActions();
virtual Action *executeParallelTask(int host_nb,
- void **host_list,
- double *flops_amount,
- double *bytes_amount,
- double rate)=0;
+ sg_host_t *host_list,
+ double *flops_amount,
+ double *bytes_amount,
+ double rate)=0;
- virtual Action *communicate(Host *src, Host *dst, double size, double rate)=0;
+ bool shareResourcesIsIdempotent() {return true;}
};
/************
xbt_dynar_t getVms();
/* common with vm */
- /**
- * @brief [brief description]
- * @details [long description]
- *
- * @param params [description]
- */
- void getParams(ws_params_t params);
-
- /**
- * @brief [brief description]
- * @details [long description]
- *
- * @param params [description]
- */
- void setParams(ws_params_t params);
- s_ws_params_t p_params;
+ /** @brief Retrieve a copy of the parameters of that VM/PM
+ * @details The ramsize and overcommit fields are used on the PM too */
+ void getParams(vm_params_t params);
+ /** @brief Sets the params of that VM/PM */
+ void setParams(vm_params_t params);
+private:
+ s_vm_params_t p_params;
};
/**********