/* 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. */
- LinkImpl* create_link(const std::string& name, double bandwidth, double latency,
+ LinkImpl* create_link(const std::string& name, const std::vector<double>& bandwidth, double latency,
- kernel::resource::Action* communicate(s4u::Host* src, s4u::Host* dst, double size, double rate) override;
+ Action* communicate(s4u::Host* src, s4u::Host* dst, double size, double rate) override;
double next_occuring_event(double now) override;
bool next_occuring_event_is_idempotent() override { return false; }
void update_actions_state(double now, double delta) override;
double next_occuring_event(double now) override;
bool next_occuring_event_is_idempotent() override { return false; }
void update_actions_state(double now, double delta) override;
explicit LinkNS3(NetworkNS3Model* model, const std::string& name, double bandwidth, double latency);
~LinkNS3();
explicit LinkNS3(NetworkNS3Model* model, const std::string& name, double bandwidth, double latency);
~LinkNS3();
void set_bandwidth(double value) override { THROW_UNIMPLEMENTED; }
void set_latency(double value) override { THROW_UNIMPLEMENTED; }
void set_bandwidth(double value) override { THROW_UNIMPLEMENTED; }
void set_latency(double value) override { THROW_UNIMPLEMENTED; }
- void set_bandwidth_trace(tmgr_trace_t trace) override;
- void set_latency_trace(tmgr_trace_t trace) override;
+ void set_bandwidth_profile(profile::Profile* profile) override;
+ void set_latency_profile(profile::Profile* profile) override;
- NetworkNS3Action(kernel::resource::Model* model, double cost, s4u::Host* src, s4u::Host* dst);
+ NetworkNS3Action(Model* model, double cost, s4u::Host* src, s4u::Host* dst);