aboutsummaryrefslogtreecommitdiff
path: root/Net.h
blob: 1eee15f332a19fe49e4c30043bf5ecd6ead83135 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#include "Observer.h"
#include "SignalLevel.h"

class Net : public Subject {
private:
	SignalLevel level = UNDEFINED;
public:
	Net() = default;
	virtual ~Net() = default;
	//! Updates level and notifies all attached observers (node)
	virtual void setLevel(SignalLevel);
	//! Returns level value
	virtual SignalLevel getLevel();
};