X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3529af6d632ac8a5f36352711acae57b10208c2c..45c3a73f3553c8d365f61eaa8445f038db9bdb8f:/src/mc/explo/udpor/UnfoldingEvent.hpp diff --git a/src/mc/explo/udpor/UnfoldingEvent.hpp b/src/mc/explo/udpor/UnfoldingEvent.hpp index bad411cfe2..5486709576 100644 --- a/src/mc/explo/udpor/UnfoldingEvent.hpp +++ b/src/mc/explo/udpor/UnfoldingEvent.hpp @@ -49,9 +49,10 @@ public: bool is_dependent_with(const Transition*) const; bool is_dependent_with(const UnfoldingEvent* other) const; + unsigned get_id() const { return this->id; } + aid_t get_actor() const { return get_transition()->aid_; } const EventSet& get_immediate_causes() const { return this->immediate_causes; } Transition* get_transition() const { return this->associated_transition.get(); } - aid_t get_actor() const { return get_transition()->aid_; } void set_transition(std::shared_ptr t) { this->associated_transition = std::move(t); } @@ -91,6 +92,12 @@ private: * so on. */ EventSet immediate_causes; + + /** + * @brief An identifier which is used to sort events + * deterministically + */ + uint64_t id = 0; }; } // namespace simgrid::mc::udpor