+ CommImpl& set_type(CommImplType type);
+ CommImplType get_type() const { return type_; }
+ CommImpl& set_source(s4u::Host* from);
+ s4u::Host* get_source() const { return from_; }
+ CommImpl& set_destination(s4u::Host* to);
+ s4u::Host* get_destination() const { return to_; }
+ CommImpl& set_size(double size);
+ CommImpl& set_src_buff(unsigned char* buff, size_t size);
+ CommImpl& set_dst_buff(unsigned char* buff, size_t* size);
+ CommImpl& set_rate(double rate);
+ CommImpl& set_mailbox(MailboxImpl* mbox);
+ CommImpl& detach();
+
+ double get_rate() const { return rate_; }
+ MailboxImpl* get_mailbox() const { return mbox_; }
+ long get_mailbox_id() const { return mbox_id_; }
+ bool is_detached() const { return detached_; }
+ bool is_assigned() const { return (to_ != nullptr && from_ != nullptr); }
+
+ std::vector<s4u::Link*> get_traversed_links() const;