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
Remove surf_host_* functions
[simgrid.git]
/
src
/
surf
/
host_interface.hpp
diff --git
a/src/surf/host_interface.hpp
b/src/surf/host_interface.hpp
index
236ccdb
..
16bdb11
100644
(file)
--- a/
src/surf/host_interface.hpp
+++ b/
src/surf/host_interface.hpp
@@
-94,7
+94,7
@@
public:
* @param storage The Storage associated to this Host
* @param cpu The Cpu associated to this Host
*/
* @param storage The Storage associated to this Host
* @param cpu The Cpu associated to this Host
*/
- Host(
simgrid::surf::
Model *model, const char *name, xbt_dict_t props,
+ Host(
Host
Model *model, const char *name, xbt_dict_t props,
xbt_dynar_t storage, Cpu *cpu);
/**
xbt_dynar_t storage, Cpu *cpu);
/**
@@
-107,7
+107,7
@@
public:
* @param storage The Storage associated to this Host
* @param cpu The Cpu associated to this Host
*/
* @param storage The Storage associated to this Host
* @param cpu The Cpu associated to this Host
*/
- Host(
simgrid::surf::
Model *model, const char *name, xbt_dict_t props,
+ Host(
Host
Model *model, const char *name, xbt_dict_t props,
lmm_constraint_t constraint, xbt_dynar_t storage, Cpu *cpu);
/* Host destruction logic */
lmm_constraint_t constraint, xbt_dynar_t storage, Cpu *cpu);
/* Host destruction logic */
@@
-121,6
+121,10
@@
private:
public:
public:
+ HostModel *getModel()
+ {
+ return static_cast<HostModel*>(Resource::getModel());
+ }
void attach(simgrid::Host* host);
bool isOn() override;
void attach(simgrid::Host* host);
bool isOn() override;