当前位置:
文档之家› 《软件工程-实践者的研究方法》chapter_07_cn_设计概念-35页精选文档
《软件工程-实践者的研究方法》chapter_07_cn_设计概念-35页精选文档
Approach, 6/e and are provided with permission by R.S. Pressman & Associates, Inc., copyright © 1996, 2001,
2005
1
设计与质量
设计必须实现所有包含在分析模型中的明确需求,并且 必须满足客户期望的所有隐含需求。
Approach, 6/e and are provided with permission by R.S. Pressman & Associates, Inc., copyright © 1996, 2001,
2005
2
质量指导原则
设计应展示出这样一种结构:
(a)已经使用可识别的体系结构风格或模式创建。 (b)由展示出良好设计特征的构件构成 (c)能够以一种演化的方式实现
分析模型 -> 设计模型
sc e na r i o- ba se d element s
use-cases - text use-case diagrams activity diagrams swim lane diagrams
f low- orient ed element s
data flow diagrams control-flow diagrams processing narratives
These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s
Approach, 6/e and are provided with permission by R.S. Pressman & Associates, Inc., copyright © 1996, 2001,
设计应该模块化,也就是说,软件应该按照逻辑划分为元素或子系统 设计应该包含数据、体系结构、接口和构件的清楚的表示
设计应该导出数据结构,这些数据结构适用于要实现的类,并从可识别的数 据模式提取
设计应该导出显示独立功能特征的构件 设计应该能导出接口 设计的导出应根据软件需求分析过程中获取的信息,采用可重复的方法进行 应使用能够有效传达其意义的方法来表达设计。
An aly sis Mode l
c l a ss- ba se d element s
class diagrams analysis packages CRC models collaboration diagrams
behavioral element s
state diagrams sequence diagrams
Байду номын сангаас2005
3
通用设计任务集——设计过程做 什么?
Page 131 (TaskSet)
These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s
Approach, 6/e and are provided with permission by R.S. Pressman & Associates, Inc., copyright © 1996, 2001,
Approach, 6/e and are provided with permission by R.S. Pressman & Associates, Inc., copyright © 1996, 2001,
2005
5
数据抽象
door
manufacturer model number type swing direction inserts lights
Co m p o n e n t Le v e l De sign
Int e rfa c e D e sign A rc hit e c t ura l D e sign
D a t a / Cla ss D e sig n
Desig n Mo d el
These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s
type number weight opening mechanism
implemented as a data structure
These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s
Approach, 6/e and are provided with permission by R.S. Pressman & Associates, Inc., copyright © 1996, 2001,
2005
6
过程抽象
open
details of enter algorithm
2005
4
基本概念
抽象——数据、过程、控制 体系结构——软件的整体结构 模式——传递了一个业已验证的设计解决方案的“精髓” 模块化——封装了数据和功能 隐藏——可控制的接口 功能独立——专一功能以及低耦合 重构——是一种简化设计的重组织技巧,不改变代码外部行为而改进其内
部结构,
These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s
对于那些生成代码的人和那些进行测试以及随后维护的 人而言,设计必须是可读的,可理解的指南。
设计必须提供软件的全貌,以实现的角度说明数据域、 功能域和行为域。
These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s