X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/67f36ac7e6410496964e1c3c5104af9920438131..a22eb0ac7d22d5beaa6e33adf8f85c28dac59024:/src/surf/ptask_L07.hpp diff --git a/src/surf/ptask_L07.hpp b/src/surf/ptask_L07.hpp index a611d4771e..389720c877 100644 --- a/src/surf/ptask_L07.hpp +++ b/src/surf/ptask_L07.hpp @@ -58,12 +58,9 @@ class NetworkL07Model : public NetworkModel { public: NetworkL07Model(HostL07Model *hmodel, lmm_system_t sys); ~NetworkL07Model(); - Link* createLink(const char *name, double bandwidth, double latency, - e_surf_link_sharing_policy_t policy, - xbt_dict_t properties) override; + Link* createLink(const char* name, double bandwidth, double latency, e_surf_link_sharing_policy_t policy) override; - Action *communicate(kernel::routing::NetCard *src, kernel::routing::NetCard *dst, double size, double rate) override; - bool next_occuring_event_isIdempotent() override {return true;} + Action* communicate(s4u::Host* src, s4u::Host* dst, double size, double rate) override; HostL07Model *hostModel_; }; @@ -86,13 +83,13 @@ protected: class LinkL07 : public Link { public: - LinkL07(NetworkL07Model *model, const char* name, xbt_dict_t props, - double bandwidth, double latency, e_surf_link_sharing_policy_t policy); + LinkL07(NetworkL07Model* model, const char* name, double bandwidth, double latency, + e_surf_link_sharing_policy_t policy); ~LinkL07(){ }; bool isUsed() override; void apply_event(tmgr_trace_iterator_t event, double value) override; - void updateBandwidth(double value) override; - void updateLatency(double value) override; + void setBandwidth(double value) override; + void setLatency(double value) override; }; /********** @@ -111,7 +108,7 @@ public: int unref() override; - std::vector * netcardList_ = new std::vector(); + std::vector* hostList_ = new std::vector(); double *computationAmount_; double *communicationAmount_; double latency_;