Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add skeleton implementation for ex(C) for CommSend
[simgrid.git] / src / mc / explo / udpor / ExtensionSetCalculator.hpp
1 /* Copyright (c) 2007-2023. 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_UDPOR_EVENTSETCALCULATOR_HPP
7 #define SIMGRID_MC_UDPOR_EVENTSETCALCULATOR_HPP
8
9 #include "src/mc/explo/udpor/EventSet.hpp"
10 #include "src/mc/explo/udpor/udpor_forward.hpp"
11 #include "src/mc/transition/Transition.hpp"
12 #include "src/mc/transition/TransitionActorJoin.hpp"
13 #include "src/mc/transition/TransitionAny.hpp"
14 #include "src/mc/transition/TransitionComm.hpp"
15 #include "src/mc/transition/TransitionObjectAccess.hpp"
16 #include "src/mc/transition/TransitionRandom.hpp"
17 #include "src/mc/transition/TransitionSynchro.hpp"
18
19 #include <memory>
20
21 namespace simgrid::mc::udpor {
22
23 /**
24  * @brief Computes incrementally the portion of the extension set for a new configuration `C`
25  */
26 struct ExtensionSetCalculator final {
27 private:
28   static EventSet partially_extend_CommSend(const Configuration&, Unfolding*, std::shared_ptr<CommSendTransition>);
29   static EventSet partially_extend_CommRecv(const Configuration&, Unfolding*, std::shared_ptr<CommRecvTransition>);
30   static EventSet partially_extend_CommWait(const Configuration&, Unfolding*, std::shared_ptr<CommWaitTransition>);
31   static EventSet partially_extend_CommTest(const Configuration&, Unfolding*, std::shared_ptr<CommTestTransition>);
32
33 public:
34   static EventSet partially_extend(const Configuration&, Unfolding*, const std::shared_ptr<Transition>);
35 };
36
37 } // namespace simgrid::mc::udpor
38 #endif