aboutsummaryrefslogtreecommitdiffstats
path: root/csci5801/a1_usecase.tex
blob: 1856efbb73539901eb0c9effaf79c3206d726238 (plain) (blame)
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
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
%% Use Cases Template File
%% Created by Tom Desair (http://www.tomdesair.com)
%% Downloadable at: http://www.tomdesair.com/downloads/use-case-latex-template.zip
%% Date Modified: 03/04/2012
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
%   http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2005/12/01 or later.

\documentclass[a4paper, 10pt, oneside, draft]{article}

%include the usecases package
\usepackage{usecases}

\begin{document}

%Sometimes it is a good idea to put domain objects in \texttt{}
%The template and the descriptions are based on the book Applying UML and Patterns: 
%An Introduction to Object-Oriented Analysis and Design and Iterative Development
%(3rd Edition) by Craig Larman.
\begin{usecase}

\addtitle{Use Case 1}{Creating a League} 

%Scope: the system under design
\addfield{Scope:}{System-wide}

%Level: "user-goal" or "subfunction"
\addfield{Level:}{User-goal}

%Primary Actor: Calls on the system to deliver its services.
\addfield{Primary Actor:}{Administrator}

\addfield{Trigger:}{An administrator wants to create a new league.}

%Preconditions: What must be true on start and worth telling the reader?
\addfield{Preconditions:}{The user must be signed in as an administrator.}
%when multiple
%\additemizedfield{Preconditions:}{} 

%Postconditions: What must be true on successful completion and worth telling the reader
\addfield{Postconditions:}{The league will be created.}
%when multiple
%\additemizedfield{Preconditions:}{}

%Main Success Scenario: A typical, unconditional happy path scenario of success.
\addscenario{Main Success Scenario:}{
	\item The administrator creates a new league.
	\item The league is created
}

%Extensions: Alternate scenarios of success or failure.
\addscenario{Extensions:}{
	\item[1.a] The user is not an administrator:
		\begin{enumerate}
		\item[1.] System shows permission denied
		\item[2.] User returns to login page
		\end{enumerate}
	\item[2.a] The league cannot be created:
		\begin{enumerate}
		\item[1.] System shows failure message
		\item[2.] User returns to step 1
		\end{enumerate}
}
\end{usecase}
\pagebreak
\begin{usecase}
	
\addtitle{Use Case 2}{Creating a Team}

%Scope: the system under design
\addfield{Scope:}{System-wide}

%Level: "user-goal" or "subfunction"
\addfield{Level:}{User-goal}

%Primary Actor: Calls on the system to deliver its services.
\addfield{Primary Actor:}{Coach}

\addfield{Trigger:}{A coach wants to create a new team.}

%Preconditions: What must be true on start and worth telling the reader?
\addfield{Preconditions:}{The user must be signed in as a coach.}
%when multiple
%\additemizedfield{Preconditions:}{}

%Postconditions: What must be true on successful completion and worth telling the reader
% \addfield{Postconditions:}{The team will be created.}
%when multiple
\additemizedfield{Preconditions:}{\item The user must be signed in as a coach \item A league must already exist}


%Main Success Scenario: A typical, unconditional happy path scenario of success.
\addscenario{Main Success Scenario:}{
	\item[1] The coach creates a new team.
	\item[2] The team is created
}

%Extensions: Alternate scenarios of success or failure.
\addscenario{Extensions:}{
	\item[1.a] The user is not a coach:
		\begin{enumerate}
		\item[1.] System shows permission denied
		\item[2.] User returns to login page
		\end{enumerate}
	\item[2.a] The team cannot be created:
		\begin{enumerate}
		\item[1.] System shows failure message
		\item[2.] User returns to step 1
		\end{enumerate}
	\item[3.b] The league does not exist:
		\begin{enumerate}
		\item[1.] System shows failure message
		\item[2.] The user returns to step 1
		\end{enumerate} 
}


\end{usecase}

\pagebreak

\begin{usecase}
	
\addtitle{Use Case 3}{Generating a Schedule}

%Scope: the system under design
\addfield{Scope:}{System-wide}

%Level: "user-goal" or "subfunction"
\addfield{Level:}{User-goal}

%Primary Actor: Calls on the system to deliver its services.
\addfield{Primary Actor:}{Administrator}

\addfield{Trigger:}{An administrator wants to generate a schedule.}

%Preconditions: What must be true on start and worth telling the reader?
\additemizedfield{Preconditions:}{\item The user must be singed in as an administrator \item A league must already exist}

%Postconditions: What must be true on successful completion and worth telling the reader
\addfield{Postconditions:}{The schedule will be generated.}

%Main Success Scenario: A typical, unconditional happy path scenario of success.
\addscenario{Main Success Scenario:}{
	\item The administrator selects a league to generate a schedule for.
	\item The administrator generates a schedule.
	\item The schedule is generated.
}

%Extensions: Alternate scenarios of success or failure.
\addscenario{Extensions:}{
	\item[1.a] The user is not an administrator:
		\begin{enumerate}
		\item[1.] System shows permission denied
		\item[2.] User returns to login page
		\end{enumerate}
	\item[2.a] The league does not exist:
		\begin{enumerate}
		\item[1.] System shows failure message
		\item[2.] User returns to step 1
		\end{enumerate} 
	\item[3.a] The league does not have any teams:
		\begin{enumerate}
		\item[1.] System shows failure message
		\item[2.] User returns to step 1
		\end{enumerate}
	\item[3.b] The schedule fails to be created:
		\begin{enumerate}
		\item[1.] System shows failure message
		\item[2.] User returns to step 1
		\end{enumerate}
}

\end{usecase}

\pagebreak

\begin{usecase}
	
\addtitle{Use Case 4}{Generating Statistics}


%Scope: the system under design
\addfield{Scope:}{System-wide}

%Level: "user-goal" or "subfunction"
\addfield{Level:}{User-goal}

%Primary Actor: Calls on the system to deliver its services.
\addfield{Primary Actor:}{Administrator}

\addfield{Trigger:}{An administrator wants to generate statistics.}

%Preconditions: What must be true on start and worth telling the reader?
\additemizedfield{Preconditions:}{\item The user must be singed in as an administrator \item A league must already exist}

%Postconditions: What must be true on successful completion and worth telling the reader
\addfield{Postconditions:}{The statistics will be generated.}

%Main Success Scenario: A typical, unconditional happy path scenario of success.
\addscenario{Main Success Scenario:}{
	\item The administrator selects a league to generate statistics for.
	\item The administrator generates statistics.
	\item The statistics are generated.
}

%Extensions: Alternate scenarios of success or failure.
\addscenario{Extensions:}{
	\item[1.a] The user is not an administrator:
		\begin{enumerate}
		\item[1.] System shows permission denied
		\item[2.] User returns to login page
		\end{enumerate}
	\item[1.b] The league does not exist:
		\begin{enumerate}
		\item[1.] System shows failure message
		\item[2.] User returns to step 1
		\end{enumerate} 
	\item[3.a] The league does not have any teams:
		\begin{enumerate}
		\item[1.] System shows failure message
		\item[2.] User returns to step 1
		\end{enumerate}
	\item[3.b] The statistics fail to be generated:
		\begin{enumerate}
		\item[1.] System shows failure message
		\item[2.] User returns to step 1
		\end{enumerate}
}

\end{usecase}

\pagebreak

\begin{usecase}
	
\addtitle{Use Case 5}{Assign Officials}

%Scope: the system under design
\addfield{Scope:}{System-wide}

%Level: "user-goal" or "subfunction"
\addfield{Level:}{User-goal}

%Primary Actor: Calls on the system to deliver its services.
\addfield{Primary Actor:}{Administrator}

\addfield{Trigger:}{An administrator wants to assign officials.}

%Preconditions: What must be true on start and worth telling the reader?
\additemizedfield{Preconditions:}{\item The user must be singed in as an administrator \item A league must already exist \item Officials must already exist for the league}


%Postconditions: What must be true on successful completion and worth telling the reader
\addfield{Postconditions:}{The officials will be assigned.}

%Main Success Scenario: A typical, unconditional happy path scenario of success.
\addscenario{Main Success Scenario:}{
	\item The administrator selects a league to assign officials to.
	\item The administrator assigns officials.
	\item The officials are assigned.
}

%Extensions: Alternate scenarios of success or failure.
\addscenario{Extensions:}{
	\item[1.a] The user is not an administrator:
		\begin{enumerate}
		\item[1.] System shows permission denied
		\item[2.] User returns to login page
		\end{enumerate}
	\item[2.a] The league does not exist:
		\begin{enumerate}
		\item[1.] System shows failure message
		\item[2.] User returns to step 1
		\end{enumerate} 
	\item[3.a] There are no eligible officials:
		\begin{enumerate}
		\item[1.] System shows failure message
		\item[2.] User returns to step 1
		\end{enumerate}
	\item[3.b] An unknown error occurs:
		\begin{enumerate}
		\item[1.] System shows failure message
		\item[2.] User returns to step 1
		\end{enumerate}
}

\end{usecase}

\pagebreak


\begin{usecase}
	
\addtitle{Use Case 6}{Generate Bracket}

%Scope: the system under design
\addfield{Scope:}{System-wide}

%Level: "user-goal" or "subfunction"
\addfield{Level:}{User-goal}

%Primary Actor: Calls on the system to deliver its services.
\addfield{Primary Actor:}{Administrator}

\addfield{Trigger:}{An administrator wants to generate a bracket.}

%Preconditions: What must be true on start and worth telling the reader?
\additemizedfield{Preconditions:}{\item The user must be singed in as an administrator \item A league must already exist}

%Postconditions: What must be true on successful completion and worth telling the reader
\addfield{Postconditions:}{The bracket will be generated and a schedule will be created.}


%Main Success Scenario: A typical, unconditional happy path scenario of success.
\addscenario{Main Success Scenario:}{
	\item The administrator selects a league to generate a bracket for.
	\item The administrator generates a bracket.
	\item The bracket is generated.
	\item A schedule is created from the bracket, following Use Case 3.
}

%Extensions: Alternate scenarios of success or failure.
\addscenario{Extensions:}{
	\item[1.a] The user is not an administrator:
		\begin{enumerate}
		\item[1.] System shows permission denied
		\item[2.] User returns to login page
		\end{enumerate}
	\item[2.a] The league does not exist:
		\begin{enumerate}
		\item[1.] System shows failure message
		\item[2.] User returns to step 1
		\end{enumerate} 
	\item[3.a] The league does a cleanly divisible number of teams:
		\begin{enumerate}
		\item[1.] System shows failure message
		\item[2.] User returns to step 1
		\end{enumerate}
	\item[3.b] The schedule fails to be created:
		\begin{enumerate}
		\item[1.] System shows failure message
		\item[2.] User returns to step 1
		\end{enumerate}
	\item[4.b] A bracket is manually generated
		\begin{enumerate}
		\item[1.] The system follows all steps except step 5
		\item[2.] The schedule is created
		\end{enumerate}
}
\end{usecase}

\pagebreak

\begin{usecase}
	
\addtitle{Use Case 7}{Submit Scores}

%Scope: the system under design
\addfield{Scope:}{System-wide}

%Level: "user-goal" or "subfunction"
\addfield{Level:}{User-goal}

%Primary Actor: Calls on the system to deliver its services.
\addfield{Primary Actor:}{Official}

\addfield{Trigger:}{An official wants to submit scores for a game they officiated.}

%Preconditions: What must be true on start and worth telling the reader?
\additemizedfield{Preconditions:}{\item The user must be singed in as an official \item A league must already exist \item A schedule must already exist \item A game must already exist \item The user must have permission to submit scores for that game}


%Postconditions: What must be true on successful completion and worth telling the reader
\addfield{Postconditions:}{The scores will be submitted.}

%Main Success Scenario: A typical, unconditional happy path scenario of success.
\addscenario{Main Success Scenario:}{
	\item The official selects a game to submit scores for.
	\item The official submits scores.
	\item The scores are submitted.
}

%Extensions: Alternate scenarios of success or failure.
\addscenario{Extensions:}{
	\item[1.a] The user is not an official:
		\begin{enumerate}
		\item[1.] System shows permission denied
		\item[2.] User returns to login page
		\end{enumerate}
		\item[1.b] An administrator:
		\begin{enumerate}
		\item[1.] System shows failure message
		\item[2.] User returns to step 1
		\end{enumerate}
	\item[2.a] The league does not exist:
		\begin{enumerate}
		\item[1.] System shows failure message
		\item[2.] User returns to step 1
		\end{enumerate} 
	\item[2.b] The schedule does not exist:
		\begin{enumerate}
		\item[1.] System shows failure message
		\item[2.] User returns to step 1
		\end{enumerate}
	\item[2.c] The game does not exist:
		\begin{enumerate}
		\item[1.] System shows failure message
		\item[2.] User returns to step 1
		\end{enumerate}
	\item[2.d] The user does not have permission to submit scores for that game:
		\begin{enumerate}
		\item[1.] System shows permission denied
		\item[2.] User returns to step 1
		\end{enumerate}
	
}
\end{usecase}

\pagebreak


\begin{usecase}
	
\addtitle{Use Case 8}{View Schedule}

%Scope: the system under design
\addfield{Scope:}{System-wide}

%Level: "user-goal" or "subfunction"
\addfield{Level:}{User-goal}

%Primary Actor: Calls on the system to deliver its services.
\addfield{Primary Actor:}{End User}

\addfield{Trigger:}{An end user wants to view a schedule.}


%Preconditions: What must be true on start and worth telling the reader?
\additemizedfield{Preconditions:}{ \item A schedule must already exist \item If the schedule is not public the user must be signed in}

%Postconditions: What must be true on successful completion and worth telling the reader
\addfield{Postconditions:}{The schedule will be displayed.}

%Main Success Scenario: A typical, unconditional happy path scenario of success.
\addscenario{Main Success Scenario:}{
	\item The user selects a league to view a schedule for.
	\item The schedule is displayed.
}

%Extensions: Alternate scenarios of success or failure.
\addscenario{Extensions:}{
	\item[1.a] The schedule is not public:
		\begin{enumerate}
		\item[1.] System shows failure message
		\item[2.] User returns to step 1
		\end{enumerate}
		\item[2.a] The schedule does not exist:
		\begin{enumerate}
		\item[1.] System shows failure message
		\item[2.] User returns to step 1
		\end{enumerate}
}
\end{usecase}



\end{document}