aboutsummaryrefslogtreecommitdiff
path: root/Node.h
blob: f1845a951d14b7d5355f2bc8d1cd4a40d376cc62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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();
};