欢迎来到天天文库
浏览记录
ID:33835091
大小:1.07 MB
页数:96页
时间:2019-02-28
《chap 4 - system design》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、2010/1/8ShanghaiJiaoTongUniversityObjtObject-OitdAliOrientedAnalysisandDidDesignChapter4ObjectOrientedSystemDesign上海交通大学软件工程中心Chapter4ObjectOrientedSystemDesign4.1OODesignOverview4.2ThePrinciplesofObject-OrientedDesign4.3ArchitecturalDesignandUMLPackageDiagram4.4ComponentDesignandU
2、MLComponentDiagram&CompositeStructurediagram4.5ClassDesignandUMLStateMachineDiagramObjectOrientedAnalysisandDesign212010/1/8OODesignOverviewObjectOrientedAnalysisandDesign35.1OODesignOverviewUnderstandingDesignAnalysisVersusDesignObjectOrientedDesignObjectOrientedAnalysisandDesi
3、gn422010/1/8UnderstandingDesignAprocessthatusestheproductsofanalysistoproduceaspecificationforimplementingasystem.AlogicaldescriptionofhowasystemwillAlogicaldescriptionofhowasystemwillwork.Emphasizesaconceptualsolution(insoftwareandhardware)thatfulfillstherequirements,ratherthan
4、itsimplementation.“dotherightthing(analysis),anddothethingright(design)”.ObjectOrientedAnalysisandDesign5AnalysisVersusDesignAnalysisDesignFocusonFocusonunderstandingtheunderstandingtheproblemsoltilutionIdealizeddesignOperationsandBehaviorattributesSystemstructurePerforma
5、nceFunctionalClosetorealcoderequirementsObjjyectlifecyclesAsmallmodelNonfunctionalrequirementsAlargemodelObjectOrientedAnalysisandDesign632010/1/8ObjectOrientedDesignThespecificationofalogicalsoftwaresolutionintermsofsoftwareobjects,suchastheirclasses,attributes,methods,and
6、collaborations.Duringobject-orienteddesign(orsimply,objectdesign)thereisanemphasisondefiningsoftwareobjectsandhowtheycollaboratetofulfilltherequirements.ObjectOrientedAnalysisandDesign7ThePrinciplesofObject-OrientedDesignObjectOrientedAnalysisandDesign842010/1/85.2ThePrinciplesofO
7、bject-OrientedDesignSRP:SingleResponsibilityPrincipleOCP:TheOpen-ClosedPrincipleLSP:TheLisoSubsuoskovSubstitutionPrincpecipleDIP:TheDependencyInversionPrincipleISP:TheInterfaceSegregationPrincipleObjectOrientedAnalysisandDesign9SRP:TheSingle–ResponsibilityPrincipleAClassshoul
8、dhaveonlyonereasontochange
此文档下载收益归作者所有