X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6ef6867d3962e629e6fe2df4320d4d6a5e7964b7..d6eb772e45cc853fc204bb5aebeb411cdfa7c929:/src/mc/explo/udpor/udpor_tests_private.hpp diff --git a/src/mc/explo/udpor/udpor_tests_private.hpp b/src/mc/explo/udpor/udpor_tests_private.hpp index 6e1a23345b..276edfca79 100644 --- a/src/mc/explo/udpor/udpor_tests_private.hpp +++ b/src/mc/explo/udpor/udpor_tests_private.hpp @@ -12,14 +12,22 @@ #ifndef SIMGRID_MC_UDPOR_TEST_PRIVATE_HPP #define SIMGRID_MC_UDPOR_TEST_PRIVATE_HPP +#include "src/mc/transition/Transition.hpp" + namespace simgrid::mc::udpor { struct IndependentAction : public Transition { + IndependentAction() = default; + IndependentAction(Type type, aid_t issuer, int times_considered) : Transition(type, issuer, times_considered) {} + // Independent with everyone else bool depends(const Transition* other) const override { return false; } }; struct DependentAction : public Transition { + DependentAction() = default; + DependentAction(Type type, aid_t issuer, int times_considered) : Transition(type, issuer, times_considered) {} + // Dependent with everyone else (except IndependentAction) bool depends(const Transition* other) const override { @@ -28,6 +36,12 @@ struct DependentAction : public Transition { }; struct ConditionallyDependentAction : public Transition { + ConditionallyDependentAction() = default; + ConditionallyDependentAction(Type type, aid_t issuer, int times_considered) + : Transition(type, issuer, times_considered) + { + } + // Dependent only with DependentAction (i.e. not itself) bool depends(const Transition* other) const override {