X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e0152c6306f9e147f683c4f49a7f57d4be1f871d..1e6eab7e624e778ad3ce2de88ec2eb86db17a6c1:/src/mc/api/ActorState.hpp diff --git a/src/mc/api/ActorState.hpp b/src/mc/api/ActorState.hpp index 97cf05af91..315ed8af38 100644 --- a/src/mc/api/ActorState.hpp +++ b/src/mc/api/ActorState.hpp @@ -98,6 +98,7 @@ public: return times_considered_++; } unsigned int get_times_considered() const { return times_considered_; } + unsigned int get_times_not_considered() const { return max_consider_ - times_considered_; } aid_t get_aid() const { return aid_; } /* returns whether the actor is marked as enabled in the application side */ @@ -114,7 +115,7 @@ public: } void mark_done() { this->state_ = InterleavingType::done; } - inline Transition* get_transition(unsigned times_considered) + inline Transition* get_transition(unsigned times_considered) const { xbt_assert(times_considered < this->pending_transitions_.size(), "Actor %ld does not have a state available transition with `times_considered = %u`,\n" @@ -123,7 +124,7 @@ public: return this->pending_transitions_[times_considered].get(); } - inline void set_transition(std::unique_ptr t, unsigned times_considered) + inline void set_transition(std::shared_ptr t, unsigned times_considered) { xbt_assert(times_considered < this->pending_transitions_.size(), "Actor %ld does not have a state available transition with `times_considered = %u`, "