UML教材2University Case DesignWord文档格式.docx
《UML教材2University Case DesignWord文档格式.docx》由会员分享,可在线阅读,更多相关《UML教材2University Case DesignWord文档格式.docx(15页珍藏版)》请在冰点文库上搜索。
3.Specifythesignatureandthealgorithmforeachoperation(Chapter9)
CompleteSpecificationofAttributesandOperations–PublicUniversity
Student
Attributes
-studentIdentifier:
int
-name:
String
-gpa:
double
Operations
+inGoodStanding():
boolean
+associateSection(section:
Section)
Professor
-professorIdentifier:
None
Registration
System
+enterStudentIdentifier(studentIdentifier:
int):
Student
+requestSection(departmentCode:
String,courseNumber:
int,
sectionNumber:
int)
+endSectionRequests()
+enterDepartmentClassSchedule(departmentCode:
String,
term:
int,year:
+enterSection(courseNumber:
int,
maximumNumberOfStudents:
int,meetingTime:
meetingPlace:
String,professorIdentifier:
String)
+endSectionEntries()
+verifyDepartmentCode(departmentCode:
String):
boolean
+verifyStudentIdentifier(studentIdentifier:
Department
-departmentCode:
+verifyCourseNumber(courseNumber:
+verifySection(courseNumber:
int,sectionNumber:
+makeDepartmentClassSchedule(term:
int)
+enroll(student:
Student,courseNumber:
+makeSection(courseNumber:
int,sectionNumber:
int,meetingTime:
String,
String)
+associateDepartmentClassSchedule
(departmentClassSchedule:
DepartmentClassSchedule)
+verifyProfessor(professorIdentifier):
DepartmentClass
Schedule
-term:
-year:
int,:
String,professor:
Professor)
+enroll(section:
Section,student:
Student):
Section)
CompleteSpecificationofAttributesandOperations–PublicUniversity(Cont.)
Section
(subclassofCourse)
-sectionNumber:
-maximumNumberOfStudents:
-meetingTime:
-meetingPlace:
+associateStudent(student:
+associateProfessor(professor:
Professor):
Course
-courseNumber:
-title:
4.Designthegraphicaluserinterface(Chapter11)
A.EnterDepartmentSchedule:
B.RegisterforClasses:
5.Definetheinterfacetothepresentationlayer(Chapter12)
A.RegisterforClasses(StudentView):
B.RegisterforClasses(ComputerView):
6.Definetheinterfacetothestoragelayer(Chapter10)
A.DatabaseInterfaceClass:
B.ClassDiagramwithDatabaseInterface:
C.SQLTables(Optional):
DBMSTableDefinitions–PublicUniversity
Table
Data
COURSE
COURSE_NUMBER(INTEGER)-PrimaryKey
TITLE(VARCHAR(40))
UNITS(INTEGER)
DEPARTMENT_CODE(VARCHAR(03))-PrimaryKey,
ForeignKey
DEPARTMENT
DEPARTMENT_CODE(VARCHAR(03))-PrimaryKey
NAME(VARCHAR(40))
PROFESSOR
PROFESSOR_IDENTIFIER(INTEGER)-PrimaryKey
NAME(VARCHAR(40))
SECTION
DEPARTMENT_CODE(VARCHAR(03))–PrimaryKey,
ForeignKey
COURSE_NUMBER(INTEGER)–PrimaryKey,ForeignKey
SECTION_NUMBER(INTEGER)-PrimaryKey
TERM(INTEGER)–PrimaryKey,ForeignKey
YEAR(INTEGER)–PrimaryKey,ForeignKey
MEETING_TIME(VARCHAR(20))
MEETING_PLACE(VARCHAR(40))
MAXIMUM_NUMBER_OF_STUDENTS(INTEGER)
PROFESSOR_IDENTIFIER(INTEGER)-ForeignKey
STUDENT
STUDENT_IDENTIFIER(INTEGER)–PrimaryKey
NAME(VARCHAR)
ADDRESS(VARCHAR(40))
GPA(DECIMAL(3,2))
STUDENT_SECTION
STUDENT_IDENTIFIER(INTEGER)–PrimaryKey,
SECTION_NUMBER(INTEGER)–PrimaryKey,ForeignKey
7.Placetheclassesinpackages(Chapter8)
Omittedinthiscourse,howevertheyarepresentedforusebytheinstructor.Usingthethree-tierarchitectureofpresentationlayer(view),applicationlayer(model),andpersistencelayer,threepackagesaredesigned—oneforeachlayer.Theyare“UniversityView,”“UniversityModel,”and“UniversityPersistence.”
A.Package“UniversityView”(13ViewClasses):
AppletRegistrationSystem(Applet)
ScreenSubmitDepartmentClassSchedule(Event1)
ScreenEnterDepartmentClassSchedule
ScreenEnterSection
ScreenEndSectionEntries
ScreenProduceUniversityClassSchedule(Event2)
ScreenSubmitStudentRequest(Event3)
ScreenEnterStudentIdentifier
ScreenRequestSection
ScreenEndSectionRequests
ProduceClassList
ScreenProduceClassRoster(Event4)
ScreenRequestClassRoster
ScreenDisplayClassRoster
B.Package“UniversityModel”(7ModelClasses):
RegistrationSystem(Facade)
DepartmentClassSchedule
Section
C.Package“UniversityPersistence”(1PersistenceClass):
RegistrationSystemDBMS