A
lgorithmique
N
umérique
D
istribuée
Private GIT Repository
projects
/
loba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Enforce integer initial load when integer transfers are activated.
[loba.git]
/
deployment.h
diff --git
a/deployment.h
b/deployment.h
index 3e71df584efa6abaa0db0c9186f0262e385e42bb..b3fa43a6b29b14faccb3ddf65ad82fd1fbcd31d4 100644
(file)
--- a/
deployment.h
+++ b/
deployment.h
@@
-17,10
+17,13
@@
public:
void set_link(int host1, int host2);
virtual void generate() = 0;
void set_link(int host1, int host2);
virtual void generate() = 0;
+ void distribute_load();
void deploy();
private:
struct host_parameters {
void deploy();
private:
struct host_parameters {
+ host_parameters(): load(0.0) { }
+
double load;
std::vector<int> neighbors;
};
double load;
std::vector<int> neighbors;
};