namespace kernel {
namespace activity {
-IoImpl& IoImpl::set_name(const std::string& name)
-{
- ActivityImpl::set_name(name);
- return *this;
-}
-
IoImpl& IoImpl::set_type(s4u::Io::OpType type)
{
type_ = type;
return this;
}
-void IoImpl::cancel()
-{
- XBT_VERB("This exec %p is canceled", this);
- if (surf_action_ != nullptr)
- surf_action_->cancel();
- state_ = SIMIX_CANCELED;
-}
-
-double IoImpl::get_remaining()
-{
- return surf_action_ ? surf_action_->get_remains() : 0;
-}
-
void IoImpl::post()
{
performed_ioops_ = surf_action_->get_cost();