How hariprasath-prog/smartparkingsystem works
This is a pure-Java console parking allocation and reservation system. Drivers use the console to request compatible spaces for a time interval; the controller ranks eligible lots by road travel time, reserves a selected space, or queues the request. Users and administrators can also manage reservation state, process expirations, and inspect status. The map separates console, allocation services, domain state, and routing. Relationship evidence is limited to the excerpts, README, and SOURCE INDEX; unsampled implementation details are not inferred.
Main entry points: ParkingOperationsController.java Operations controller · ParkingSpace.java Space state and compatibility · Reservation.java Reservations and intervals · WeightedGraph.java Weighted road network
Components 20
Console Interface
- Console menus
src/main/Main.java - Demo and setup data
src/util/SampleData.java
Allocation Services
- Operations controller
src/service/ParkingOperationsController.java - Slot selection policy
src/service/DefaultSlotSelectionPolicy.java - Reservation manager
src/service/ReservationManager.java
Parking Domain
- Waiting requests
src/model/ParkingRequest.java - Parking lots
src/model/ParkingLot.java - Space state and compatibility
src/model/ParkingSpace.java - Accessible spaces
src/model/AccessibleSpace.java - Car spaces
src/model/CarSpace.java - Two-wheeler spaces
src/model/TwoWheelerSpace.java - Vehicle and type
src/model/Vehicle.java - Reservations and intervals
src/model/Reservation.java - Reservation statuses
src/model/ReservationStatus.java - Space statuses
src/model/SpaceStatus.java
Road Routing
- Weighted road network
src/graph/WeightedGraph.java - Road nodes
src/graph/GraphNode.java - Weighted road links
src/graph/Edge.java - Shortest-path engine
src/graph/DijkstraAlgorithm.java
Other components
- Drivers and admins
Connections 24
- Drivers and admins → Console menus: use menus
README.md - Console menus → Operations controller: invoke operations
src/main/Main.java - Console menus → Demo and setup data: load demo data
src/main/Main.java - Demo and setup data → Operations controller: populate and exercise
src/util/SampleData.java - Demo and setup data → Weighted road network: build road network
src/util/SampleData.java - Operations controller → Slot selection policy: check and select spaces
src/service/ParkingOperationsController.java - Operations controller → Reservation manager: manage reservations
src/service/ParkingOperationsController.java - Operations controller → Shortest-path engine: compute routes
src/service/ParkingOperationsController.java - Operations controller → Waiting requests: queue unavailable requests
src/service/ParkingOperationsController.java - Operations controller → Parking lots: inspect eligible lots
src/service/ParkingOperationsController.java - Operations controller → Reservations and intervals: create and transition
src/service/ParkingOperationsController.java - Slot selection policy → Space state and compatibility: check compatibility
src/service/DefaultSlotSelectionPolicy.java - Space state and compatibility → Vehicle and type: validate vehicle
src/model/ParkingSpace.java - Parking lots → Space state and compatibility: contain spaces
src/model/ParkingLot.java - Accessible spaces → Space state and compatibility: extends state model
src/model/AccessibleSpace.java - Car spaces → Space state and compatibility: extends state model
src/model/CarSpace.java - Two-wheeler spaces → Space state and compatibility: extends state model
src/model/TwoWheelerSpace.java - Reservation manager → Reservations and intervals: verify and expire
src/service/ReservationManager.java - Reservations and intervals → Space state and compatibility: transition space state
src/model/Reservation.java - Reservations and intervals → Reservation statuses: track lifecycle
src/model/Reservation.java - Space state and compatibility → Space statuses: track availability
src/model/ParkingSpace.java - Weighted road network → Road nodes: store nodes
src/graph/WeightedGraph.java - Weighted road network → Weighted road links: store connections
src/graph/WeightedGraph.java - Shortest-path engine → Weighted road network: read network
src/graph/DijkstraAlgorithm.java