X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/f7e6ba4976cdafcb4aa3e39b03539d5a3d12f6a4..ac8c756883349b0d5cae173fe8f5058dbfb10375:/Model/include/exclusa.h 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; }