X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/f031c89fa8a00ea12ff7290569ec507f44402458..bcbe297964b0ad7393385f1dd240448c340ed5ed:/Model/include/exclusa.h?ds=sidebyside diff --git a/Model/include/exclusa.h b/Model/include/exclusa.h index db24be4..d0c1f22 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,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; }