car-charging-reservation-system

System Behavior (Use Cases)

Use Case Diagram

Use Case Diagram

Primary Actors:

Use Cases:

Secondary Actors:

Use Case Narrative: Create Reservation

Use Case Name

Create Reservation

Primary Actor

Employee

Secondary Actors

Goal

The Employee successfully reserves a Charging Point for a timeframe.

Preconditions

Main Success Scenario

  1. The Employee selects the date, estimated time of arrival and Car.
  2. The system displays a list of available Charging Points.
  3. The Employee selects the Charging Point by its ID.
  4. The system calculates maximum reservation time according to selected Car details.
  5. The system identifies possible time collisions.
  6. The system creates the reservation.
  7. The system provides a reservation creation confirmation to the Employee.

Extensions (Alternative Flows)

Postconditions

Use Case Narrative: Cancel Reservation

Use Case Name

Cancel Reservation

Primary Actor

Employee

Secondary Actors

Goal

The Employee successfully cancels a reservation.

Preconditions

Main Success Scenario

  1. The Employee selects the given reservation from the history.
  2. The system displays the reservation details.
  3. The Employee cancels the reservation.
  4. The system prompts the user for confirmation.
  5. The system provides a reservation cancellation confirmation to the Employee.

Extensions (Alternative Flows)

Postconditions

Use Case Narrative: View All Reservations

Use Case Name

View All Reservations

Primary Actor

Employee

Secondary Actors

Goal

The Employee successfully views a list of all their reservations.

Preconditions

Main Success Scenario

  1. The Employee requests to view their reservations.
  2. The system uses System Clock to categorize reservations as past or future.
  3. The system displays a chronologically ordered list of all reservations with basic information.

Extensions (Alternative Flows)

Postconditions

Use Case Narrative: View Reservation Details

Use Case Name

View Reservation Details

Primary Actor

Employee

Secondary Actors

Goal

The Employee successfully views detailed information about a specific reservation.

Preconditions

Main Success Scenario

  1. The system retrieves the selected reservation details.
  2. The system uses System Clock to calculate relative time information.
  3. The system displays detailed information about the selected reservation.

Extensions (Alternative Flows)

Postconditions

Use Case Narrative: Register Car

Use Case Name

Register Car

Primary Actor

Employee

Secondary Actors

Goal

The Employee successfully registers a Car.

Preconditions

Main Success Scenario

  1. The Employee registers a Car with mandatory details.
  2. The system displays the details and prompts the user for confirmation.
  3. The system registers the Car.
  4. The system provides a Car registration confirmation to the Employee.

Extensions (Alternative Flows)

Postconditions

Use Case Narrative: Deregister Car

Use Case Name

Deregister Car

Primary Actor

Employee

Secondary Actors

Goal

The Employee successfully deregisters a Car.

Preconditions

Main Success Scenario

  1. The Employee selects a registered Car.
  2. The system displays the details.
  3. The Employee deregisters the Car.
  4. The system prompts the user for confirmation.
  5. The system deregisters the Car.
  6. The system provides a Car deregistration confirmation to the Employee.

Extensions (Alternative Flows)

Postconditions

Use Case Narrative: View All Cars

Use Case Name

View All Cars

Primary Actor

Employee

Secondary Actors

Goal

The Employee successfully views a list of all their registered Cars.

Preconditions

Main Success Scenario

  1. The Employee requests to view their registered Cars.
  2. The system displays a list of all registered Cars with basic information.

Extensions (Alternative Flows)

Postconditions

Use Case Narrative: View Car Details

Use Case Name

View Car Details

Primary Actor

Employee

Secondary Actors

Goal

The Employee successfully views detailed information about a specific Car.

Preconditions

Main Success Scenario

  1. The system retrieves the selected Car details.
  2. The system displays detailed information about the selected Car.

Extensions (Alternative Flows)

Postconditions

Use Case Narrative: Add Charging Point

Use Case Name

Add Charging Point

Primary Actor

Facility Admin

Secondary Actors

Goal

The Facility Admin successfully adds a Charging Point

Preconditions

Main Success Scenario

  1. The Facility Admin enters the Charging Point details.
  2. The system validates the details and checks for duplicate IDs.
  3. The system displays the details and prompts the user for confirmation.
  4. The system registers the Charging Point.
  5. The system provides a Charging Point registration confirmation to the Facility Admin.

Extensions (Alternative Flows)

Postconditions

Use Case Narrative: Remove Charging Point

Use Case Name

Remove Charging Point

Primary Actor

Facility Admin

Secondary Actors

Goal

The Facility Admin successfully removes a Charging Point from the system.

Preconditions

Main Success Scenario

  1. The Facility Admin requests to view all Charging Points.
  2. The system displays a list of all registered Charging Points.
  3. The Facility Admin selects a Charging Point to remove.
  4. The system checks if the Charging Point has any active reservations.
  5. The system displays the Charging Point details and prompts for confirmation.
  6. The Facility Admin confirms the removal.
  7. The system removes the Charging Point.
  8. The system provides a Charging Point removal confirmation to the Facility Admin.

Extensions (Alternative Flows)

Postconditions

Use Case Narrative: View All Charging Points

Use Case Name

View All Charging Points

Primary Actor

Facility Admin

Secondary Actors

Goal

The Facility Admin successfully views a list of all Charging Points in the system.

Preconditions

Main Success Scenario

  1. The Facility Admin requests to view all Charging Points.
  2. The system displays a list of all registered Charging Points with basic information.

Extensions (Alternative Flows)

Postconditions

Use Case Narrative: View Charging Point Details

Use Case Name

View Charging Point Details

Primary Actor

Facility Admin

Secondary Actors

Goal

The Facility Admin successfully views detailed information about a specific Charging Point.

Preconditions

Main Success Scenario

  1. The system retrieves the selected Charging Point details.
  2. The system displays detailed information about the selected Charging Point.

Extensions (Alternative Flows)

Postconditions