X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7da2926d0733ff0683f31aeea176ce71e127264f..e082f5068bf34dbe8b917be567bcf5f4b6776f8f:/src/surf/host_clm03.hpp diff --git a/src/surf/host_clm03.hpp b/src/surf/host_clm03.hpp index e2d27bb70b..74bff01ee6 100644 --- a/src/surf/host_clm03.hpp +++ b/src/surf/host_clm03.hpp @@ -18,9 +18,10 @@ * Classes * ***********/ +namespace simgrid { +namespace surf { + class XBT_PRIVATE HostCLM03Model; -class XBT_PRIVATE HostCLM03; -class XBT_PRIVATE HostCLM03Action; /********* * Model * @@ -30,42 +31,11 @@ class HostCLM03Model : public HostModel { public: HostCLM03Model(): HostModel(){} ~HostCLM03Model() {} - Host *createHost(const char *name); - double shareResources(double now); - - void updateActionsState(double now, double delta); - - Action *executeParallelTask(int host_nb, - sg_host_t *host_list, - double *flops_amount, - double *bytes_amount, - double rate); -}; - -/************ - * Resource * - ************/ - -class HostCLM03 : public Host { -public: - HostCLM03(HostModel *model, const char* name, xbt_dict_t properties, xbt_dynar_t storage, RoutingEdge *netElm, Cpu *cpu); + double shareResources(double now) override; - void updateState(tmgr_trace_event_t event_type, double value, double date); - - virtual Action *execute(double size); - virtual Action *sleep(double duration); - e_surf_resource_state_t getState(); - - bool isUsed(); - - xbt_dynar_t getVms(); + void updateActionsState(double now, double delta) override; }; - - -/********** - * Action * - **********/ - - +} +} #endif /* SURF_HOST_CLM03_HPP_ */