X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/588829c9373ff2627445cd0ef63cbb7b593bf565..afd3a47e007a0f91d206cc2e47b69b4b86970fc2:/src/s4u/s4u_link.cpp diff --git a/src/s4u/s4u_link.cpp b/src/s4u/s4u_link.cpp index 7f9802f1b5..4fd78e8863 100644 --- a/src/s4u/s4u_link.cpp +++ b/src/s4u/s4u_link.cpp @@ -1,12 +1,11 @@ -/* Copyright (c) 2013-2015. The SimGrid Team. - * All rights reserved. */ +/* Copyright (c) 2013-2017. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ #include -#include "simgrid/s4u/link.hpp" +#include "simgrid/s4u/Link.hpp" #include "simgrid/sg_config.h" #include "simgrid/simix.hpp" #include "src/surf/network_interface.hpp" @@ -85,26 +84,26 @@ Link* Link::byName(const char* name) } const char* Link::name() { - return pimpl_->getName(); + return this->pimpl_->cname(); } bool Link::isUsed() { - return pimpl_->isUsed(); + return this->pimpl_->isUsed(); } double Link::latency() { - return pimpl_->latency(); + return this->pimpl_->latency(); } double Link::bandwidth() { - return pimpl_->bandwidth(); + return this->pimpl_->bandwidth(); } int Link::sharingPolicy() { - return pimpl_->sharingPolicy(); + return this->pimpl_->sharingPolicy(); } void Link::turnOn() @@ -122,7 +121,7 @@ void Link::turnOff() void* Link::getData() { - return pimpl_->getData(); + return this->pimpl_->getData(); } void Link::setData(void* d) { @@ -149,5 +148,14 @@ void Link::setLatencyTrace(tmgr_trace_t trace) this->pimpl_->setLatencyTrace(trace); }); } + +/************* + * Callbacks * + *************/ +simgrid::xbt::signal Link::onCreation; +simgrid::xbt::signal Link::onDestruction; +simgrid::xbt::signal Link::onStateChange; +simgrid::xbt::signal Link::onCommunicate; +simgrid::xbt::signal Link::onCommunicationStateChange; } }