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;
- bool depends(SimcallObserver* other) override;
std::string dot_label(int times_considered) const override;
activity::ActivityImpl* get_activity() const { return activity_; }
void set_activity(activity::ActivityImpl* activity) { activity_ = activity; }
clean_fun_, copy_data_fun_, payload_, detached_);
}
bool is_visible() const override { return true; }
- bool depends(SimcallObserver* other) override;
std::string dot_label(int times_considered) const override
{
return SimcallObserver::dot_label(times_considered) + "iSend";
}
void serialize(Simcall& type, char* buffer) override;
bool is_visible() const override { return true; }
- bool depends(SimcallObserver* other) override;
std::string dot_label(int times_considered) const override
{
return SimcallObserver::dot_label(times_considered) + "iRecv";