X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/5885f9816965f487fd852a9ea46bbc580c48d317..9322e49b932d824e5664aa8c0e0f9a41464537b1:/Model/include/source.h?ds=inline diff --git a/Model/include/source.h b/Model/include/source.h index 48a9a12..39c73cf 100644 --- a/Model/include/source.h +++ b/Model/include/source.h @@ -9,14 +9,20 @@ namespace PlaQui { namespace Model { /** Modela objetos desde donde fluye liquido */ -class Source:public Control { +class Source:virtual public Control { public: + /// Constructor Source(const std::string &_name); + /// Destructor virtual ~Source(); virtual bool get_output(); virtual void simulate(); + /// Retorna el flujo máximo capaz de entregar + float get_max_flow() { return max_flow; } + /// Asigna el flojo máximo capaz de entregar + void set_max_flow(float _f) { max_flow = _f; } protected: float max_flow; private: