aboutsummaryrefslogtreecommitdiff
path: root/Node.h
blob: 43cfc6c105d7b1c4520916eedee87805f8b03e4d (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"

using std::string;
using std::vector;

class Node : Observer {
public:
	Node() = default;
	virtual ~Node() = default;
	virtual Node * clone() const = 0;

public:
	void update();
	virtual void addInput(Net *);
	virtual void setOutput(Net *);
	virtual void compare() = 0;

protected:
	Node(const char * type);

	string label;

	vector<Net *> inputs;
	Net * output;
};