X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/70d2e24643727ab1ea48e1793d609d27b7d21fed..9322e49b932d824e5664aa8c0e0f9a41464537b1:/Model/include/splitter.h diff --git a/Model/include/splitter.h b/Model/include/splitter.h index 7adbb49..04d1c9f 100644 --- a/Model/include/splitter.h +++ b/Model/include/splitter.h @@ -8,15 +8,23 @@ namespace PlaQui { namespace Model { +/** Divisor de Flujo + * + * Divide el flujo entrante en 2 partes iguales que envĂ­a a sus salidas + */ class Splitter:public Transport { public: + /// Constructor Splitter(const std::string &_name); + /// Destructor virtual ~Splitter(); virtual void recieve_msg(int msg, IConector *who, void *data); virtual void update(int dir=OUT); virtual void simulate(); protected: + int out_ready; + int out_on_zero; private: Splitter(const Splitter &):Transport("null") {} Splitter &operator = (const Splitter &) { return *this; }