下载此文档

华师大面向对象程序设计-Lec12 设计类图及顺序图等1.ppt


文档分类:IT计算机 | 页数:约98页 举报非法文档有奖
1/98
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/98 下载此文档
文档列表 文档介绍
Object oriented Analysis &Design 面向对象分析与设计 Lecture_08 GRASP
主讲: 陈小红
2
Artifact Influences
Design
3
Design
Supplementary Specs
Glossary
Data dictionary
Use Case under development, with System Sequence Diagram (System operations) and Contracts
Conceptual Model
Interactions, class diagram, etc
Packages
How?
OOD
After identifying your requirements and creating a domain model,
then add methods to the appropriate classes, and define the messaging between the objects to fulfill the requirements
4
Requirement?
requirement
Use case/
SSD
SytemEvent/
OC
SystemEvent/
OC
Use case/…
SSD
Use case/
SSD
SystemEvent/
OC
5
?
OO System
- objects collaborating to respond to System Events
6
System
System Event
How to judge whether it is finished or not?
Operation Contract
Input /Output
7
How to assign?
In the process
Refer to domain model
to assign task to objects and make them collaborating with each other
8
How to evaluate whether it is a good design?
High cohesion
Low coupling
9
Back to OOD Realisation ways
The problem is
Above advice is too general to be handled
Deciding what methods belong to where and how objects should interact carries consequences and should be undertaken seriously
responsibility-driven design (RDD)
thinking about how to assign responsibilities to collaborating objects
10

华师大面向对象程序设计-Lec12 设计类图及顺序图等1 来自淘豆网www.taodocs.com转载请标明出处.

相关文档 更多>>
非法内容举报中心
文档信息
  • 页数98
  • 收藏数0 收藏
  • 顶次数0
  • 上传人2112770869
  • 文件大小2.17 MB
  • 时间2017-07-23