How mynameisdinak/allocation_room_project works
AllocationRoom is a Java Swing tool for organizing a group’s room assignments. The visible workflow is to create a group, configure room preferences and mutual dislikes, generate a naive assignment, evaluate jealousy, and inspect or adjust the result. The domain layer holds people, preferences, validation issues, and assignments; the two algorithm classes build assignments and score them. The README describes the package roles, while some UI behavior is omitted from the excerpt, so the graph limits links to visible code and indexed references.
Main entry points: FenetrePrincipale.java Main window · Personne.java Person · Groupe.java Group · Affectation.java Room assignment
Components 9
Desktop UI
- Main window
src/ui/ui/FenetrePrincipale.java
Assignment algorithms
- Naive allocator
src/algorithm/AffectationNaive.java - Jealousy scorer
src/algorithm/Jalousie.java
Domain model
- Group
src/domain/Groupe.java - Person
src/domain/Personne.java - Room preferences
src/domain/Preferences.java - Preference issues
src/domain/PreferencesIssue.java - Room assignment
src/domain/Affectation.java
Other components
- Organizer
Connections 15
- Organizer → Main window: uses
src/ui/ui/FenetrePrincipale.java - Main window → Group: creates and configures
src/ui/ui/FenetrePrincipale.java - Main window → Naive allocator: requests assignment
src/ui/ui/FenetrePrincipale.java - Main window → Jealousy scorer: requests score
src/ui/ui/FenetrePrincipale.java - Main window → Room assignment: displays and adjusts
src/ui/ui/FenetrePrincipale.java - Group → Person: creates and manages
src/domain/Groupe.java - Group → Room preferences: sets
src/domain/Groupe.java - Group → Preference issues: reports
src/domain/Groupe.java - Person → Room preferences: holds
src/domain/Personne.java - Room preferences → Preference issues: diagnoses
src/domain/Preferences.java - Naive allocator → Person: reads preferences and dislikes
src/algorithm/AffectationNaive.java - Naive allocator → Room assignment: builds
src/algorithm/AffectationNaive.java - Jealousy scorer → Person: reads preferences and dislikes
src/algorithm/Jalousie.java - Jealousy scorer → Room assignment: reads room allocations
src/algorithm/Jalousie.java - Room assignment → Person: keys allocations by
src/domain/Affectation.java