X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/5851cba291d6ac7b89baf771e4a3821cc1aaa81c..c0eaeb249c8fd246f3a56f18f61e417c277f43c1:/deployment.h?ds=inline diff --git a/deployment.h b/deployment.h index cba191b..b3fa43a 100644 --- a/deployment.h +++ b/deployment.h @@ -3,8 +3,10 @@ #include +// Deploy an application automatically, according to the global parameters void MY_launch_application(); +// Base class for deployment generators... class deployment_generator { public: deployment_generator(); @@ -15,10 +17,13 @@ public: void set_link(int host1, int host2); virtual void generate() = 0; + void distribute_load(); void deploy(); private: struct host_parameters { + host_parameters(): load(0.0) { } + double load; std::vector neighbors; };