1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 """
21 Dummy driver does not communicate to any computer device. Instead, it
22 provides some sample data and displays provided information like time and
23 depth during dive simulation.
24 """
25
26 from datetime import datetime
27
28 from kenozooid.driver import DeviceDriver, Simulator
29 from kenozooid.component import inject
30
31 @inject(DeviceDriver, id='dummy', name='Dummy Device Driver',
32 models=('Dummy',))
35 return 'Dummy Device 1.0'
36
37 @staticmethod
38 - def scan(port=None):
40
45 """
46 Dummy simulator implementation.
47 """
49 """
50 Print information about starting dive simulation.
51 """
52 print('Starting dive simulation')
53
54
56 """
57 Print current time and depth.
58 """
59 print('%s -> %02dm' % (datetime.now().time(), d))
60
61
63 """
64 Print information about stopping dive simulation.
65 """
66 print('Stopping dive simulation')
67