- s4u::Host* host_ = nullptr; /* the host on which the process is running */
- smx_context_t context_ = nullptr; /* the context (uctx/raw/thread) that executes the user function */
+
+ // Accessors to private fields
+ s4u::Host* get_host() { return host_; }
+ void set_host(s4u::Host* dest);
+ void* get_user_data() { return userdata_; }
+ void set_user_data(void* data) { userdata_ = data; }
+ aid_t get_pid() const { return pid_; }
+ aid_t get_ppid() const { return ppid_; }
+ void set_ppid(aid_t ppid) { ppid_ = ppid; }
+ bool is_daemon() { return daemon_; } /** Whether this actor has been daemonized */
+ bool has_to_auto_restart() { return auto_restart_; }
+ void set_auto_restart(bool autorestart) { auto_restart_ = autorestart; }
+
+ context::Context* context_ = nullptr; /* the context (uctx/raw/thread) that executes the user function */