How 2200090246/smart-hostel-manager works
This is a small console-based hostel room manager. The principal workflow is a user registering one student and adding one room, then creating and displaying an allocation for them. Main owns the menu and invokes the domain objects; Hostel only tracks a student count, while Student, Room, and Allocation hold and display domain data. The excerpts show no persistent storage or external services.
Main entry points: Main.java Menu workflow · Allocation.java Room allocation · Student.java Student profile · Room.java Room details
Components 6
Console workflow
- Menu workflow
smart_hostel_room_manager/src/com/hostel/Main.java
Hostel domain
- Hostel counts
smart_hostel_room_manager/src/com/hostel/Hostel.java - Student profile
smart_hostel_room_manager/src/com/hostel/Student.java - Room details
smart_hostel_room_manager/src/com/hostel/Room.java - Room allocation
smart_hostel_room_manager/src/com/hostel/Allocation.java
Other components
- Operator
Connections 7
- Operator → Menu workflow: chooses options
smart_hostel_room_manager/src/com/hostel/Main.java - Menu workflow → Hostel counts: creates, counts student
smart_hostel_room_manager/src/com/hostel/Main.java - Menu workflow → Student profile: creates, displays
smart_hostel_room_manager/src/com/hostel/Main.java - Menu workflow → Room details: creates, displays
smart_hostel_room_manager/src/com/hostel/Main.java - Menu workflow → Room allocation: creates, displays
smart_hostel_room_manager/src/com/hostel/Main.java - Room allocation → Student profile: reads name
smart_hostel_room_manager/src/com/hostel/Allocation.java - Room allocation → Room details: reads number
smart_hostel_room_manager/src/com/hostel/Allocation.java