+void ActivityImpl::suspend()
+{
+ if (surf_action_ == nullptr)
+ return;
+ XBT_VERB("This activity is suspended (remain: %f)", surf_action_->get_remains());
+ surf_action_->suspend();
+ on_suspended(this);
+}
+
+void ActivityImpl::resume()
+{
+ if (surf_action_ == nullptr)
+ return;
+ XBT_VERB("This activity is resumed (remain: %f)", surf_action_->get_remains());
+ surf_action_->resume();
+ on_resumed(this);
+}
+
+void ActivityImpl::set_category(std::string category)
+{
+ if (surf_action_)
+ surf_action_->set_category(std::move(category));
+}