+kernel::resource::LinkImpl* Link::get_impl() const
+{
+ auto* link_impl = dynamic_cast<kernel::resource::LinkImpl*>(pimpl_);
+ xbt_assert(link_impl != nullptr, "Impossible to get a LinkImpl* from link. %s.",
+ (get_sharing_policy() == SharingPolicy::SPLITDUPLEX
+ ? "For a Split-Duplex link, you should call this method to each UP/DOWN member"
+ : "Please report this bug"));
+ return link_impl;
+}
+