A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cosmetics around surf::Resouce::apply_event()
[simgrid.git]
/
src
/
surf
/
storage_interface.hpp
diff --git
a/src/surf/storage_interface.hpp
b/src/surf/storage_interface.hpp
index
545cb1b
..
8848f3a
100644
(file)
--- a/
src/surf/storage_interface.hpp
+++ b/
src/surf/storage_interface.hpp
@@
-83,7
+83,7
@@
public:
xbt_dict_t properties,
const char *attach) = 0;
xbt_dict_t properties,
const char *attach) = 0;
- bool
shareResourcesI
sIdempotent() {return true;}
+ bool
next_occuring_event_i
sIdempotent() {return true;}
xbt_dynar_t p_storageList;
};
xbt_dynar_t p_storageList;
};
@@
-96,7
+96,7
@@
public:
* @details A Storage represent a storage unit (e.g.: hard drive, usb key)
*/
class Storage : public simgrid::surf::Resource,
* @details A Storage represent a storage unit (e.g.: hard drive, usb key)
*/
class Storage : public simgrid::surf::Resource,
-
public simgrid::surf::PropertyHolder {
+ public simgrid::surf::PropertyHolder {
public:
/**
* @brief Storage constructor
public:
/**
* @brief Storage constructor
@@
-138,16
+138,9
@@
public:
~Storage();
/** @brief Check if the Storage is used (if an action currently uses its resources) */
~Storage();
/** @brief Check if the Storage is used (if an action currently uses its resources) */
- bool isUsed();
+ bool isUsed()
override
;
- /**
- * @brief Update the state of the current Storage
- *
- * @param event_type [description]
- * @param value [description]
- * @param date [description]
- */
- void updateState(tmgr_trace_event_t event_type, double value, double date);
+ void apply_event(tmgr_trace_iterator_t event, double value) override;
void turnOn() override;
void turnOff() override;
void turnOn() override;
void turnOff() override;