X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7ac272e25e5f27abe5c854124acb21a2d9bcc435..d0ffc37686edcc803601f76ab51fdfed5fc2f241:/src/surf/workstation.hpp diff --git a/src/surf/workstation.hpp b/src/surf/workstation.hpp index 675cfad5ea..08940e0dc2 100644 --- a/src/surf/workstation.hpp +++ b/src/surf/workstation.hpp @@ -69,17 +69,27 @@ public: virtual int getCore(); virtual double getSpeed(double load); virtual double getAvailableSpeed(); + virtual double getCurrentPowerPeak(); + virtual double getPowerPeakAt(int pstate_index); + virtual int getNbPstates(); + virtual void setPowerPeakAt(int pstate_index); + virtual double getConsumedEnergy(); xbt_dict_t getProperties(); StoragePtr findStorageOnMountList(const char* storage); + xbt_dict_t getStorageList(); ActionPtr open(const char* mount, const char* path); ActionPtr close(surf_file_t fd); int unlink(surf_file_t fd); ActionPtr ls(const char* mount, const char *path); - size_t getSize(surf_file_t fd); - ActionPtr read(void* ptr, size_t size, surf_file_t fd); - ActionPtr write(const void* ptr, size_t size, surf_file_t fd); + sg_storage_size_t getSize(surf_file_t fd); + ActionPtr read(surf_file_t fd, sg_storage_size_t size); + ActionPtr write(surf_file_t fd, sg_storage_size_t size); + xbt_dynar_t getInfo( surf_file_t fd); + sg_storage_size_t getFreeSize(const char* name); + sg_storage_size_t getUsedSize(const char* name); + bool isUsed(); //bool isShared(); xbt_dynar_t p_storage;