void turn_on() override;
void turn_off() override;
- void on_bandwidth_change();
+ void on_bandwidth_change() const;
virtual void
set_bandwidth_profile(kernel::profile::Profile* profile); /*< setup the profile file with bandwidth events
double lat_current_ = {};
double sharing_penalty_ = {};
double rate_ = {};
- s4u::Host& get_src() { return src_; }
- s4u::Host& get_dst() { return dst_; }
+ s4u::Host& get_src() const { return src_; }
+ s4u::Host& get_dst() const { return dst_; }
};
} // namespace resource
} // namespace kernel