|
| | Storage (ModelPtr model, const char *name, xbt_dict_t props, const char *type_id, char *content_name, char *content_type, sg_size_t size) |
| | Storage constructor. More...
|
| |
| | Storage (ModelPtr model, const char *name, xbt_dict_t props, 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) |
| | Storage constructor. More...
|
| |
|
| ~Storage () |
| | Storage destructor.
|
| |
| bool | isUsed () |
| | Check if the Storage is used. More...
|
| |
| void | updateState (tmgr_trace_event_t event_type, double value, double date) |
| | Update the state of the current Storage. More...
|
| |
| void | setState (e_surf_resource_state_t state) |
| | Set the state of the current Resource. More...
|
| |
| virtual StorageActionPtr | open (const char *mount, const char *path)=0 |
| | Open a file. More...
|
| |
| virtual StorageActionPtr | close (surf_file_t fd)=0 |
| | Close a file. More...
|
| |
| virtual StorageActionPtr | read (surf_file_t fd, sg_size_t size)=0 |
| | Read a file. More...
|
| |
| virtual StorageActionPtr | write (surf_file_t fd, sg_size_t size)=0 |
| | Write a file. More...
|
| |
| virtual xbt_dict_t | getContent () |
| | Get the content of the current Storage. More...
|
| |
| virtual sg_size_t | getSize () |
| | Get the size in bytes of the current Storage. More...
|
| |
| virtual sg_size_t | getFreeSize () |
| | Get the available size in bytes of the current Storage. More...
|
| |
| virtual sg_size_t | getUsedSize () |
| | Get the used size in bytes of the current Storage. More...
|
| |
|
| Resource () |
| | Resource constructor.
|
| |
| | Resource (ModelPtr model, const char *name, xbt_dict_t props) |
| | Resource constructor. More...
|
| |
| | Resource (ModelPtr model, const char *name, xbt_dict_t props, lmm_constraint_t constraint) |
| | Resource constructor. More...
|
| |
| | Resource (ModelPtr model, const char *name, xbt_dict_t props, e_surf_resource_state_t stateInit) |
| | Resource constructor. More...
|
| |
|
virtual | ~Resource () |
| | Resource destructor.
|
| |
| ModelPtr | getModel () |
| | Get the Model of the current Resource. More...
|
| |
| const char * | getName () |
| | Get the name of the current Resource. More...
|
| |
| virtual xbt_dict_t | getProperties () |
| | Get the properties of the current Resource. More...
|
| |
| bool | isOn () |
| | Check if the current Resource is active. More...
|
| |
|
void | turnOn () |
| | Turn on the current Resource.
|
| |
|
void | turnOff () |
| | Turn off the current Resource.
|
| |
| virtual e_surf_resource_state_t | getState () |
| | Get the state of the current Resource. More...
|
| |
| lmm_constraint_t | getConstraint () |
| | Get the lmm constraint associated to this Resource if it is part of a LMM component. More...
|
| |
SURF storage interface class.
A Storage represent a storage unit (e.g.: hard drive, usb key)