- All templates
- Class diagram templates
- Class diagram bus reservation
About this class diagram for the bus reservation
The UML class diagram for a bus reservation system lists the important parts for bus schedules, ticket bookings, and passenger transactions.
At its center is the bus class, used to represent single buses. Every bus possesses properties like bus number, capacity, and route. The route class shows the path a bus takes. It includes details like start location, end location, distance, and a list of stops.
The class schedule makes sure that each bus is managed at its proper time. It holds details like departure time and arrival time. This links a bus to its specific route. Several buses can share the same route, but will have varied schedules.
Passengers use the passenger class to communicate with the system. The passenger class holds user information such as name, email address, phone number, and list of tickets booked. Passengers are able to register, log in, modify their profiles, and display their bookings.
Ticket class is used to represent a seat booked on a bus. One ticket is linked to one passenger, one bus, and one schedule. Ticket fields have seat number, price, and status (like booked, canceled). Passengers can book a ticket, cancel a ticket, and get a ticket summary.
Payments are handled by the payment class, which records transactions for ticket reservations. It has properties such as amount, payment method, payment date, and status. Payments may be processed or refunded due to ticket cancellations.
The admin class controls the overall system, handling buses, schedules, and passengers. The notification class takes care of sending alerts. It notifies passengers about booking confirmations, cancellations, and any schedule updates. This UML class diagram shows a complete way to manage a bus reservation system. It ensures smooth ticket bookings, passenger management.
Related templates
Get started with EdrawMax today
Create 210 types of diagrams online for free.
Draw a diagram free Draw a diagram free Draw a diagram free Draw a diagram free Draw a diagram free