iteration 2 GRASPEMORE PATTERNS 徐迎晓 xuyingxiao@126.com 复旦大学软件学院
Iteration 2 GRASP: MORE PATTERNS 徐迎晓 xuyingxiao@126.com 复旦大学软件学院
ITERATIONAND TS REQUIREMENTS handles several interesting requirements o Support for variations in third-party external services Complex pricing rules o Pluggable business rules o a design to refresh a gui window when the sale total changes
ITERATION 2 AND ITS REQUIREMENTS handles several interesting requirements ⚫ Support for variations in third-party external services. ⚫ Complex pricing rules. ⚫ Pluggable business rules. ⚫ A design to refresh a GUI window when the sale total changes
Discipline Artifact Incep. Elab. Const.I Trans Iteration-* E1.En CL Cn[ T1T2 Business Modeling DomainModel Requirements Use-Case model Ⅴ ISIon Supplementary Specification Glossary Design Design Model r SW Architecture Document Data model r ImplementationImplementation Model rrrrssssrsr r Project Management Sw Development Plan r Testing Test model Environment Development Case Table 2. 1 Sample Development Case of UP artifacts, s-start; r-refine
Refinement of Analysis oriented Artifacts in this teration e Use-Case Model, Use Cases 就本次迭代的需求来说不需要 ●但本次迭代的需求分析会议上 more use cases will be investigated and written in detail ● previous! fully dressed use cases(如 Process Sale)will be revisited 如果这些更新 not architecturally significant or risky,可推迟到 construction阶段考虑
Refinement of Analysisoriented Artifacts in this Iteration Use-Case Model: Use Cases ⚫ 就本次迭代的需求来说不需要 ⚫ 但本次迭代的需求分析会议上more use cases will be investigated and written in detail ⚫ previously fully dressed use cases (如 Process Sale) will be revisited ⚫ 如果这些更新not architecturally significant or risky,可推迟到construction阶段考虑
Use-Case Model, SSDs o adding support for third-party external systems with varying interfaces e SSDs should be updated to reflect at least some of the inter-system collaborations
Use-Case Model: SSDs ⚫ adding support for third-party external systems with varying interfaces ⚫ SSDs should be updated to reflect at least some of the inter-system collaborations
Sale NextGen POS actor》 Kact or》 actors System Naxcalculator Accounts Service Cashier enterltem( itemID, quantity more items taxLinel tems get T axes( sale total with taxe make Credit Payment pbst Receivable( receivable ts Figure 21. 1 An SSD scenario that illustrate some external systems
Domain model 评估新的需求对 Domain mode是否有mnor or major impact ●本次迭代不增加很多 domain object PriceRule ●新东西很少时,可跳过 Domain model的精 化,迅速进入设计工作,在对象设计过程中 发现新的 domain concepts
Domain Model ⚫ 评估新的需求对Domain Model是否有minor or major impact ⚫ 本次迭代不增加很多domain object。 PriceRule ⚫ 新东西很少时,可跳过Domain Model的精 化,迅速进入设计工作,在对象设计过程中 发现新的domain concepts
GRASPE MORE PATTERNS FOR ASSIGNING RESPONSBILITIES
GRASP: MORE PATTERNS FOR ASSIGNING RESPONSIBILITIES
Introduction ●已介绍五个 GRASP patterns Information Expert, Creator, High Cohesion, Low Coupling, and Controller 还剩四个: Polymorphism Indirection Pure Fabrication(纯虚构) Protected variations ●在讨论设计的时候将有丰富的共享词汇 通过模式名称简洁地表达复杂的设计概念
Introduction 已介绍五个GRASP patterns: Information Expert, Creator, High Cohesion, Low Coupling, and Controller 还剩四个: • Polymorphism • Indirection • Pure Fabrication(纯虚构) • Protected Variations 在讨论设计的时候将有丰富的共享词汇: 通过模式名称简洁地表达复杂的设计概念
余四个 GRASP模式 Polymorphism Pure fabrication Indirection e, Protected variations
其余四个GRASP模式 . Polymorphism Pure Fabrication . Indirection . Protected Variations