文档介绍:ObjectorientedAnalysis&Design面向对象分析与设计Lecture_08GRASP主讲:陈小红*ArtifactInfluencesDesign*DesignSupplementarySpecsGlossaryDatadictionaryUseCaseunderdevelopment,withSystemSequenceDiagram(Systemoperations)andContractsConceptualModelInteractions,classdiagram,etcPackagesHow?OODAfteridentifyingyourrequirementsandcreatingadomainmodel,thenaddmethodstotheappropriateclasses,hemessagingbetweentheobjectstofulfilltherequirements*Requirement?*?OOSystem-objectscollaboratingtorespondtoSystemEvents*SystemSystemEventHowtojudgewhetheritisfinishedornot?OperationContractInput/Output*Howtoassign?IntheprocessRefertodomainmodeltoassigntasktoobjectsandmakethemcollaboratingwitheachother*Howtoevaluatewhetheritisagooddesign?HighcohesionLowcoupling*BacktoOODRealisationwaysTheproblemisAboveadviceistoogeneraltobehandledDecidingwhatmethodsbelongtowhereandhowobjectsshouldinteractcarriesconsequencesandshouldbeundertakenseriouslyresponsibility-drivendesign(RDD)thinkingabouthowtoassignresponsibilitiestocollaboratingobjects*