Skip to content
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.

Use Cases

Michiel edited this page Mar 9, 2023 · 33 revisions

Use cases

All the use cases are listed here. We first list them here and you can find beneath them.

All Use cases

User Management

  • create student/superstudent (admin)
  • remove student/superstudent (admin)
  • change info/role of student/superstudent (admin)

Routes

  • create route (admin)
  • change route (admin)
  • add a building to a specific route

Route that is completed by the assigned student

  • add start/stop pictures
  • add additional info to location

Schedule

  • add a route to the schedule (admin)
  • remove a route from the schedule (admin)
  • Assign a person to a route in a specific week (admin)
  • change the person on a specific date which will complete the route. (admin)

buildings

  • add building
  • remove building

Details use cases

User Management

Title create student/superstudent (admin)
Description A new student must be created in the system.
Pre-conditions The administrator is logged in.
Post-conditions A new student has been added.
actors Administrator
Normal flow 1. Administrator chooses to create new user
2. Admin fills in info of new user
3. Admin confirms user creation
4. System creates new user
5. System creates a automatic message to the new user with an automatically generated password
Alternative flow Administrator does not confirm user creation:
1. This will be aborted and returned to the previous screen.
Title remove student/superstudent (Admin initiated)
Description A student no longer works for the company and will be removed.
Pre-condition The administrator is logged in and the student exists in the system.
Post-condition The student has been completely removed from the system.
Actors Administrator
Normal flow Administrator designates the assistant to be removed Admin clicks delete button System asks for confirmation Admin confirms System removes student System sends message to student that his account has been deactivated.
Alternative flow Administrator does not confirm user creation: This is aborted and returned to the previous screen.
Title change info/role of student/superstudent (admin initiated)
Description Info of a student can be modified by the admin. This can also be the user's role.
Pre-condition The administrator is logged in and the user exists in the system.
Post-condition User info updated
Actors Administrator
Normal flow Trivial
Alternative flow Trivial

Routes

Title Create route (admin initiated)
Description Round is created
Pre-condition Round does not yet exist and buildings added to it are no longer in another round.
Post-condition Round has been created
Actors Administrator
Normal flow Create round (Form) Add building to the specific round
Alternative flows Building is already in other round: Give a warning
Title Adjust the route
Description A round should also be customisable so that buildings can be added or removed.
Pre-condition This round consists
Post-condition Custom round
Actors Administrator
Normal flow Trivial
Alternative flow Trivial
Title Add building to a route (admin initiated)
Description A specific building is assigned to a round.
Pre-condition The building is already present in the database.
Post-condition Building has been added to the round
Actors Administrator
Normal flow Trivial
Alternative flow Trivial

Route that is completed by the assigned student

Title Add start/stop photos
Description When the student arrives at one building, he should take some pictures. These should be added to the corresponding round.
Pre-condition The building where the photos should be added is the currently active building
Post-condition Photos have been added to the building in this round.
Actors The student
Normal flow Student tries to add photos in the right place System adds the photos
Alternative flow Photo upload fails: Photos are not uploaded and this will have to be done again
Title Add additional info to the building
Description Additional info can be added to a building
Pre-condition The building exists
Post-condition Info has been added
Actors The student
Normal flow Trivial
Alternative flow Trivial

Schedule

Title  add a route to the schedule (admin) 
Description  Route is added to the schedule in a specific week. 
Pre-condition  No route is scheduled for a specific week. 
Post-condition  The route is scheduled in a week. 
Actors  Admin 
Normal flow  Try to add route in a specific week  Add route in the schedule 
Alternative Flow  Route has already been added to the schedule in that week:  Try to add route  Error because route is already in the schedule
Title  remove a route from the schedule (admin) 
Description  Remove a route from the schedule 
Pre-condition  Route is in the schedule 
Post-condition  Route is not in the schedule anymore 
Actors  Admin 
Normal flow  Route is in the schedule and is removed. 
Alternative Flow  Route is not in the schedule, Error because it can’t remove a route that isn’t scheduled.
Title  Assign a person to a route in a specific week (admin) 
Description  Assign a person to a route in a schedule 
Pre-condition  There is no person assigned to a route in the schedule 
Post-condition  The person is assigned to the route in the schedule 
Actors  Admin 
Normal flow  1. select the route
2. select person to add to the route
Alternative Flow  There is already a person assigned to the route. Display an error that there is already a person assigned to this schedule. Give the option to change the person.
Title  change the person on a specific date which will complete the route. (admin) 
Description  The person that was assigned to a route in a week can be changed. This can happen on a day-to-day basis. 
Pre-condition  There is a person assigned to the schedule. 
Post-condition  The person is changed to the new person 
Actors  Admin 
Normal flow  Trivial
Alternative Flow  person was already the assigned person.

Buildings

Title Add building (admin initiated)
Description A new building is added in the database
Preconditions The building is not yet in the database
Post conditions The building has been added to the database
Actors The administrator
Normal flow Form for building is completed by administrator Form is proposed to system to add System adds the building
Alternative flow The form is filled in incorrectly and returns an error: Return to the fill-in page of the form half-completed.
Title remove building (admin initiated)
Description A building that is no longer used is removed.
Pre-condition Building must be present in the database
Post-condition Building is no longer in the database
Actors Administrator
Normal flow Administrator tries to remove building Administrator must confirm if he really wants to remove this building System removes the building
Alternative flow Administrator does not confirm. Return to the previous page