|
| | Host (Model *model, const char *name, xbt_dict_t props, xbt_dynar_t storage, RoutingEdge *netElm, Cpu *cpu) |
| | Host constructor. More...
|
| |
| | Host (Model *model, const char *name, xbt_dict_t props, lmm_constraint_t constraint, xbt_dynar_t storage, RoutingEdge *netElm, Cpu *cpu) |
| | Host constructor. More...
|
| |
|
| ~Host () |
| | Host destructor.
|
| |
| void | setState (e_surf_resource_state_t state) |
| | Set the state of the current Resource. More...
|
| |
| xbt_dict_t | getProperties () |
| | Get the properties of the current Host. More...
|
| |
| virtual Action * | execute (double flops_amount)=0 |
| | Execute some quantity of computation. More...
|
| |
| virtual Action * | sleep (double duration)=0 |
| | Make a process sleep for duration seconds. More...
|
| |
|
virtual Storage * | findStorageOnMountList (const char *storage) |
| | Return the storage of corresponding mount point.
|
| |
|
virtual xbt_dict_t | getMountedStorageList () |
| | Get the xbt_dict_t of mount_point: Storage.
|
| |
|
virtual xbt_dynar_t | getAttachedStorageList () |
| | Get the xbt_dynar_t of storages attached to the Host.
|
| |
| virtual Action * | open (const char *fullpath) |
| | Open a file. More...
|
| |
| virtual Action * | close (surf_file_t fd) |
| | Close a file. More...
|
| |
| virtual int | unlink (surf_file_t fd) |
| | Unlink a file. More...
|
| |
| virtual sg_size_t | getSize (surf_file_t fd) |
| | Get the size in bytes of the file. More...
|
| |
| virtual Action * | read (surf_file_t fd, sg_size_t size) |
| | Read a file. More...
|
| |
| virtual Action * | write (surf_file_t fd, sg_size_t size) |
| | Write a file. More...
|
| |
| virtual xbt_dynar_t | getInfo (surf_file_t fd) |
| | Get the informations of a file descriptor. More...
|
| |
| virtual sg_size_t | fileTell (surf_file_t fd) |
| | Get the current position of the file descriptor. More...
|
| |
| virtual int | fileSeek (surf_file_t fd, sg_offset_t offset, int origin) |
| | Set the position indicator associated with the file descriptor to a new position. More...
|
| |
| virtual int | fileMove (surf_file_t fd, const char *fullpath) |
| | Move a file to another location on the same mount point. More...
|
| |
|
xbt_dynar_t | getVms () |
| | Get the list of virtual machines on the current Host.
|
| |
| void | getParams (vm_params_t params) |
| | Retrieve a copy of the parameters of that VM/PM. More...
|
| |
|
void | setParams (vm_params_t params) |
| | Sets the params of that VM/PM.
|
| |
|
| Resource () |
| | Resource constructor.
|
| |
| | Resource (Model *model, const char *name, xbt_dict_t props) |
| | Resource constructor. More...
|
| |
| | Resource (Model *model, const char *name, xbt_dict_t props, lmm_constraint_t constraint) |
| | Resource constructor. More...
|
| |
| | Resource (Model *model, const char *name, xbt_dict_t props, e_surf_resource_state_t stateInit) |
| | Resource constructor. More...
|
| |
|
virtual | ~Resource () |
| | Resource destructor.
|
| |
| Model * | getModel () |
| | Get the Model of the current Resource. More...
|
| |
| const char * | getName () |
| | Get the name of the current Resource. More...
|
| |
| virtual void | updateState (tmgr_trace_event_t event_type, double value, double date)=0 |
| | Update the state of the current Resource. More...
|
| |
| virtual bool | isUsed ()=0 |
| | Check if the current Resource is used. 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 Host interface class.
An host represents a machine with a aggregation of a Cpu, a Link and a Storage