Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Split TransitionAny and TransitionRandom to their own files
[simgrid.git] / src / mc / transition / TransitionRandom.hpp
1 /* Copyright (c) 2015-2022. The SimGrid Team. All rights reserved.          */
2
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. */
5
6 #ifndef SIMGRID_MC_TRANSITION_RANDOM_HPP
7 #define SIMGRID_MC_TRANSITION_RANDOM_HPP
8
9 #include "src/mc/transition/Transition.hpp"
10
11 namespace simgrid {
12 namespace mc {
13
14 class RandomTransition : public Transition {
15   int min_;
16   int max_;
17
18 public:
19   std::string to_string(bool verbose) const override;
20   std::string dot_label() const override;
21   RandomTransition(aid_t issuer, int times_considered, std::stringstream& stream);
22   bool depends(const Transition* other) const override { return false; } // Independent with any other transition
23 };
24
25 } // namespace mc
26 } // namespace simgrid
27
28 #endif