1 /* Copyright (c) 2015-2022. 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"
18 class TestAnyTransition : public Transition {
19 std::vector<Transition*> transitions_;
22 TestAnyTransition(aid_t issuer, int times_considered, std::stringstream& stream);
23 std::string to_string(bool verbose) const override;
24 bool depends(const Transition* other) const override;
26 Transition* get_current_transition() const { return transitions_.at(times_considered_); }
29 class WaitAnyTransition : public Transition {
30 std::vector<Transition*> transitions_;
33 WaitAnyTransition(aid_t issuer, int times_considered, std::stringstream& stream);
34 std::string to_string(bool verbose) const override;
35 bool depends(const Transition* other) const override;
37 Transition* get_current_transition() const { return transitions_.at(times_considered_); }
41 } // namespace simgrid