X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/5885f9816965f487fd852a9ea46bbc580c48d317..f7e6ba4976cdafcb4aa3e39b03539d5a3d12f6a4:/Model/include/control.h?ds=sidebyside diff --git a/Model/include/control.h b/Model/include/control.h index 00c56fa..3763da9 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 { @@ -11,15 +12,16 @@ namespace Model { /** Elementos que pueden ser automatizados */ class Control:public PlantItem { public: + /// Constructor Control(const std::string &_name); + /// Destructor virtual ~Control(); + /// Retorna un estado booleano dependiendo de su estado actual virtual bool get_output() = 0; protected: - /* - LogicControl input; - LogicControl output; - */ + LogicControl *input; + LogicControl *output; private: Control(const Control &):PlantItem("null") {} Control &operator = (const Control &) { return (*this); } @@ -29,3 +31,4 @@ private: } #endif // _CONTROL_H_ +