Skip to content

Domain Modelling

Yichen Wu edited this page Mar 14, 2021 · 8 revisions

UML Class Diagram

UML diagram

Description

The Repair Shop application is a software system to support an auto repair shop. The app lets a customer register and create a profile and then can book an appointment. The administrative assistant will schedule and maintain available timeslots. The system also sends reminders to customers to book appointments for regular maintenance.

Our class diagram has nine classes and one abstract class. The RepairShop class has compositions with the BookableService, Business, TimeSlot, appointment, bill, and the abstract class named Person. We named this abstract class “Person” instead of user because user is a reserved word in SQL. We have a generalization from the Technician, Customer, Owner, Administration classes to the Abstract Person class.

Important Decisions

  • The customer needs to be logged in to book an appointment
  • Customers can book as many appointments as they wish to.
  • The administrative assistant will maintain and schedule the slots. The time slots have attributes of date and time for the date of the appointment, start time and end time respectively.
  • The Repair shop provides other services such as a car wash, tire change, roadside assistance, towing, and car inspection. The Service class has attributes of String, float, int, and long to store the name of the service, cost of the service, duration, and ID respectively.
  • The Business class has attributes of type string to store the name, phone number, email address, and address.