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
Move the list of storages to the engine
[simgrid.git]
/
include
/
simgrid
/
s4u
/
Engine.hpp
diff --git
a/include/simgrid/s4u/Engine.hpp
b/include/simgrid/s4u/Engine.hpp
index
cd42aec
..
c4e7d2b
100644
(file)
--- a/
include/simgrid/s4u/Engine.hpp
+++ b/
include/simgrid/s4u/Engine.hpp
@@
-56,12
+56,17
@@
public:
protected:
friend s4u::Host;
protected:
friend s4u::Host;
+ friend s4u::Storage;
void addHost(std::string name, simgrid::s4u::Host * host);
void delHost(std::string name);
public:
void addHost(std::string name, simgrid::s4u::Host * host);
void delHost(std::string name);
public:
+ void addStorage(std::string name, simgrid::s4u::Storage * storage);
+ void delStorage(std::string name);
simgrid::s4u::Host* hostByName(std::string name);
simgrid::s4u::Host* hostByNameOrNull(std::string name);
simgrid::s4u::Host* hostByName(std::string name);
simgrid::s4u::Host* hostByNameOrNull(std::string name);
+ simgrid::s4u::Storage* storageByName(std::string name);
+ simgrid::s4u::Storage* storageByNameOrNull(std::string name);
size_t getHostCount();
void getHostList(std::vector<Host*> * whereTo);
size_t getHostCount();
void getHostList(std::vector<Host*> * whereTo);
@@
-71,6
+76,8
@@
public:
void getLinkList(std::vector<Link*> * list);
std::vector<Link*> getAllLinks();
void getLinkList(std::vector<Link*> * list);
std::vector<Link*> getAllLinks();
+ std::vector<Storage*> getAllStorages();
+
/** @brief Run the simulation */
void run();
/** @brief Run the simulation */
void run();