* Model *
*********/
-simgrid::kernel::resource::NetworkModel* surf_network_model = nullptr;
-
namespace simgrid {
namespace kernel {
namespace resource {
return get_constraint()->get_sharing_policy();
}
-void LinkImpl::latency_check(double latency)
+void LinkImpl::latency_check(double latency) const
{
static double last_warned_latency = sg_surf_precision;
if (latency != 0.0 && latency < last_warned_latency) {
void LinkImpl::seal()
{
+ xbt_assert(this->get_model(), "Cannot seal Link(%s) without setting the Network model first", this->get_cname());
Resource::seal();
simgrid::s4u::Link::on_creation(*get_iface());
}