How kietpham-vn/online-exam-management-system works
Main Components
A. Application Layers (Top to Bottom):
• UI Layer (src/ui/)
• Controller Layer (src/controller/)
• Repository Layer (src/repository/)
• Data Layer (src/data/)
• Database Layer (src/db/)
B. Cross-cutting Components:
• Interfaces (src/interfaces/)
• Utilities (src/utils/)
┌─────────────────────────────────────────────┐
• UI Layer │
• (StartupMenu, AdminMenu, StudentMenu, etc.) │
• ┘
• ↓ ↑
┌─────────────────────────────────────────────┐
• Controller Layer │
• (UserController, ExamExecuter, etc.) │
• ┘
• ↓ ↑
┌─────────────────────────────────────────────┐
• Repository Layer │
• (ExamRepository, UserRepository) │
• ┘
• ↓ ↑
┌─────────────────────────────────────────────┐
• Data Layer │
• (User, Exam, Question, Grade, etc.) │
• ┘
• ↓ ↑
┌─────────────────────────────────────────────┐
• Database Layer │
• (database.java) │
• ┘
Important Relationships
A. Vertical Relationships:
• UI → Controllers (user actions)
• Controllers → Repositories (data operations)
• Repositories → Database (persistence)
B. Horizontal Relationships:
• Repository implementations → Repository interfaces
• Data model associations (User-Exam-Question relationships)
Additional Elements
A. Key Design Patterns:
• Repository Pattern (shown by IExamsRepository and IUserRepository)
• MVC-like structure (separation of UI, Controllers, and Data)
B. Database Schema Overview:
• A simplified version of the database schema (from database/db.sql)
• Main entities: Users, Exams, Questions, Grades
Specific Components Detail
A. UI Components:
• Hierarchy: StartupMenu → AdminMenu/StudentMenu/InstructorMenu
• ExamMenu and ExamSubMenu relationships
B. Controller Components:
• Related controllers (Exam-related controllers together)
• Validation flow through ValidationMarks
C. Data Models:
• Relationships between entities (User, Exam, Question, Choice, etc.)
• Aggregation/composition relationships
Implementation Notes
• Notes for important design decisions or constraints
• Flow of exam creation, execution, and grading