X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8d9b5170925fd2a7873c619c5d6cdff8616f9bfc..e1a5484101efbff9c8d982a0c4650f7953ee7e2f:/include/simgrid/s4u/Host.hpp diff --git a/include/simgrid/s4u/Host.hpp b/include/simgrid/s4u/Host.hpp index eee859606a..07d7cc58da 100644 --- a/include/simgrid/s4u/Host.hpp +++ b/include/simgrid/s4u/Host.hpp @@ -163,9 +163,23 @@ public: int get_pstate() const; double get_pstate_speed(int pstate_index) const; Host* set_pstate(int pstate_index); + Host* set_coordinates(const std::string& coords); std::vector get_disks() const; + /** + * @brief Create and add disk in the host + * + * @param name Disk name + * @param read_bandwidth Reading speed of the disk + * @param write_bandwidth Writing speed of the disk + */ Disk* create_disk(const std::string& name, double read_bandwidth, double write_bandwidth); + /** + * @brief Human-friendly version of create_disk function. + * + * @throw std::invalid_argument if read/write speeds are incorrect + */ + Disk* create_disk(const std::string& name, const std::string& read_bandwidth, const std::string& write_bandwidth); void add_disk(const Disk* disk); void remove_disk(const std::string& disk_name);