X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/fb5e2f5efff54c1cba2814c60bd099b81ac5f091:/src/mc/transition/TransitionActorJoin.cpp..d0a8cb4f92bd372f091430671bd30f4422674d76:/src/mc/transition/TransitionActor.cpp diff --git a/src/mc/transition/TransitionActorJoin.cpp b/src/mc/transition/TransitionActor.cpp similarity index 74% rename from src/mc/transition/TransitionActorJoin.cpp rename to src/mc/transition/TransitionActor.cpp index 463bfcbc6a..c0d04d1162 100644 --- a/src/mc/transition/TransitionActorJoin.cpp +++ b/src/mc/transition/TransitionActor.cpp @@ -3,7 +3,7 @@ /* 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/mc/transition/TransitionActorJoin.hpp" +#include "src/mc/transition/TransitionActor.hpp" #include "simgrid/config.h" #include "xbt/asserts.h" #include "xbt/string.hpp" @@ -43,4 +43,19 @@ bool ActorJoinTransition::depends(const Transition* other) const return false; } +ActorSleepTransition::ActorSleepTransition(aid_t issuer, int times_considered, std::stringstream& stream) + : Transition(Type::ACTOR_SLEEP, issuer, times_considered) +{ + XBT_DEBUG("ActorSleepTransition()"); +} +std::string ActorSleepTransition::to_string(bool verbose) const +{ + return xbt::string_printf("ActorSleep()"); +} +bool ActorSleepTransition::depends(const Transition* other) const +{ + // Sleeping is indep with any other transitions: always enabled, not impacted by any transition + return false; +} + } // namespace simgrid::mc