X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/f7e6ba4976cdafcb4aa3e39b03539d5a3d12f6a4..f85e6b00bd29ddff6067db8c6d4c56f53bcf4c0b:/Model/include/exclusa.h?ds=sidebyside diff --git a/Model/include/exclusa.h b/Model/include/exclusa.h index 75ab185..d0c1f22 100644 --- a/Model/include/exclusa.h +++ b/Model/include/exclusa.h @@ -20,9 +20,13 @@ public: virtual void simulate(); virtual void recieve_msg(int msg, IConector *who, void *data); - virtual bool get_output() { return open; } + virtual bool get_output() { return is_open; } + + void open() { is_open = true; } + void close() { is_open = false; } protected: - bool open; + bool is_open; + float temp; private: Exclusa():Control("null") {} Exclusa &operator = (const Exclusa &) { return *this; }