|
| Workstation () |
| Workstation consrtuctor.
|
|
| Workstation (ModelPtr model, const char *name, xbt_dict_t props, xbt_dynar_t storage, RoutingEdgePtr netElm, CpuPtr cpu) |
| Workstation constructor. More...
|
|
| Workstation (ModelPtr model, const char *name, xbt_dict_t props, lmm_constraint_t constraint, xbt_dynar_t storage, RoutingEdgePtr netElm, CpuPtr cpu) |
| Workstation constructor. More...
|
|
| ~Workstation () |
| Workstation 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 currenrt Workstation. More...
|
|
virtual ActionPtr | execute (double size)=0 |
| Execute some quantity of computation. More...
|
|
virtual ActionPtr | sleep (double duration)=0 |
| Make a process sleep for duration seconds. More...
|
|
virtual int | getCore () |
| Get the number of cores of the associated Cpu. More...
|
|
virtual double | getSpeed (double load) |
| Get the speed of the associated Cpu. More...
|
|
virtual double | getAvailableSpeed () |
| Get the available speed of the associated Cpu. More...
|
|
virtual double | getCurrentPowerPeak () |
| Get the associated Cpu power peak. More...
|
|
virtual StoragePtr | findStorageOnMountList (const char *storage) |
| Return the storage of corresponding mount point. More...
|
|
virtual xbt_dict_t | getMountedStorageList () |
| Get the xbt_dict_t of mount_point: Storage. More...
|
|
virtual xbt_dynar_t | getAttachedStorageList () |
| Get the xbt_dynar_t of storages attached to the workstation. More...
|
|
virtual ActionPtr | open (const char *fullpath) |
| Open a file. More...
|
|
virtual ActionPtr | 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 ActionPtr | read (surf_file_t fd, sg_size_t size) |
| Read a file. More...
|
|
virtual ActionPtr | 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 Workstation. More...
|
|
void | getParams (ws_params_t params) |
| [brief description] More...
|
|
void | setParams (ws_params_t params) |
| [brief description] 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 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 Workstation interface class.
A workstation VM represent an virtual machine with a aggregation of a Cpu, a NetworkLink and a Storage