Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
more chaining for CPUs too
[simgrid.git] / include / simgrid / s4u / Disk.hpp
index f0542c7..9d332e4 100644 (file)
@@ -43,7 +43,7 @@ protected:
 
 public:
 #ifndef DOXYGEN
-  explicit Disk(kernel::resource::DiskImpl* pimpl) : pimpl_(pimpl) {}
+  explicit Disk(const std::string& name, kernel::resource::DiskImpl* pimpl) : pimpl_(pimpl), name_(name) {}
 #endif
 
   /** @brief Callback signal fired when a new Disk is created */
@@ -68,6 +68,7 @@ public:
   const std::unordered_map<std::string, std::string>* get_properties() const;
   const char* get_property(const std::string& key) const;
   void set_property(const std::string&, const std::string& value);
+  Disk* set_host(Host* host);
   Host* get_host() const;
 
   IoPtr io_init(sg_size_t size, s4u::Io::OpType type);
@@ -77,6 +78,8 @@ public:
 
   IoPtr write_async(sg_size_t size);
   sg_size_t write(sg_size_t size);
+  void seal();
+
 #ifndef DOXYGEN
   kernel::resource::DiskImpl* get_impl() const { return pimpl_; }
 #endif