X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/f7e6ba4976cdafcb4aa3e39b03539d5a3d12f6a4..ed2cb04e907c90998221e00fcac1ded840ce693c:/Model/include/exclusa.h?ds=inline diff --git a/Model/include/exclusa.h b/Model/include/exclusa.h index 75ab185..818ccb4 100644 --- a/Model/include/exclusa.h +++ b/Model/include/exclusa.h @@ -20,9 +20,14 @@ 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; } + void get_state_as_xml(std::stringstream &out); protected: - bool open; + bool is_open; + float temp; private: Exclusa():Control("null") {} Exclusa &operator = (const Exclusa &) { return *this; }