您好,欢迎访问三七文档
当前位置:首页 > 金融/证券 > 金融资料 > 核心系统设计(UML与RUP)
1Abusinessof“”¾¾UML¾¾¾2¾¾UML¾¾¾999UML93¾¾UML¾¾¾“”Dr.JamesRumbaugh?45(VisualBasic,Java)(C++,Java)(C++&SQL)(SoftwareArchitecture)6UML?•UMLUnifiedModelingLanguage()•UML−()−()−−•UML•7UML’9711UMLOMGUMLMicrosoftActiveX/COMMicrosoftOracleCORBAOMG8UML•UML:−(Usecase)(actors)−−−−−UMLUML•ESU−−−42−−−−9Actors••−“”•−–−–−–−–10•−••−−−−•(E-1)(E-2)•“”S-1•“”S-2:•“”S-3:•“”•...11•RequestCourseRoster“(use)”“(extend)”•−“(use)”−“(extend)”RegisterforcoursesusesLogonvalidationusesMaintaincurriculum12•••−−•:Studentregistrationformregistrationmanagermath1011:fillininfo2:submit3:addcourse(joe,math01)4:areyouopen?5:areyouopen?6:add(joe)7:add(joe)math101section113:Registrarcourseform:CourseFormtheManager:CurriculumManageraCourse:Course1:setcourseinfo2:process3:addcourse4:newcourse•••UML−−−(Multiplicityandnavigationindicators)−14••••−RegistrationFormRegistrationManagerCourseStudentCourseOfferingProfessorScheduleAlgorithm15(Operation)••registrationformregistrationmanager3:addcourse(joe,math01)RegistrationManageraddCourse(Student,Course)(Attributes)••Eachcourseofferinghasanumber,locationandtimeCourseOfferingnumberlocationtime16(class)RegistrationFormRegistrationManageraddStudent(Course,StudentInfo)CoursenamenumberCreditsopen()addStudent(StudentInfo)StudentnamemajorCourseOfferinglocationopen()addStudent(StudentInfo)ProfessornametenureStatusScheduleAlgorithm(relationship)••/•:−−−17(Relationships)•−•−Anaggregationisshownasalineconnectingtherelatedclasseswithadiamondnexttotheclassrepresentingthewhole•“”“”“”CourseStudentCourseOfferingProfessornamenumberCreditsopen()addStudent(StudentInfo)namemajorlocationopen()addStudent(StudentInfo)nametenureStatusRegistrationManagerMath101:Course3:addstudent(joe)RegistrationManagerCourse•−Iftwoobjectsmust“talk”theremustbeapathwayforcommunication18RegistrationFormRegistrationManagerCourseStudentCourseOfferingProfessoraddStudent(Course,StudentInfo)namenumberCreditsopen()addStudent(StudentInfo)namemajorlocationopen()addStudent(StudentInfo)nametenureStatusScheduleAlgorithm(MultiplicityandNavigation)•−−••19RegistrationFormRegistrationManagerCourseStudentCourseOfferingProfessoraddStudent(Course,StudentInfo)namenumberCreditsopen()addStudent(StudentInfo)majorlocationopen()addStudent(StudentInfo)tenureStatusScheduleAlgorithm10..*0..*111..*43..100..41(Inheritance)••:−(Generalization)−(Specialization)•20()InheritanceRegistrationFormRegistrationManagerCourseStudentCourseOfferingProfessoraddStudent(Course,StudentInfo)namenumberCreditsopen()addStudent(StudentInfo)majorlocationopen()addStudent(StudentInfo)tenureStatusScheduleAlgorithmnameRegistrationUser(statetransitiondiagram)•−−−•21(statetransitiondiagram)InitializationOpenentry:Registerstudentexit:IncrementcountClosedCanceleddo:Initializecoursedo:Finalizecoursedo:NotifyregisteredstudentsAddStudent/Setcount=0Addstudent[count10][count=10]CancelCancelCancel•(ComponentDiagram)•−−−22CourseCourseOfferingStudentProfessor(Componentdiagram)Course.dllPeople.dllCourseUserRegister.exeBilling.exeBillingSystem•Thedeploymentdiagramshowstheconfigurationofrun-timeprocessingelementsandthesoftwareprocesseslivingonthem•(deploymentdiagram)23(Deploymentdiagram)RegistrationDatabaseLibraryDormMainBuildingUML•UML••:−:boundary,control,entity,utility,exception−:usesandextends−:subsystem24UML•UMLhasgotthebestofERmodeling•MoreexpressivethanER•Extendable•DirectlymappedtoObjectModelERVSUMLOrderOrderItemOrderOrderItem0..*10..*1hasEntityVSClass25MultiplicityABABABABABABABAB*0..150..13..*10..200..11tomany=5320SubclassEmployeeSalariedHourlyEmployeeHourlySalariedFixPricePrivateFixedPriceGovernmentT&MGovernmentT&MPrivateContractPrivateGovernmentFixedPriceTime&MaterialsERUML26ManytomanyEmploymentPersonCompanyEmploymentPersonCompany**dupesallowed**PersonCompany****EmploymentPeriodofEmployment0..*110..*AggregationTeamLeagueLeagueTeam*1*1memberofContractChangeRequestContractModificationContractContractModificationContract*1ContractChangeRequest*0..1*1modifiesmakesupmodifies*1*0..1*127RecursiveassociationSubcomponentEngineComponentEngineComponent****+Assemply+PartComponentofSubcomponentCaseStudy-ASimpleOrderSystemManufactureDistributorRecordsSeries0..*10..*+subseries+motherseries1Brand0..*10..*1Owns0..*10..*1Distributor0..*0..*0..*0..*authorizeddistributorPO0..*10..*1PODetail0..*10..*1Model0..*0..10..*0..10..*0..10..*0..1111128¾¾UML¾¾¾(UnifiedDevelopmentProcess)GradyBoochIvarJacobsonJamesRumbaugh1998RationalObjectoryProcess4.11996-1997ObjectoryProcess1.0-3.81987-1995RationalUML29(Softwareengineeringprocess)(Process)?••−(Usecasedriven)−()(Architecture-centric)−(Iterativeandincremental)30(Usecase)•−−−−−•31(Architecture-centric)•••••••(5%-10%)()(*Rational)32••••123“-”33224....mm+134.UMLUseCaseDiagramsUseCaseDiagramsScenarioDiagramsScenarioDiagramsStateDiagramsStateDiagramsComponentDiagramsComponentDiagramsStateDiagramsStateDiagramsScenarioDiagramsScenarioDiagramsUseCaseDiagramsUseCaseDiagramsStateDiagramsStateDiagrams353637实现测试设计38•••••••(5)()(()3940••••••••41•••••betabeta42•beta••beta••43!•»»»»UMLUML
本文标题:核心系统设计(UML与RUP)
链接地址:https://www.777doc.com/doc-4312753 .html