-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
42 lines (27 loc) · 813 Bytes
/
config.py
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
33
34
35
36
37
38
39
40
41
42
from abc import ABCMeta
class StimulationEngineConfig:
__metaclass__ = ABCMeta
class FESStimulationEngineConfig(StimulationEngineConfig):
def __init__(self, port, baud):
self.port = port
self.baud = baud
def get_port(self):
return self.port
def get_baud(self):
return self.baud
def set_port(self, port):
self.port = port
def set_baud(self, baud):
self.baud = baud
class VibroStimulationEngineConfig(StimulationEngineConfig):
def __init__(self, port, baud=115200):
self.port = port
self.baud = baud
def get_port(self):
return self.port
def get_baud(self):
return self.baud
def set_port(self, port):
self.port = port
def set_baud(self, baud):
self.baud = baud