- if (name)
- this->name = name;
- this->state = SIMIX_RUNNING;
-
- surf_action_ = surf_action;
- surf_action_->set_data(this);
- if (timeout_detector != nullptr) {
- timeout_detector->set_data(this);
- timeout_detector_ = timeout_detector;
- }
+ this->state_ = SIMIX_RUNNING;
+ this->set_category(tracing_category);
+
+ if (timeout_detector != nullptr)
+ timeout_detector_->set_data(this);