- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
回顾第5章中的设计原理。 软件设计模型如同建筑师的房屋设计方案。由描述所要建造的东西(如建立房屋结构的三维透视图)开始,然后逐渐进行细化,为每个构建详图(如管线分布图)提供指导。 类似,软件设计模型为系统提供各式各样的视图。 软件设计方法有多种:数据驱动的、模式驱动的、面向对象的。都使用同一套设计原则: 设计可以追溯到分析模型。 经常关注待建系统的架构。软件架构是系统的骨架。设计应从架构开始,然后才考虑构件级设计。 数据设计和功能设计同等重要。数据设计是架构设计的基本要素。 必须设计接口(包括内部接口和外部接口)。要的接口设计让集成变得简单,并能辅助测试人员进行构件功能测试。 用户界面设计必须符合最终用户要求。界面设计强调使用方便性。用户界面是软件中可见的部分,不好的界面设计使整个软件变得很糟糕。 软件设计方法有多种:数据驱动的、模式驱动的、面向对象的。都使用同一套设计原则: 功能独立的构件级设计。构件提供的功能是内聚的。 构件之间以及构件与外部环境之间松散耦合。耦合可以通过多种方式实现:构件接口、消息传递、全局数据。耦合度高则发生错误的概率高,软件可维护性低。 设计模型应尽可能易于理解。让别人知道你做的是什么。 设计应该迭代进行。每次迭代,设计者都应该尽力简化。 Principles Design must be traceable to the analysis model Always consider architecture Focus on the design of data Interfaces (both user and internal) must be designed Components should exhibit functional independence Components should be loosely coupled Design representation should be easily understood The design model should be developed iteratively Elements of the design model Data design Architectural design Component design Interface design 设计过程是迭代过程,从高抽象层次到低抽象层次。 良好设计演化的特征: 设计必须实现所有包含在分析模型中的明确要求,而且必须满足客户期望的所有隐含需求。 对于那些生成代码的人和那些进行测试以及随后维护软件的人而言,设计必须是可读的、可理解的指南。 设计必须提供软觉得全貌,从实现的角度说明数据域、功能域和行为域。 the design must implement all of the explicit requirements contained in the analysis model, and it must accommodate all of the implicit requirements desired by the customer. the design must be a readable, understandable guide for those who generate code and for those who test and subsequently support the software. the design should provide a complete picture of the software, addressing the data, functional, and behavioral domains from an implementation perspective. 设计原则: 设计应具有以下特征的结构:①使用已知的体系结构模式创建;②能以演化的方式实现,便于实现、测试。 设计应模块化。 设计要导出数据结构,数据结构要适于待实现的类。 设计应导出具有独立功能的构件。 设计应导出接口,接口降低构件之间以及与外部环境连接的复杂性。 设计的导出应根据需求工程得到的信息进行。 应使用能有效表达意思的表示法来表达设计。 Quality Guidelines A design should exhibit an architecture that (1) has been created using recognizable architectural styles or patterns, (2) is composed of components that exhibit good design charact
原创力文档


文档评论(0)