X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ac6b411512330530569fadb8c3f4fb82a4c70440..83ade874cb34c7f3afbc9f7a782e097cbb7209bf:/src/surf/host_interface.hpp diff --git a/src/surf/host_interface.hpp b/src/surf/host_interface.hpp index 6ffdfa31cf..7766807dd9 100644 --- a/src/surf/host_interface.hpp +++ b/src/surf/host_interface.hpp @@ -47,20 +47,20 @@ namespace surf { * @brief SURF Host model interface class * @details A model is an object which handle the interactions between its Resources and its Actions */ -class HostModel : public Model{ +class HostModel : public Model { public: HostModel() : Model() {} - ~HostModel() {} + ~HostModel() override {} Host *createHost(const char *name, NetCard *net, Cpu *cpu, xbt_dict_t props); void addTraces() override {DIE_IMPOSSIBLE;} virtual void adjustWeightOfDummyCpuActions(); virtual Action *executeParallelTask(int host_nb, - sg_host_t *host_list, - double *flops_amount, - double *bytes_amount, - double rate)=0; + sg_host_t *host_list, + double *flops_amount, + double *bytes_amount, + double rate); bool shareResourcesIsIdempotent() override {return true;} }; @@ -229,7 +229,7 @@ public: virtual int fileMove(surf_file_t fd, const char* fullpath); bool isUsed() override {DIE_IMPOSSIBLE;} // FIXME: Host should not be a Resource - void updateState(tmgr_trace_event_t event_type, double value, double date) override + void updateState(tmgr_trace_iterator_t event_type, double value, double date) override {THROW_IMPOSSIBLE;} // FIXME: Host should not be a Resource public: