X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/cabbbca66d9966213bb6e207046a605b5d0b7332..9a771583b31dd48a20d9d9a467a93cf1c7a52d37:/Model/include/tank.h?ds=inline diff --git a/Model/include/tank.h b/Model/include/tank.h index a87f50f..0495404 100644 --- a/Model/include/tank.h +++ b/Model/include/tank.h @@ -30,12 +30,14 @@ public: virtual void recieve_msg(int msg, IConector *who, void *data); virtual void update(int dir=OUT); virtual void simulate(); + + void set_litros(float l) { litros = l; } protected: float litros; ///< cantidad de líquido actual float actual_in_flow; ///< flujo máximo a la entrada float actual_out_flow; ///< flujo máximo de la salida private: - Tank():Drain("null"),Source("null"),Control("null") {} + Tank():Control("null"),Source("null"),Drain("null") {} Tank &operator = (const Tank &) { return *this; } };