diff options
Diffstat (limited to 'Node.h')
-rw-r--r-- | Node.h | 32 |
1 files changed, 32 insertions, 0 deletions
@@ -0,0 +1,32 @@ +#pragma once +#include <string> +#include <vector> + +#include "Observer.h" +#include "Net.h" + + + +class Node: Observer { + protected: + std::string label; + std::string type; + + std::vector<Net*> inputs; + Net* output; + + public: + Node(/* args */); + virtual ~Node(); + void update(); + virtual void addInput(Net*); + virtual void setOutput(Net*); + virtual void compare() = 0; +}; + +class GateAnd: public Node { + public: + GateAnd(){}; + ~GateAnd(){}; + void compare(); +}; |