X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/c0c615a959dc4f317aa7def359335bd3b8cf7930..20f9c9932f7c6e0ba6d50636a6d73420da79606b:/Model/include/tank.h diff --git a/Model/include/tank.h b/Model/include/tank.h index dbb56c4..0495404 100644 --- a/Model/include/tank.h +++ b/Model/include/tank.h @@ -28,14 +28,16 @@ public: virtual bool get_output(); virtual void recieve_msg(int msg, IConector *who, void *data); - virtual void update(); + 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; } };