Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Split TransitionAny and TransitionRandom to their own files
[simgrid.git] / src / mc / transition / TransitionComm.hpp
similarity index 81%
rename from src/mc/api/TransitionComm.hpp
rename to src/mc/transition/TransitionComm.hpp
index 2c244f6..bca9fc2 100644 (file)
@@ -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. */
@@ -8,7 +7,7 @@
 #define SIMGRID_MC_TRANSITION_COMM_HPP
 
 #include "src/kernel/actor/SimcallObserver.hpp"
-#include "src/mc/api/Transition.hpp"
+#include "src/mc/transition/Transition.hpp"
 
 #include <sstream>
 #include <string>
@@ -131,28 +130,6 @@ public:
   int get_tag() const { return tag_; }
 };
 
-class TestAnyTransition : public Transition {
-  std::vector<Transition*> transitions_;
-
-public:
-  TestAnyTransition(aid_t issuer, int times_considered, std::stringstream& stream);
-  std::string to_string(bool verbose) const override;
-  bool depends(const Transition* other) const override;
-
-  Transition* get_current_transition() const { return transitions_.at(times_considered_); }
-};
-
-class WaitAnyTransition : public Transition {
-  std::vector<Transition*> transitions_;
-
-public:
-  WaitAnyTransition(aid_t issuer, int times_considered, std::stringstream& stream);
-  std::string to_string(bool verbose) const override;
-  bool depends(const Transition* other) const override;
-
-  Transition* get_current_transition() const { return transitions_.at(times_considered_); }
-};
-
 /** Make a new transition from serialized description */
 Transition* deserialize_transition(aid_t issuer, int times_considered, std::stringstream& stream);