X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b8df87e176f27b25534f27d7e240defa32ca35bc..4485d715fa3a090c1dd38def83ab8239feebecb3:/src/s4u/s4u_Link.cpp diff --git a/src/s4u/s4u_Link.cpp b/src/s4u/s4u_Link.cpp index f51ffb2314..d09897b673 100644 --- a/src/s4u/s4u_Link.cpp +++ b/src/s4u/s4u_Link.cpp @@ -78,6 +78,11 @@ void Link::turn_off() simgrid::simix::simcall([this]() { this->pimpl_->turn_off(); }); } +bool Link::is_on() const +{ + return this->pimpl_->is_on(); +} + void* Link::get_data() { return this->pimpl_->get_data(); @@ -87,17 +92,17 @@ void Link::set_data(void* d) simgrid::simix::simcall([this, d]() { this->pimpl_->set_data(d); }); } -void Link::set_state_trace(tmgr_trace_t trace) +void Link::set_state_profile(kernel::profile::Profile* profile) { - simgrid::simix::simcall([this, trace]() { this->pimpl_->set_state_trace(trace); }); + simgrid::simix::simcall([this, profile]() { this->pimpl_->set_state_profile(profile); }); } -void Link::set_bandwidth_trace(tmgr_trace_t trace) +void Link::set_bandwidth_profile(kernel::profile::Profile* profile) { - simgrid::simix::simcall([this, trace]() { this->pimpl_->set_bandwidth_trace(trace); }); + simgrid::simix::simcall([this, profile]() { this->pimpl_->set_bandwidth_profile(profile); }); } -void Link::set_latency_trace(tmgr_trace_t trace) +void Link::set_latency_profile(kernel::profile::Profile* trace) { - simgrid::simix::simcall([this, trace]() { this->pimpl_->set_latency_trace(trace); }); + simgrid::simix::simcall([this, trace]() { this->pimpl_->set_latency_profile(trace); }); } const char* Link::get_property(std::string key)