-
Notifications
You must be signed in to change notification settings - Fork 0
/
ClassUseCass-jay.lyx
317 lines (234 loc) · 5.98 KB
/
ClassUseCass-jay.lyx
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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
#LyX 1.5.6 created this file. For more info see http://www.lyx.org/
\lyxformat 276
\begin_document
\begin_header
\textclass article
\language english
\inputencoding auto
\font_roman default
\font_sans default
\font_typewriter default
\font_default_family default
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100
\graphics default
\paperfontsize default
\papersize default
\use_geometry false
\use_amsmath 1
\use_esint 1
\cite_engine basic
\use_bibtopic false
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\author ""
\author ""
\end_header
\begin_body
\begin_layout Subsection
ClassDiagram
\end_layout
\begin_layout Subsubsection
Congifuration
\end_layout
\begin_layout Standard
UseCase
\end_layout
\begin_layout Standard
\begin_inset Graphics
filename Diagrams/Configure.png
\end_inset
\end_layout
\begin_layout Standard
Class
\end_layout
\begin_layout Standard
\begin_inset Graphics
filename Diagrams/Class-Configuration.jpg
\end_inset
\end_layout
\begin_layout Standard
- notificationInstance : an instance of Notification class.
\end_layout
\begin_layout Standard
- calendarInstance : an instance of Calendar class.
\end_layout
\begin_layout Standard
- userAccessLevel : depends on user levels, configuration access modes are
different.
e.g.
user and system engineer have different userAccessLevel.
\end_layout
\begin_layout Standard
- password : if userAccessLevel is higher than a system engineer, it needs
password.
\end_layout
\begin_layout Standard
+ configNotiSys() : configure a notification system.
\end_layout
\begin_layout Standard
+ configCalSys() : configure a calculation system.
\end_layout
\begin_layout Standard
+ resetConfigNotiSys() : reset to default settings of a notification system.
\end_layout
\begin_layout Standard
+ resetConfigCalSys() : reset to default settings of a calendaring system.
\end_layout
\begin_layout Standard
+ showMenus() : show menus for configuration
\end_layout
\begin_layout Standard
+ notifySysConfigured() : after configured, notify it to the user.
\end_layout
\begin_layout Subsubsection
Medical consult
\end_layout
\begin_layout Standard
Usecase
\end_layout
\begin_layout Standard
\begin_inset Graphics
filename Diagrams/Consult.png
\end_inset
\end_layout
\begin_layout Standard
Class
\end_layout
\begin_layout Standard
\begin_inset Graphics
filename Diagrams/Class-Consult.jpg
\end_inset
\end_layout
\begin_layout Standard
- connection : an instance of Connection Class.
Connection Class manages network, phone call connections.
\end_layout
\begin_layout Standard
- healthStatus : an instance of HealthStatus.
It has an information of the user's current health status.
\end_layout
\begin_layout Standard
- consultSchedule : Consulting schedule instance.
\end_layout
\begin_layout Standard
+ callCenter() : call the health center through phone call.
\end_layout
\begin_layout Standard
+ checkConnectionAvailable() : check available connections such as network
and phone line.
\end_layout
\begin_layout Standard
+ disconnect() : after consulting, disconnect the connection.
\end_layout
\begin_layout Standard
+ connect() : connect to the network to send health status.
\end_layout
\begin_layout Standard
+ sendHealthStatus() : send health status of current user via network.
\end_layout
\begin_layout Standard
+ getConsultSchedule() : getConsultingSchedule information.
\end_layout
\begin_layout Subsubsection
Degraded function mode
\end_layout
\begin_layout Standard
Usecase
\end_layout
\begin_layout Standard
\begin_inset Graphics
filename Diagrams/Degraded.png
\end_inset
\end_layout
\begin_layout Standard
Class
\end_layout
\begin_layout Standard
\begin_inset Graphics
filename Diagrams/Class-Degraded.jpg
\end_inset
\end_layout
\begin_layout Standard
- systemStatus : represents current system status.
\end_layout
\begin_layout Standard
- hazardLevel : if it is normal status, hazardLevel is 0.
If there is a hazard shows the hazard level from 1 to 10.
\end_layout
\begin_layout Standard
- degradedLevel : If there is a hazard, change the system mode to this degradedL
evel.
\end_layout
\begin_layout Standard
+ hazardMonitoringThread() : Thread method to constantly check current system
status.
\end_layout
\begin_layout Standard
+ detectHazard() : a method to detect a hazard.
\end_layout
\begin_layout Standard
+ changeMode() : Change a mode to the designated degradedLevel.
\end_layout
\begin_layout Subsubsection
Prioritizer
\end_layout
\begin_layout Standard
UseCase
\end_layout
\begin_layout Standard
\begin_inset Graphics
filename Diagrams/Prioritizer.png
\end_inset
\end_layout
\begin_layout Standard
Class
\end_layout
\begin_layout Standard
\begin_inset Graphics
filename Diagrams/Class-Prioritizer.jpg
\end_inset
\end_layout
\begin_layout Standard
Notifier
\end_layout
\begin_layout Standard
- messageQueue : a queue for saving messages to be notified.
\end_layout
\begin_layout Standard
- prioritizer : an instance of Prioritizer class.
\end_layout
\begin_layout Standard
+ Notify() : notify the message.
\end_layout
\begin_layout Standard
+ putMsg() : put message into the queue.
\end_layout
\begin_layout Standard
+ getMSg() : get message from the queue.
\end_layout
\begin_layout Standard
Prioritizer
\end_layout
\begin_layout Standard
- rules : a list of rules to give a proper priority to the message.
\end_layout
\begin_layout Standard
- getRules() : load rules from the rule XML file.
\end_layout
\begin_layout Standard
- Prioritize() : based on rules, give a proper priority to the message.
\end_layout
\end_body
\end_document