resource::NetworkModel* network_model_;
+ const s4u::NetZone* get_iface() const { return &piface_; }
s4u::NetZone* get_iface() { return &piface_; }
unsigned int get_table_size() const { return vertices_.size(); }
std::vector<kernel::routing::NetPoint*> get_vertices() const { return vertices_; }
~ConditionVariableImpl() = default;
void remove_sleeping_actor(actor::ActorImpl& actor) { xbt::intrusive_erase(sleeping_, actor); }
+ const s4u::ConditionVariable* get_iface() const { return &piface_; }
s4u::ConditionVariable* get_iface() { return &piface_; }
void broadcast();
void signal();
~DiskImpl() override;
/** @brief Public interface */
+ const s4u::Disk* get_iface() const { return &piface_; }
s4u::Disk* get_iface() { return &piface_; }
s4u::Host* get_host() const { return host_; }
void set_host(s4u::Host* host) { host_ = host; }
if (actionWifi == nullptr)
return;
- auto link_src = actionWifi->get_src_link();
- auto link_dst = actionWifi->get_dst_link();
+ auto const* link_src = actionWifi->get_src_link();
+ auto const* link_dst = actionWifi->get_dst_link();
if(link_src != nullptr)
link_src->get_iface()->extension<LinkEnergyWifi>()->update(action);
std::unordered_map<std::string, s4u::Storage*>* get_mounted_storages();
void set_storages(const std::map<std::string, kernel::resource::StorageImpl*>& storages) { storage_ = storages; }
- s4u::Host* get_iface() { return piface_; }
+ s4u::Host* get_iface() const { return piface_; }
void turn_on() const;
void turn_off(const kernel::actor::ActorImpl* issuer);
~StorageImpl() override;
+ const s4u::Storage* get_iface() const { return &piface_; }
s4u::Storage* get_iface() { return &piface_; }
const char* get_type() const { return typeId_.c_str(); }
lmm::Constraint* get_read_constraint() const { return constraint_read_; }
void destroy(); // Must be called instead of the destructor
/** @brief Public interface */
+ const s4u::Link* get_iface() const { return &piface_; }
s4u::Link* get_iface() { return &piface_; }
/** @brief Get the bandwidth in bytes per second of current Link */