* @details A Link represents the link between two [hosts](@ref simgrid::surf::HostImpl)
*/
class LinkImpl : public Resource, public xbt::PropertyHolder {
- bool currently_destroying_ = false;
s4u::Link piface_;
protected:
LinkImpl(NetworkModel* model, const std::string& name, lmm::Constraint* constraint);
LinkImpl(const LinkImpl&) = delete;
LinkImpl& operator=(const LinkImpl&) = delete;
- ~LinkImpl() override;
+ ~LinkImpl() override = default; // Use destroy() instead of this destructor.
public:
void destroy(); // Must be called instead of the destructor
void set_state(Action::State state) override;
virtual std::list<LinkImpl*> get_links() const;
- double latency_ = {};
- double lat_current_ = {};
+ double latency_ = 0.; // Delay before the action starts
+ double lat_current_ = 0.; // Used to compute the communication RTT, and accordingly limit the communication rate
double sharing_penalty_ = {};
double rate_ = {};
s4u::Host& get_src() const { return src_; }