return get_model()->get_maxmin_system()->constraint_used(get_constraint());
}
-double LinkImpl::get_latency()
+double LinkImpl::get_latency() const
{
return latency_.peak * latency_.scale;
}
-double LinkImpl::get_bandwidth()
+double LinkImpl::get_bandwidth() const
{
return bandwidth_.peak * bandwidth_.scale;
}
s4u::Link* get_iface() { return &piface_; }
/** @brief Get the bandwidth in bytes per second of current Link */
- virtual double get_bandwidth();
+ virtual double get_bandwidth() const;
/** @brief Update the bandwidth in bytes per second of current Link */
virtual void set_bandwidth(double value) = 0;
/** @brief Get the latency in seconds of current Link */
- virtual double get_latency();
+ virtual double get_latency() const;
/** @brief Update the latency in seconds of current Link */
virtual void set_latency(double value) = 0;
std::vector<simgrid::kernel::resource::LinkImpl*> const& link_list)
{
if (link_list.size() == 1) {
- auto* link = static_cast<simgrid::kernel::resource::LinkNS3*>(link_list[0]);
+ auto const* link = static_cast<simgrid::kernel::resource::LinkNS3*>(link_list[0]);
XBT_DEBUG("Route from '%s' to '%s' with link '%s' %s %s", src->get_cname(), dst->get_cname(), link->get_cname(),
(link->get_sharing_policy() == simgrid::s4u::Link::SharingPolicy::WIFI ? "(wifi)" : "(wired)"),