X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/b75b5632c75f245e59a00775ffbe0affdedf8b6c..bcbe297964b0ad7393385f1dd240448c340ed5ed:/Model/include/control.h?ds=sidebyside diff --git a/Model/include/control.h b/Model/include/control.h index 4429627..35d55c2 100644 --- a/Model/include/control.h +++ b/Model/include/control.h @@ -3,6 +3,7 @@ #define _CONTROL_H_ #include "plantitem.h" +#include "logiccontrol.h" namespace PlaQui { @@ -18,11 +19,17 @@ public: /// Retorna un estado booleano dependiendo de su estado actual virtual bool get_output() = 0; + + /** Conecta una lógica de control a mi entrada */ + void connect_input_logic(LogicControl *); + /** Conecta una lógica de control a mi salida */ + void connect_output_logic(LogicControl *); + + LogicControl *get_logic_output() { return output; } + LogicControl *get_logic_input() { return input; } protected: - /* - LogicControl input; - LogicControl output; - */ + LogicControl *input; + LogicControl *output; private: Control(const Control &):PlantItem("null") {} Control &operator = (const Control &) { return (*this); }