Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
cosmetics and documentation around VM parameters
[simgrid.git] / src / surf / host_interface.hpp
index 48fa525..5f3f64f 100644 (file)
@@ -60,26 +60,20 @@ XBT_PUBLIC(void) host_add_traces();
  */
 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;}
 };
 
 /************
@@ -321,22 +315,13 @@ public:
   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;
 };
 
 /**********