X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5893c19532da2f5789d464899785c1c68e8646b4:/src/mc/api/Transition.hpp..90b0fa923c841996f89a17c252a443a65493fbfc:/src/mc/transition/Transition.hpp diff --git a/src/mc/api/Transition.hpp b/src/mc/transition/Transition.hpp similarity index 83% rename from src/mc/api/Transition.hpp rename to src/mc/transition/Transition.hpp index 8b37b055af..e8b87274a8 100644 --- a/src/mc/api/Transition.hpp +++ b/src/mc/transition/Transition.hpp @@ -1,5 +1,4 @@ -/* Copyright (c) 2015-2022. The SimGrid Team. - * All rights reserved. */ +/* Copyright (c) 2015-2022. The SimGrid Team. All rights reserved. */ /* 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. */ @@ -70,16 +69,8 @@ public: static unsigned long get_replayed_transitions() { return replayed_transitions_; } }; -class RandomTransition : public Transition { - int min_; - int max_; - -public: - std::string to_string(bool verbose) const override; - std::string dot_label() const override; - RandomTransition(aid_t issuer, int times_considered, std::stringstream& stream); - bool depends(const Transition* other) const override { return false; } // Independent with any other transition -}; +/** Make a new transition from serialized description */ +Transition* deserialize_transition(aid_t issuer, int times_considered, std::stringstream& stream); } // namespace mc } // namespace simgrid