1 /* Copyright (c) 2015-2023. The SimGrid Team. All rights reserved. */
3 /* This program is free software; you can redistribute it and/or modify it
4 * under the terms of the license (GNU LGPL) which comes with this package. */
6 #ifndef SIMGRID_MC_TRANSITION_ACTOR_HPP
7 #define SIMGRID_MC_TRANSITION_ACTOR_HPP
9 #include "src/kernel/actor/SimcallObserver.hpp"
10 #include "src/mc/transition/Transition.hpp"
16 namespace simgrid::mc {
18 class ActorJoinTransition : public Transition {
23 ActorJoinTransition(aid_t issuer, int times_considered, std::stringstream& stream);
24 std::string to_string(bool verbose) const override;
25 bool depends(const Transition* other) const override;
27 bool get_timeout() const { return timeout_; }
29 aid_t get_target() const { return target_; }
32 class ActorSleepTransition : public Transition {
35 ActorSleepTransition(aid_t issuer, int times_considered, std::stringstream& stream);
36 std::string to_string(bool verbose) const override;
37 bool depends(const Transition* other) const override;
40 } // namespace simgrid::mc