X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d9966aa66acc63c0417fbeae8e3ff12bccb0cdb0..aa19b8ec2814d04500c24d5df65a4e620e8e8969:/src/kernel/activity/CommImpl.cpp diff --git a/src/kernel/activity/CommImpl.cpp b/src/kernel/activity/CommImpl.cpp index e811dd1768..129aeafc5e 100644 --- a/src/kernel/activity/CommImpl.cpp +++ b/src/kernel/activity/CommImpl.cpp @@ -1,10 +1,10 @@ -/* Copyright (c) 2007-2017. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2007-2018. 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 "src/kernel/activity/CommImpl.hpp" -#include "src/kernel/resource/Action.hpp" +#include "simgrid/kernel/resource/Action.hpp" #include "simgrid/modelchecker.h" #include "src/mc/mc_replay.hpp" @@ -72,7 +72,7 @@ void simgrid::kernel::activity::CommImpl::cancel() /** @brief get the amount remaining from the communication */ double simgrid::kernel::activity::CommImpl::remains() { - return surfAction_->getRemains(); + return surfAction_->get_remains(); } /** @brief This is part of the cleanup process, probably an internal command */ @@ -97,15 +97,15 @@ void simgrid::kernel::activity::CommImpl::cleanupSurf() void simgrid::kernel::activity::CommImpl::post() { /* Update synchro state */ - if (src_timeout && src_timeout->getState() == simgrid::kernel::resource::Action::State::done) + if (src_timeout && src_timeout->get_state() == simgrid::kernel::resource::Action::State::done) state = SIMIX_SRC_TIMEOUT; - else if (dst_timeout && dst_timeout->getState() == simgrid::kernel::resource::Action::State::done) + else if (dst_timeout && dst_timeout->get_state() == simgrid::kernel::resource::Action::State::done) state = SIMIX_DST_TIMEOUT; - else if (src_timeout && src_timeout->getState() == simgrid::kernel::resource::Action::State::failed) + else if (src_timeout && src_timeout->get_state() == simgrid::kernel::resource::Action::State::failed) state = SIMIX_SRC_HOST_FAILURE; - else if (dst_timeout && dst_timeout->getState() == simgrid::kernel::resource::Action::State::failed) + else if (dst_timeout && dst_timeout->get_state() == simgrid::kernel::resource::Action::State::failed) state = SIMIX_DST_HOST_FAILURE; - else if (surfAction_ && surfAction_->getState() == simgrid::kernel::resource::Action::State::failed) { + else if (surfAction_ && surfAction_->get_state() == simgrid::kernel::resource::Action::State::failed) { state = SIMIX_LINK_FAILURE; } else state = SIMIX_DONE;