public:
XBT_DECLARE_ENUM_CLASS(Simcall, UNKNOWN, RANDOM, ISEND, IRECV, COMM_WAIT, COMM_TEST);
- SimcallObserver() = default;
explicit SimcallObserver(ActorImpl* issuer) : issuer_(issuer) {}
ActorImpl* get_issuer() const { return issuer_; }
/** Whether this transition can currently be taken without blocking.
res->next_value_ = next_value_;
return res;
}
- void serialize(Simcall& type, char* buffer) override { type = Simcall::RANDOM; }
+ void serialize(Simcall& type, char* buffer) override;
int get_max_consider() const override;
void prepare(int times_considered) override;
std::string dot_label(int times_considered) const override;
{
}
SimcallObserver* clone() override { return new ActivityWaitSimcall(get_issuer(), activity_, timeout_); }
- void serialize(Simcall& type, char* buffer);
+ void serialize(Simcall& type, char* buffer) override;
bool is_visible() const override { return true; }
bool is_enabled() const override;
std::string dot_label(int times_considered) const override;