-
Notifications
You must be signed in to change notification settings - Fork 0
/
ManhattanMapper.dot
148 lines (108 loc) · 3.66 KB
/
ManhattanMapper.dot
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
digraph Root {
label=""
bgcolor="lightgray"
fontcolor="white"
style="rounded"
node [shape = "box", style="rounded"]
edge [style="invis"]
subgraph clusterShared {
Shared [shape = "plaintext"]
AttemptJoin [label = "AttemptJoin\n[invoke: attemptJoin()]\l"]
subgraph clusterReadAndSend {
label = ""
ReadAndSend [shape = "plaintext"]
ReadGps
subgraph clusterSend {
Send [label = "Send\n[maxChildSimultaneous: 1]\l[maxChildInvocations: 1]\l", shape = "plaintext"]
SendNoAck
SendWithAck
Send -> SendNoAck
Send -> SendWithAck
}
ReadAndSend -> ReadGps
ReadAndSend -> Send
}
Shared -> AttemptJoin
Shared -> ReadAndSend
}
subgraph clusterMain {
Main [shape = "plaintext"]
subgraph clusterDisplay {
Display [shape = "plaintext"]
DisplayBlank
[label = "DisplayBlank\n[idle]\n[invokeDelay: 60min]\l[invoke: displayBlank()]\l"]
DisplayBlankPage
[label = "DisplayBlankPage\n[required: page==0xFF]\l[invoke: displayBlank()]\l"]
DisplayStatus
[label = "DisplayStatus\n[required: page==0]\l[inspiring: change(field)]\l[invoke: displayStatus()]\l"]
DisplayParameters
[label = "DisplayParameters\n[required: page==1]\l[inspiring: change(field)]\l[invoke: displayParameters()]\l"]
DisplayErrors
[label = "DisplayErrors\n[required: page==2]\l[inspiring: change(field)]\l[invoke: displayErrors()]\l"]
Display -> DisplayBlank
Display -> DisplayBlankPage
Display -> DisplayStatus
Display -> DisplayParameters
Display -> DisplayErrors
}
subgraph clusterFunctional {
Functional [shape = "plaintext"]
Sleep [label = "Sleep\n[idle]\n[invoke: goToSleep()]"]
subgraph clusterLowPower {
LowPower [
shape = "plaintext"
label = "LowPower\n[required: !usbPower]\l"
]
subgraph clusterLowPowerAttemptJoin {
LowPowerAttemptJoin [shape = "plaintext"]
AttemptJoin1 [label = "AttemptJoin (shared)"]
LowPowerAttemptJoin -> AttemptJoin1
}
subgraph clusterLowPowerGpsSearch {
LowPowerGpsSearch [
shape = "plaintext"
label = "LowPowerGpsSearch\n[required: !gpsFix]\l"
]
}
subgraph clusterLowPowerSend {
LowPowerSend [shape = "plaintext"]
ReadAndSend2 [label = "ReadAndSend (shared)"]
LowPowerSend -> ReadAndSend2
}
LowPower -> LowPowerAttemptJoin
LowPower -> LowPowerGpsSearch
LowPower -> LowPowerSend
}
subgraph clusterUSBPower {
USBPower [
shape = "plaintext"
label = "USBPower\n[required: usbPower]\l"
]
subgraph clusterUSBPowerPeriodicJoin {
USBPowerPeriodicJoin [
shape = "plaintext"
label = "USBPowerPeriodicJoin\n[required: !joined]\l[periodic: 12 per hour]\l"
]
AttemptJoin2 [label = "AttemptJoin (shared)"]
USBPowerPeriodicJoin -> AttemptJoin2
}
subgraph clusterUSBPowerPeriodicSend {
USBPowerPeriodicSend [
shape = "plaintext"
label = "USBPowerPeriodicSend\n[required: joined AND gpsFix]\l[periodic: 6 per hour]\l"
]
ReadAndSend1 [label = "ReadAndSend (shared)"]
USBPowerPeriodicSend -> ReadAndSend1
}
USBPower -> USBPowerPeriodicJoin
USBPower -> USBPowerPeriodicSend
}
edge [arrowType = "none"]
Functional -> Sleep
Functional -> LowPower
Functional -> USBPower
}
Main -> Functional
Main -> Display
}
}