Question: Using this can you create a squence diagram and activity diagram in astah UML. Person ( Base Class ) : Attributes: name: String address: String
Using this can you create a squence diagram and activity diagram in astah UML.
Person Base Class:
Attributes:
name: String
address: String
uniqueid: String unique identifier
email: String
Methods:
initself name, address, uniqueid email: Constructor for setting up shared properties.
Student Inherits from Person:
Additional Attributes:
maxcredits: Integer default:
currentcredits: Integer default:
enrolledcourses: List of Course objects initially empty
Methods:
registercourseself course: enrolls a student in a course provided the maximum number of credits is not reached.
dropcourseself course: permits a student to discontinue a course.
totalcreditsself: gives back the entire amount of credits for which the student is enrolled.
Instructor Inherits from Person:
Additional Attributes:
department: String
maxcredits: Integer default:
currentcredits: Integer default:
coursestaught: List of Course objects initially empty
Methods:
assigncourseself course: gives the instructor a course if the maximum number of credits is not reached.
removecourseself course: permits the teacher to drop a course from their list of things to teach.
totalteachingcreditsself: gives back the total number of credits that the teacher is currently teaching.
Course:
Attributes:
department: String
coursenumber: String
credits: Integer
location: String
maxstudents: Integer
enrolledstudents: List of Student objects initially empty
instructor: Instructor object onetoone relationship
Methods:
addstudentself student: If the course isn't filled and the student hasn't gone over their credit limit they can be added.
removestudentself student: eliminates the student from the program.
isfullself: Whether the course's maximum student capacity has been reached, returns true.StudentCourse Association: Up to a credit limit a student may enroll in several courses, and there may be more than one student in each course.
InstructorCourse Composition: A course can only be assigned to one instructor, and after it is deleted, it can no longer be seen on the instructor's list of courses they have taught.
CourseStudent Aggregation: Students exist independently of classes, yet courses maintain track of registered students.
InstructorCourse Association: Up to a certain credit limit a teacher can teach many courses, and a teacher teaches each course separately.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
