return res;
}
-NetZone* NetZone::add_child(const NetZone* new_zone)
+NetZone* NetZone::add_child(NetZone* new_zone)
{
- pimpl_->add_child(new_zone->get_impl());
+ new_zone->set_parent(this);
return this;
}
NetZone* NetZone::set_parent(const NetZone* parent)
{
- pimpl_->set_parent(parent->get_impl());
+ kernel::actor::simcall([this, parent] { pimpl_->set_parent(parent->get_impl()); });
return this;
}
pimpl_->get_graph(graph, nodes, edges);
}
-void NetZone::seal()
+NetZone* NetZone::seal()
{
kernel::actor::simcall([this] { pimpl_->seal(); });
+ return this;
}
s4u::Host* NetZone::create_host(const std::string& name, const std::vector<double>& speed_per_pstate)