X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/f031c89fa8a00ea12ff7290569ec507f44402458..4ddd90e71988f16c5ea79f5de86a9fcb63973ded:/Model/include/exclusa.h diff --git a/Model/include/exclusa.h b/Model/include/exclusa.h index db24be4..818ccb4 100644 --- a/Model/include/exclusa.h +++ b/Model/include/exclusa.h @@ -3,6 +3,7 @@ #define _EXCLUSE_H_ #include "control.h" +#include "bypass.h" namespace PlaQui { @@ -19,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; }