/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
- ~NetworkNS3Model();
- LinkImpl* create_link(const std::string& name, const std::vector<double>& bandwidth, double latency,
+ LinkImpl* create_link(const std::string& name, const std::vector<double>& bandwidth,
s4u::Link::SharingPolicy policy) override;
Action* communicate(s4u::Host* src, s4u::Host* dst, double size, double rate) override;
double next_occurring_event(double now) override;
s4u::Link::SharingPolicy policy) override;
Action* communicate(s4u::Host* src, s4u::Host* dst, double size, double rate) override;
double next_occurring_event(double now) override;
- explicit LinkNS3(NetworkNS3Model* model, const std::string& name, double bandwidth, double latency);
- ~LinkNS3();
+ explicit LinkNS3(const std::string& name, double bandwidth, s4u::Link::SharingPolicy policy);
+ ~LinkNS3() override;
+ s4u::Link::SharingPolicy sharing_policy_;
- void set_bandwidth(double value) override { THROW_UNIMPLEMENTED; }
- void set_latency(double value) override { THROW_UNIMPLEMENTED; }
+ void set_bandwidth(double) override { THROW_UNIMPLEMENTED; }
+ LinkImpl* set_latency(double) override { /* do nothing */ return this; }
void set_bandwidth_profile(profile::Profile* profile) override;
void set_latency_profile(profile::Profile* profile) override;
void set_bandwidth_profile(profile::Profile* profile) override;
void set_latency_profile(profile::Profile* profile) override;