- StorageN11(StorageModel *model, const char* name, xbt_dict_t properties,
- lmm_system_t maxminSystem, double bread, double bwrite, double bconnection,
- const char* type_id, char *content_name, char *content_type, sg_size_t size, char *attach);
-
- StorageAction *open(const char* mount, const char* path);
- StorageAction *close(surf_file_t fd);
- StorageAction *ls(const char *path);
- StorageAction *read(surf_file_t fd, sg_size_t size);//FIXME:why we have a useless param *??
- StorageAction *write(surf_file_t fd, sg_size_t size);//FIXME:why we have a useless param *??
- void rename(const char *src, const char *dest);
-
- lmm_constraint_t p_constraintWrite; /* Constraint for maximum write bandwidth*/
- lmm_constraint_t p_constraintRead; /* Constraint for maximum write bandwidth*/
+ StorageN11(StorageModel* model, const std::string& name, kernel::lmm::System* maxminSystem, double bread,
+ double bwrite, const std::string& type_id, const std::string& content_name, sg_size_t size,
+ const std::string& attach);
+ ~StorageN11() override = default;
+ StorageAction* io_start(sg_size_t size, s4u::Io::OpType type) override;
+ StorageAction* read(sg_size_t size) override;
+ StorageAction* write(sg_size_t size) override;