From 92309390f58cfd559aa74358a6126b0cebef1c24 Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Wed, 6 Oct 2021 23:45:55 -0500 Subject: I hate myself Signed-off-by: Matt Strapp --- csci5801/a1.tex | 325 +++++++++++------------------ csci5801/a1_usecase.tex | 474 ++++++++++++++++++++++++++++++++++++++++++ csci5801/img/diagram.png | Bin 22787 -> 25150 bytes csci5801/usecase-template.tex | 94 --------- 4 files changed, 600 insertions(+), 293 deletions(-) create mode 100644 csci5801/a1_usecase.tex delete mode 100644 csci5801/usecase-template.tex (limited to 'csci5801') diff --git a/csci5801/a1.tex b/csci5801/a1.tex index d1cb861..c79ad75 100644 --- a/csci5801/a1.tex +++ b/csci5801/a1.tex @@ -79,7 +79,7 @@ Sports League Administration Manager (SLAM) Use Cases \section{Product Perspective} \includegraphics[width=\textwidth]{diagram} \\ -The Sports League Administation Manager is developed to organize a +The Sports League Administration Manager is developed to organize a $<$Describe the context and origin of the product being specified in this SRS. For example, state whether this product is a follow-on member of a product family, a replacement for certain existing systems, or a new, self-contained @@ -98,242 +98,169 @@ related requirements and how they relate, such as a top level data flow diagram or object class diagram, is often effective.$>$ \section{User Classes and Characteristics} -The system is divided into four users: administrators, officials, coaches, and the public. The roles are defined as follows: \\ -Adminisrators: +The system is divided into four users: administrators, officials, coaches, and the public. The roles are defined below. \begin{itemize} - \item Create and manage leagues - \item Create and manage league and tournament schedules - \item Generate user statistics on demand - \item Assign officials to leagues and games - \item Accept sponsorships + \item Administrators: + \begin{itemize} + \item Create and manage leagues + \item Create and manage league and tournament schedules + \item Generate user statistics on demand + \item Assign officials to leagues and games + \end{itemize} \end{itemize} -Officials: +Administrators include Staff members and the Parks and Recreation Organizer. They have the highest privilege level. Administrators are the ones in charge of creating leagues, scheduling games, and assigning officials. They also are the users that create statistics and deal with finances. \begin{itemize} - \item Submit their availability to official games - \item View the schedule of games they need to attend + \item Officials: + \begin{itemize} + \item Submit their availability to official games + \item Accept or reject games to officiate + \item View the schedule of games they need to attend + \item Submit scores when game is complete + \end{itemize} \end{itemize} -Coaches: +Officials are responsible for submitting scores when games are over. They also are responsible for submitting their schedules so all games played have a sufficient number of officials. \begin{itemize} - \item Create teams - \item + \item Coaches: + \begin{itemize} + \item Create teams + \item Add athletes to teams + \end{itemize} \end{itemize} -$<$Identify the various user classes that you anticipate will use this product. -User classes may be differentiated based on frequency of use, subset of product -functions used, technical expertise, security or privilege levels, educational -level, or experience. Describe the pertinent characteristics of each user class. -Certain requirements may pertain only to certain user classes. Distinguish the -most important user classes for this product from those who are less important -to satisfy.$>$ - -\section{Operating Environment} -$<$Describe the environment in which the software will operate, including the -hardware platform, operating system and versions, and any other software -components or applications with which it must peacefully coexist.$>$ - -\section{Design and Implementation Constraints} -$<$Describe any items or issues that will limit the options available to the -developers. These might include: corporate or regulatory policies; hardware -limitations (timing requirements, memory requirements); interfaces to other -applications; specific technologies, tools, and databases to be used; parallel -operations; language requirements; communications protocols; security -considerations; design conventions or programming standards (for example, if the -customer’s organization will be responsible for maintaining the delivered -software).$>$ - -\section{User Documentation} -$<$List the user documentation components (such as user manuals, on-line help, -and tutorials) that will be delivered along with the software. Identify any -known user documentation delivery formats or standards.$>$ -\section{Assumptions and Dependencies} +Coaches are responsible for creating teams and adding athletes to teams. +\begin{itemize} + \item Athletes, the Public: + \begin{itemize} + \item View schedule + \end{itemize} +\end{itemize} +Athletes and other end users need to be able to view the schedule of games they plan on attending or playing in. -$<$List any assumed factors (as opposed to known facts) that could affect the -requirements stated in the SRS. These could include third-party or commercial -components that you plan to use, issues around the development or operating -environment, or constraints. The project could be affected if these assumptions -are incorrect, are not shared, or change. Also identify any dependencies the -project has on external factors, such as software components that you intend to -reuse from another project, unless they are already documented elsewhere (for -example, in the vision and scope document or the project plan).$>$ - - -\chapter{External Interface Requirements} - -\section{User Interfaces} -$<$Describe the logical characteristics of each interface between the software -product and the users. This may include sample screen images, any GUI standards -or product family style guides that are to be followed, screen layout -constraints, standard buttons and functions (e.g., help) that will appear on -every screen, keyboard shortcuts, error message display standards, and so on. -Define the software components for which a user interface is needed. Details of -the user interface design should be documented in a separate user interface -specification.$>$ - -\section{Hardware Interfaces} -$<$Describe the logical and physical characteristics of each interface between -the software product and the hardware components of the system. This may include -the supported device types, the nature of the data and control interactions -between the software and the hardware, and communication protocols to be -used.$>$ - -\section{Software Interfaces} -$<$Describe the connections between this product and other specific software -components (name and version), including databases, operating systems, tools, -libraries, and integrated commercial components. Identify the data items or -messages coming into the system and going out and describe the purpose of each. -Describe the services needed and the nature of communications. Refer to -documents that describe detailed application programming interface protocols. -Identify data that will be shared across software components. If the data -sharing mechanism must be implemented in a specific way (for example, use of a -global data area in a multitasking operating system), specify this as an -implementation constraint.$>$ - -\section{Communications Interfaces} -$<$Describe the requirements associated with any communications functions -required by this product, including e-mail, web browser, network server -communications protocols, electronic forms, and so on. Define any pertinent -message formatting. Identify any communication standards that will be used, such -as FTP or HTTP. Specify any communication security or encryption issues, data -transfer rates, and synchronization mechanisms.$>$ +\section{Assumptions and Dependencies} +It is assumed that an external database and interface already exist. \chapter{System Features} -$<$This template illustrates organizing the functional requirements for the -product by system features, the major services provided by the product. You may -prefer to organize this section by use case, mode of operation, user class, -object class, functional hierarchy, or combinations of these, whatever makes the -most logical sense for your product.$>$ \section{League Creation} \subsection{Description and Priority} - +The system shall allow administrators to create leagues for sports. The system will list sports to create a league for and the user will select the sport. The system will then list the leagues that are available for the sport and the user will select the league. \subsection{Stimulus/Response Sequences} -$<$List the sequences of user actions and system responses that stimulate the -behavior defined for this feature. These will correspond to the dialog elements -associated with use cases.$>$ +A user must be logged in as an administrator to be able to create a league. The user submits the sport they want to create a league for and the system will respond by verifying the response and creating a new league if the response is valid. \subsection{Functional Requirements} -$<$Itemize the detailed functional requirements associated with this feature. -These are the software capabilities that must be present in order for the user -to carry out the services provided by the feature, or to execute the use case. -Include how the product should respond to anticipated error conditions or -invalid inputs. Requirements should be concise, complete, unambiguous, -verifiable, and necessary. Use “TBD” as a placeholder to indicate when necessary -information is not yet available.$>$ -$<$This template illustrates organizing the functional requirements for the -product by system features, the major services provided by the product. You may -prefer to organize this section by use case, mode of operation, user class, -object class, functional hierarchy, or combinations of these, whatever makes the -most logical sense for your product.$>$ +REQ-101: The system shall list all sports that leagues can be created for. \\ +REQ-102: The system shall validate the user input. \\ +REQ-103: The system shall return an error if the user tries to create a league for a sport that does not exist or is no longer allowing league creation. \\ +REQ-104: The system shall create the league after verifying the input. \\ +\indent Valid sports are as follows: Sand Volleyball, Kickball, Indoor Soccer, Softball, Outdoor Soccer, Tennis, Flag Football, Fall Soccer, Dodgeball, Indoor Volleyball, Fall Kickball, Fall Softball, Basketball, Broomball, and Pond Hockey. -\section{League Creation} -\subsection{Description and Priority} +\section{Schedule Generation} +\subsection{Description and Priority} +The system shall allow administrators to create schedules for leagues. \subsection{Stimulus/Response Sequences} -$<$List the sequences of user actions and system responses that stimulate the -behavior defined for this feature. These will correspond to the dialog elements -associated with use cases.$>$ +A user must be signed in as an administrator. The user supplies a beginning and ending date for the schedule and the system will generate a schedule for the league. \subsection{Functional Requirements} -$<$Itemize the detailed functional requirements associated with this feature. -These are the software capabilities that must be present in order for the user -to carry out the services provided by the feature, or to execute the use case. -Include how the product should respond to anticipated error conditions or -invalid inputs. Requirements should be concise, complete, unambiguous, -verifiable, and necessary. Use “TBD” as a placeholder to indicate when necessary -information is not yet available.$>$ - -$<$Each requirement should be uniquely identified with a sequence number or a -meaningful tag of some kind.$>$ -REQ-1: REQ-2: +REQ-201: The user must specify a start and end date for the league. \\ +REQ-202: The system shall verify the dates. The verification process is TBD. +REQ-203: The system shall generate a valid schedule for the league provided between the dates provided. The verification process for this is TBD.\\ +REQ-204: The system shall return an error if the dates are invalid. \\ +REQ-205: The system shall return an error if it cannot generate a schedule for the league. +REQ-206: The system shall return a valid generated schedule after it has validated the inputs. What constitutes a valid schedule is TBD. \\ \section{Team Creation} \subsection{Description and Priority} - - \subsection{Stimulus/Response Sequences} - - \subsection{Functional Requirements} -$<$Each requirement should be uniquely identified with a sequence number or a -meaningful tag of some kind.$>$ - -REQ-1: REQ-2: - -\section{Team Creation} - + The system shall allow coaches and administrators to register teams. + \subsection{Stimulus/Response Sequences} + A user must be signed in as a coach or administrator. The user supplies the name of the team and the system will create the team. The user must supply a valid roster and the league they want to register the team for. + \subsection{Functional Requirements} + REQ-301: The system shall validate the number of team members and return an error if the team is too small for the sport. \\ + REQ-302: The system shall validate the team name and return an error if the team name is invalid. What constitutes an invalid team name is TBD. \\ + REQ-303: The system shall create a team with the supplied roster and name and add it to the database. + +\section{Roster Editing} + \subsection{Description and Priority} - + The system shall allow coaches and administrators to edit rosters. \subsection{Stimulus/Response Sequences} - + A user must be signed in as a coach or administrator. The user submits the change that they want to make to the roster. The system responds by changing the roster as requested. \subsection{Functional Requirements} + REQ-401: The system shall return an error if the user does not have permission to edit that team's roster. \\ + REQ-402: The system shall return an error if the user tries to edit a team that does not exist. \\ + REQ-403: The system shall change the roster as requested if the user has permission to edit that team's roster. +\section{Generate Statistics} + + \subsection{Description and Priority} + The system shall allow administrators to generate statistics. + \subsection{Stimulus/Response Sequences} + A user must be signed in as an administrator. The user submits the type of statistics they want to generate. The system will generate the statistics asked. + \subsection{Functional Requirements} + REQ-501: The system shall return an error if the user tries to generate statistics for a sport, league or player that does not exist. \\ + REQ-502: The system shall generate the statistics and display them to the user when generated. + +\section{Assign Officials} + \subsection{Description and Priority} + The system shall allow administrators to assign officials to leagues and games. + \subsection{Stimulus/Response Sequences} + A user must be signed in as an administrator. The user submits the league and game they want to assign officials to. The system will assign the officials to the game based on the schedule given by the officials. + \subsection{Functional Requirements} + REQ-601: The system shall return an error if the user tries to assign officials to a league or game that does not exist. \\ + REQ-602: The system shall return an error if no officials can be found for a game. \\ + REQ-603: The system shall assign the officials to the game and publish the schedule so the officals can see what games they need to officiate. + +\section{Submit Scores} + \subsection{Description and Priority} + The system shall allow officials to submit scores for games they officiate. + \subsection{Stimulus/Response Sequences} + A user must be signed in as an official. The user submits the score for the game they are officiating. + \subsection{Functional Requirements} + REQ-701: The system shall return an error if the user tries to submit a score for a game that does not exist. \\ + REQ-702: The system shall return an error if the user tries to submit a score for a game that is not officiating. \\ + REQ-703: The system shall submit the score to the database and publish it to an external site after the submission is complete. \\ + REQ-704: The system shall allow administrators to change scores if they contradict the official's reported scores. + + \section{Generate Bracket} + \subsection{Description and Priority} + The system shall allow administrators to generate brackets for leagues. + \subsection{Stimulus/Response Sequences} + A user must be signed in as an administrator. The user submits the league they want to generate a bracket for. The system will generate the bracket along with the dates for the games. \\ + This requirement is built off of requirement 2. + \subsection{Functional Requirements} + REQ-801: The system shall return an error if the user tries to generate a bracket for a league that does not exist. \\ + REQ-802: The system shall generate the bracket and proceed to generate the schedule according to Requirement 2. \\ + REQ-803: The system shall return an error if the system cannot generate the bracket requested. \\ + + \section{View Schedules} + \subsection{Description and Priority} + The system shall allow users to view schedules for leagues. + \subsection{Stimulus/Response Sequences} + Any user can access the schedule for a league. They do not have to be signed in to view the public schedules. Officals can view the schedule for a league they are officiating and administrators can view any schedule for any league. + \subsection{Functional Requirements} + REQ-901: The system shall return an error if the user tries to view a schedule for a league that does not exist. \\ + REQ-902: The system shall return an error if an unauthenticated user tries to view a schedule for a league that is not public. \\ + REQ-903: The system shall return an error if an authenticated user tries to view a schedule for a league that they do not have permission to access. \\ + REQ-904: The system shall return the schedule for the league requested. -\chapter{Other Nonfunctional Requirements} - -\section{Performance Requirements} -$<$If there are performance requirements for the product under various -circumstances, state them here and explain their rationale, to help the -developers understand the intent and make suitable design choices. Specify the -timing relationships for real time systems. Make such requirements as specific -as possible. You may need to state performance requirements for individual -functional requirements or features.$>$ - -\section{Safety Requirements} -$<$Specify those requirements that are concerned with possible loss, damage, or -harm that could result from the use of the product. Define any safeguards or -actions that must be taken, as well as actions that must be prevented. Refer to -any external policies or regulations that state safety issues that affect the -product’s design or use. Define any safety certifications that must be -satisfied.$>$ - -\section{Security Requirements} -$<$Specify any requirements regarding security or privacy issues surrounding use -of the product or protection of the data used or created by the product. Define -any user identity authentication requirements. Refer to any external policies or -regulations containing security issues that affect the product. Define any -security or privacy certifications that must be satisfied.$>$ - -\section{Software Quality Attributes} -$<$Specify any additional quality characteristics for the product that will be -important to either the customers or the developers. Some to consider are: -adaptability, availability, correctness, flexibility, interoperability, -maintainability, portability, reliability, reusability, robustness, testability, -and usability. Write these to be specific, quantitative, and verifiable when -possible. At the least, clarify the relative preferences for various attributes, -such as ease of use over ease of learning.$>$ - -\section{Business Rules} -$<$List any operating principles about the product, such as which individuals or -roles can perform which functions under specific circumstances. These are not -functional requirements in themselves, but they may imply certain functional -requirements to enforce the rules.$>$ - - -\chapter{Other Requirements} -$<$Define any other requirements not covered elsewhere in the SRS. This might -include database requirements, internationalization requirements, legal -requirements, reuse objectives for the project, and so on. Add any new sections -that are pertinent to the project.$>$ - \section{Appendix A: Glossary} %see https://en.wikibooks.org/wiki/LaTeX/Glossary -$<$Define all the terms necessary to properly interpret the SRS, including -acronyms and abbreviations. You may wish to build a separate glossary that spans -multiple projects or the entire organization, and just include terms specific to -a single project in each SRS.$>$ - -\section{Appendix B: Analysis Models} -$<$Optionally, include any pertinent analysis models, such as data flow -diagrams, class diagrams, state-transition diagrams, or entity-relationship -diagrams.$>$ +SLAM: The Sports League Administration Manager +Staff: The people who run the league, working for the Municipal Parks and Recreation Department. +Administrators: People with administrative privileges. +Officals: People who officiate games. +Coaches: People who create teams. +Athletes: People who play in the leagues. +The Public: Everyone else. -\section{Appendix C: To Be Determined List} -$<$Collect a numbered list of the TBD (to be determined) references that remain -in the SRS so they can be tracked to closure.$>$ +\section{Appendix B: To Be Determined List} +TODO: specifications, testing, the rest of the document \end{document} \ No newline at end of file diff --git a/csci5801/a1_usecase.tex b/csci5801/a1_usecase.tex new file mode 100644 index 0000000..1856efb --- /dev/null +++ b/csci5801/a1_usecase.tex @@ -0,0 +1,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} + diff --git a/csci5801/img/diagram.png b/csci5801/img/diagram.png index 6166f77..06ca502 100644 Binary files a/csci5801/img/diagram.png and b/csci5801/img/diagram.png differ diff --git a/csci5801/usecase-template.tex b/csci5801/usecase-template.tex deleted file mode 100644 index 2343edd..0000000 --- a/csci5801/usecase-template.tex +++ /dev/null @@ -1,94 +0,0 @@ -%% 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}{Template test} - -%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} - -%Stakeholders and Interests: Who cares about this use case and what do they want? -\additemizedfield{Stakeholders and Interests:}{ - \item Stakeholder 1 name: his interests - \item Stakeholder 2 name: his interests -} - -%Preconditions: What must be true on start and worth telling the reader? -\addfield{Preconditions:}{} -%when multiple -%\additemizedfield{Preconditions:}{} - -%Postconditions: What must be true on successful completion and worth telling the reader -\addfield{Postconditions:}{} -%when multiple -%\additemizedfield{Preconditions:}{} - -%Main Success Scenario: A typical, unconditional happy path scenario of success. -\addscenario{Main Success Scenario:}{ - \item The first action - \item The second action -} - -%Extensions: Alternate scenarios of success or failure. -\addscenario{Extensions:}{ - \item[2.a] Invalid login data: - \begin{enumerate} - \item[1.] System shows failure message - \item[2.] User returns to step 1 - \end{enumerate} - \item[5.a] Invalid subsriber data: - \begin{enumerate} - \item[1.] System shows failure message - \item[2.] User returns to step 2 and corrects the errors - \end{enumerate} -} - -%Special Requirements: Related non-functional requirements. -\additemizedfield{Special Requirements:}{ - \item first applicable non-functional requirement - \item second applicable non-functional requirement -} - -%Technology and Data Variations List: Varying I/O methods and data formats. -\addscenario{Technology and Data Variations List:}{ - \item[1a.] Alternative first action with other technology -} - -%Frequency of Occurrence: Influences investigation, testing and timing of implementation. -\addfield{Frequency of Occurrence:}{} - -%Miscellaneous: Such as open issues/questions -%\addfield{Open Issues:}{} - -\end{usecase} - -\end{document} - -- cgit v1.2.3