11 #ifndef WRENCH_BLOCK_H
12 #define WRENCH_BLOCK_H
15 #include "wrench/services/storage/storage_helpers/FileLocation.h"
29 Block(std::string fid, std::shared_ptr<FileLocation> location,
double sz,
30 double last_access,
bool is_dirty,
double dirty_time);
34 std::string getFileId();
36 void setFileId(std::string &fid);
42 double getSize()
const;
44 void setSize(
double size);
46 double getLastAccess()
const;
48 void setLastAccess(
double last_access);
52 void setDirty(
bool is_dirty);
54 double getDirtyTime()
const;
56 void setDirtyTime(
double dirty_time);
58 const std::shared_ptr<FileLocation> &getLocation()
const;
60 Block* split(
double remaining);
65 std::shared_ptr<FileLocation> location;
78 #endif //WRENCH_BLOCK_H