How renzuthebocchi/vehiclerentalsystem-copy works
This Java console application manages vehicle rentals across branches, from account and inventory administration through reservation, rental, invoicing, payment, and vehicle maintenance. Main.java is the sampled command-line entry point and visibly creates payments during reservation processing; the domain classes model the resulting records and status changes. The excerpts do not show all menu dispatch or the complete reservation-to-rental flow, so those links are omitted rather than inferred. The README also mentions customer and staff operations, including sales reporting, implemented in UserAccount.java.
Main entry points: Vehicle.java Cars and motorcycles · Main.java Console workflows · RentalTransaction.java Rental transactions · Reservation.java Reservations
Components 10
Console application
- Console workflows
Main.java
Fleet and branches
- Branch inventory
Branch.java - Cars and motorcycles
Vehicle.java - Maintenance records
MaintenanceRecord.java
Rental lifecycle
- Reservations
Reservation.java - Rental transactions
RentalTransaction.java - Invoices and discounts
Invoice.java - Payment processing
Payment.java
Accounts and reporting
- Customer and staff accounts
UserAccount.java
Other components
- Operator
Connections 17
- Operator → Console workflows: uses
Main.java - Console workflows → Branch inventory: initializes
Main.java - Console workflows → Cars and motorcycles: initializes
Main.java - Console workflows → Customer and staff accounts: initializes
Main.java - Console workflows → Payment processing: creates payment
Main.java - Branch inventory → Cars and motorcycles: assigns inventory
Branch.java - Rental transactions → Reservations: references
RentalTransaction.java - Rental transactions → Cars and motorcycles: sets rented status
RentalTransaction.java - Invoices and discounts → Rental transactions: uses rental data
Invoice.java - Payment processing → Rental transactions: references
Payment.java - Payment processing → Invoices and discounts: looks up invoice
Payment.java - Reservations → Invoices and discounts: looks up invoice
Reservation.java - Reservations → Rental transactions: reads payment status
Reservation.java - Maintenance records → Cars and motorcycles: sets maintenance status
MaintenanceRecord.java - Cars and motorcycles → Maintenance records: adds records
Vehicle.java - Customer and staff accounts → Reservations: reviews reservations
UserAccount.java - Customer and staff accounts → Cars and motorcycles: reports sales
UserAccount.java