面向对象建模技术软件工程系林琳
面向对象建模技术 软件工程系 林 琳
GRASP模式及其应用介绍设计模式简介基于职责设计对象的基本思想GRASP模式用例实现(应用GRASP模式设计
GRASP模式及其应用介绍 ◆设计模式简介 ◆基于职责设计对象的基本思想 ◆GRASP模式 ◆用例实现(应用GRASP模式设计)
设计模式简介What is apattern?·A commonproblem- and a proven solution-inacontext·Astructured,packagedproblemsolutioninliteraryform·Awayofrecording experience,“bestpractices"-In a standard format-Arepositoryforknowledge."What's new is that there's nothing new here.Patterns are about what works. Patterns give us a way to talk aboutwhatworks."-BrianFoote,1997.定义:“在一个上下文中对一种问题的解决方案”这种定义限定模式为单一的问题-解决方案型
设计模式简介
设计模式简介模式的组成:Name:模式需要命名,帮助设计人员沟通Context:模式适用的上下文陈述Forces:形成解决方案过程中的约束Problem:模式提出的问题Solution:解决方案
设计模式简介 ❖模式的组成: ▪ Name: 模式需要命名,帮助设计人员沟通 ▪ Context: 模式适用的上下文陈述 ▪ Forces: 形成解决方案过程中的约束 ▪ Problem: 模式提出的问题 ▪ Solution: 解决方案
设计模式简介模式的种类很多,例如结构模式:MVC分析模式设计模式:GRASP模式GoF设计模式Creational Design PatternsStructuralDesign PatternsBehavioral Design Patterns
❖模式的种类很多,例如 ❖ 结构模式:MVC ❖ 分析模式 ❖ 设计模式: ▪ GRASP模式 ▪ GoF设计模式 • Creational Design Patterns • StructuralDesign Patterns • Behavioral Design Patterns 设计模式简介