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
Add per-directory local variables for Emacs.
[loba.git]
/
deployment.h
diff --git
a/deployment.h
b/deployment.h
index cba191b62536b568c5a4853cecb783cde74b6840..b3fa43a6b29b14faccb3ddf65ad82fd1fbcd31d4 100644
(file)
--- a/
deployment.h
+++ b/
deployment.h
@@
-3,8
+3,10
@@
#include <vector>
#include <vector>
+// Deploy an application automatically, according to the global parameters
void MY_launch_application();
void MY_launch_application();
+// Base class for deployment generators...
class deployment_generator {
public:
deployment_generator();
class deployment_generator {
public:
deployment_generator();
@@
-15,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;
};