#define _EXCLUSE_H_
#include "control.h"
+#include "bypass.h"
namespace PlaQui {
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 = input->get_output(); }
+
+ 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; }