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_ANY_HPP
7 #define SIMGRID_MC_TRANSITION_ANY_HPP
9 #include "src/kernel/actor/SimcallObserver.hpp"
10 #include "src/mc/transition/Transition.hpp"
15 namespace simgrid::mc {
17 class TestAnyTransition : public Transition {
18 std::vector<Transition*> transitions_;
21 TestAnyTransition(aid_t issuer, int times_considered, std::stringstream& stream);
22 std::string to_string(bool verbose) const override;
23 bool depends(const Transition* other) const override;
25 Transition* get_current_transition() const { return transitions_.at(times_considered_); }
28 class WaitAnyTransition : public Transition {
29 std::vector<Transition*> transitions_;
32 WaitAnyTransition(aid_t issuer, int times_considered, std::stringstream& stream);
33 std::string to_string(bool verbose) const override;
34 bool depends(const Transition* other) const override;
36 Transition* get_current_transition() const { return transitions_.at(times_considered_); }
39 } // namespace simgrid::mc