X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/b75b5632c75f245e59a00775ffbe0affdedf8b6c..5950ea0ec0352497042b368ba4e2d7d977391225:/Model/include/source.h?ds=inline diff --git a/Model/include/source.h b/Model/include/source.h index fde6511..39c73cf 100644 --- a/Model/include/source.h +++ b/Model/include/source.h @@ -9,7 +9,7 @@ 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); @@ -19,15 +19,12 @@ public: virtual bool get_output(); virtual void simulate(); - /// Retorna el flujo que entrega actualmente - float get_actual_flow() { return actual_flow; } /// 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; - float actual_flow; private: Source(const Source &):Control("null") {} Source &operator = (const Source &) { return *this; }