Software Engi. Assignment 7
Software Engi. Assignment 7
SHIVAM kumar
YADAV
Admission No – 22scse1012800
22SCSE1012951
Sec – 27.
Design the Use case diagram, Class Diagram, Activity diagram, Sequence diagram,
Component diagram, Deployment Model for GU - SCSE.
To design the various UML diagrams (Use Case Diagram, Class Diagram, Activity Diagram,
Sequence Diagram, Component Diagram, and Deployment Model) for a GU - SCSE (Generic
University - School of Computer Science and Engineering), I’ll assume that this system
pertains to managing the core aspects of a university's computer science and engineering
department, such as student enrollments, course registrations, staff management, and academic
planning.
Here’s how we can break down and design each diagram based on a typical university system:
• Actors:
o Student
o Faculty
o Admin
• Use Cases:
o Student:
▪ View Transcripts
▪ Submit Assignments
▪ View Timetable
▪ Apply for Leave
o Faculty:
▪ Manage Courses
▪ Grade Assignments
▪ Create Timetable
▪ Assign Grades
o Admin:
▪ Register Faculty
▪ Schedule Classes
▪ Generate Reports
o System:
▪ Send Notifications
+------------------------------------+
| |
| Student |
| |
+------------------------------------+
| View Transcripts |
| Submit Assignments |
| View Timetable |
+-------------------------------------+
|
+--------------------+---------------------+
| |
+-------------------+ +---------------------+
| | | |
| Faculty | | Admin |
| | | |
+-------------------+ +---------------------+
+---------------------------+ +----------------------------+
| +--------------------------------------+
+------>| System |
| |
| Send Notifications |
| Auto-Generate Timetable |
+----------------------------------+
2. Class Diagram
A Class Diagram shows the structure of the system by defining its classes, attributes, methods, and
relationships.
• Student Class
• Course Class
o Attributes: courseCode, courseName, credits, schedule
• Faculty Class
• Admin Class
• Timetable Class
• Grade Class
o Methods: assignGrade()
Relationships:
• Student ↔ Course: Many-to-many (A student can enroll in multiple courses and vice versa)
• Grade ↔ Student/Course: One-to-many (Each student can receive grades for multiple courses)
3. Activity Diagram
An Activity Diagram represents the workflow of the system. Below is an example of a process like
"Student Registering for Courses."
Workflow:
1. Start
7. End
[Start] --> [Login to System] --> [View Courses] --> [Select Courses] --> [Check Prerequisites] --> [Add
Courses to Schedule] --> [End]
4. Sequence Diagram
A Sequence Diagram shows the interaction between objects over time. For example, consider the
sequence of actions when a Student registers for a course.
Sequence Steps:
| | |
|--Login()------> | |
| | |
|--ViewCourses()-->|---Query--->|
| | |
|--SelectCourse() |<-Available---|
| | Courses |
|--Register()----> | |
| | |
|--Confirm()----> | |
5. Component Diagram
A Component Diagram illustrates the organization and dependencies among software components. For
GU - SCSE, components might include Authentication System, Course Management System, Grading
System, Notification Service, and Database.
+-------------------+
| Authentication |
| System |
+-------------------+
+-------------------+ +-------------------+
| System | | |
+-------------------+ +-------------------+
+-------------------+
| Grading System |
+-------------------+
+-------------------+
| Notification |
| Service |
6. Deployment Model
A Deployment Diagram shows the physical deployment of software on hardware. For GU - SCSE, typical
nodes might include Student Workstations, Faculty Workstations, Web Server, and Database Server.
+---------------------+ +------------------------+
+---------------------+ +------------------------+
+---------------------+ +------------------------+