return pimpl_netpoint_->get_englobing_zone()->get_iface();
}
-void Host::sendto(Host* dest, double byte_amount)
+void Host::sendto(Host* dest, double byte_amount) // deprecated 331
{
- sendto_async(dest, byte_amount)->wait();
+ Comm::sendto_async(this, dest, byte_amount)->wait();
}
-CommPtr Host::sendto_async(Host* dest, double byte_amount)
+CommPtr Host::sendto_async(Host* dest, double byte_amount) // deprecated 331
{
return Comm::sendto_async(this, dest, byte_amount);
}
+void Host::send_to(Host* dest, double byte_amount) // deprecated 330
+{
+ Comm::sendto(this, dest, byte_amount);
+}
+
/** Get the properties assigned to a host */
const std::unordered_map<std::string, std::string>* Host::get_properties() const
{
Disk* Host::create_disk(const std::string& name, double read_bandwidth, double write_bandwidth)
{
- return surf_disk_model->create_disk(name, read_bandwidth, write_bandwidth)->set_host(this)->get_iface();
+ auto disk =
+ this->get_netpoint()->get_englobing_zone()->get_disk_model()->create_disk(name, read_bandwidth, write_bandwidth);
+ return disk->set_host(this)->get_iface();
}
void Host::add_disk(const Disk* disk)
void sg_host_sendto(sg_host_t from, sg_host_t to, double byte_amount)
{
- from->sendto(to, byte_amount);
+ simgrid::s4u::Comm::sendto(from, to, byte_amount);
}
/** @brief Displays debugging information about a host */