欢迎来到第壹文秘! | 帮助中心 分享价值,成长自我!
第壹文秘
全部分类
  • 幼儿/小学教育>
  • 中学教育>
  • 高等教育>
  • 研究生考试>
  • 外语学习>
  • 资格/认证考试>
  • 论文>
  • IT计算机>
  • 法律/法学>
  • 建筑/环境>
  • 通信/电子>
  • 医学/心理学>
  • ImageVerifierCode 换一换
    首页 第壹文秘 > 资源分类 > PPT文档下载
    分享到微信 分享到微博 分享到QQ空间

    软件工程实践者的研究方法chapter09cn构件设计.ppt

    • 资源ID:495773       资源大小:481.50KB        全文页数:14页
    • 资源格式: PPT        下载积分:10金币
    快捷下载 游客一键下载
    账号登录下载
    三方登录下载: 微信开放平台登录 QQ登录
    下载资源需要10金币
    邮箱/手机:
    温馨提示:
    快捷下载时,如果您不填写信息,系统将为您自动创建临时账号,适用于临时下载。
    如果您填写信息,用户名和密码都是您填写的【邮箱或者手机号】(系统自动生成),方便查询和重复下载。
    如填写123,账号就是123,密码也是123。
    支付方式: 支付宝    微信支付   
    验证码:   换一换

    加入VIP,免费下载
     
    账号:
    密码:
    验证码:   换一换
      忘记密码?
        
    友情提示
    2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
    3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
    4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
    5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。

    软件工程实践者的研究方法chapter09cn构件设计.ppt

    These slides are designed to accompany Software Engineering:A Practitioners Approach,7/e(McGraw-Hill,2009).Slides copyright 2009 by Roger Pressman.1第九章n构件级设计构件级设计Slide Set to accompanySoftware Engineering:A Practitioners Approach,7/e by Roger S.PressmanSlides copyright 1996,2001,2005,2009 by Roger S.PressmanFor non-profit educational use onlyMay be reproduced ONLY for student use at the university level when used in conjunction with Software Engineering:A Practitioners Approach,7/e.Any other reproduction or use is prohibited without the express written permission of the author.All copyright information MUST appear if these slides are posted on a website for student use.什么是构件?nOMG Unified Modeling Language Specification OMG01 defines a component as n“a modular,deployable,and replaceable part of a system that encapsulates implementation and exposes a set of interfaces.”nOO view:a component contains a set of collaborating classesnConventional view:logic,the internal data structures that are required to implement the processing logic,and an interface that enables the component to be invoked and data to be passed to it.These courseware materials are to be used in conjunction with Software Engineering:A Practitioners Approach,6/e and are provided with permission by R.S.Pressman&Associates,Inc.,copyright 1996,2001,20052什么是构件?n构件是计算机软件中的一个模块化的构造块。nOMG UML规范对构件的定义:系统中模块化的、可配置的和可替换的部件,该部件封装了实现并暴露了一组接口。nOMG Unified Modeling Language Specification OMG01 defines a component as“a modular,deployable,and replaceable part of a system that encapsulates implementation and exposes a set of interfaces.”These courseware materials are to be used in conjunction with Software Engineering:A Practitioners Approach,6/e and are provided with permission by R.S.Pressman&Associates,Inc.,copyright 1996,2001,20053什么是构件?n在面向对象软件工程环境中,构件包括一组协作的类(有时,一个构件只包含一个单独的类)。nOO view:a component contains a set of collaborating classes。These courseware materials are to be used in conjunction with Software Engineering:A Practitioners Approach,6/e and are provided with permission by R.S.Pressman&Associates,Inc.,copyright 1996,2001,20054什么是构件?n与面向对象的构件相似,传统的软件构件也来自分析模型。不同的是,传统的软件构件是以分析模型中的数据流要素作为导出构件的基础。These courseware materials are to be used in conjunction with Software Engineering:A Practitioners Approach,6/e and are provided with permission by R.S.Pressman&Associates,Inc.,copyright 1996,2001,20055面向对象构件These courseware materials are to be used in conjunction with Software Engineering:A Practitioners Approach,6/e and are provided with permission by R.S.Pressman&Associates,Inc.,copyright 1996,2001,20056PrintJobcom puteJobinitiateJobnum berO fPages num berO fSi des paperType paperW ei ght paperSi ze paperC ol or m agni fi cati on col orRequi rem ents producti onFeatures col l ati onO pti ons bi ndi ngO pti ons coverStock bl eed pri ori ty total JobC ost W O num ber Pri ntJobcom putePageC ost()com putePaperC ost()com puteProdC ost()com puteTotal JobC ost()bui l dW orkO rder()checkPri ori ty()passJobto Producti on()el aborated desi gn cl ass co m p u teJo bcom putePageC ost()com putePaperC ost()com puteProdC ost()com puteTotal JobC ost()i n i ti ateJo bbui l dW orkO rder()checkPri ori ty()passJobto Producti on()design com ponentnum berO fPages num berO fSides paperType m agnification productionFeaturesPrintJobcom puteJobCost()passJobtoPrinter()analysis class基本设计原则n开关原则/The Open-Closed Principle(OCP).“A module component should be open for extension but closed for modification.nLiskov替换原则/The Liskov Substitution Principle(LSP).“Subclasses should be substitutable for their base classes.n依赖倒置原则/Dependency Inversion Principle(DIP).“Depend on abstractions.Do not depend on concretions.”n接口分离原则/The Interface Segregation Principle(ISP).“Many client-specific interfaces are better than one general purpose interface.n重用-发布等价原则/The Release Reuse Equivalency Principle(REP).“The granule of reuse is the granule of release.”n 公共闭合原则/The Common Closure Principle(CCP).“Classes that change together belong together.”n全部重用原则/The Common Reuse Principle(CRP).“Classes that arent reused together should not be grouped together.”These courseware materials are to be used in conjunction with Software Engineering:A Practitioners Approach,6/e and are provided with permission by R.S.Pressman&Associates,Inc.,copyright 1996,2001,20057OCP 原则n模块应该对外延具有开放性,对修改具有封闭性。n参看例子。Sensor.docxThese courseware materials are to be used in conjunction with Software Engineering:A Practitioners Approach,6/e and are provided with permission by R.S.Pressman&Associates,Inc.,copyright 1996,2001,20058DIP原则n依赖于抽象,而非具体实现。ndip.docxThese courseware materials are to be used in conjunction with Software Engineering:A Practitioners Approach,6/e and are provided with permission by R.S.Pressman&Associates,Inc.,copyright 1996,2001,20059组件级别设计nP179。These courseware materials are to be used in conjunction with Software Engineering:A Practitioners Approach,6/e and are provided with permission by R.S.Pressman&Associates,Inc.,copy

    注意事项

    本文(软件工程实践者的研究方法chapter09cn构件设计.ppt)为本站会员(p**)主动上传,第壹文秘仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知第壹文秘(点击联系客服),我们立即给予删除!

    温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。




    关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

    copyright@ 2008-2023 1wenmi网站版权所有

    经营许可证编号:宁ICP备2022001189号-1

    本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。第壹文秘仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知第壹文秘网,我们立即给予删除!

    收起
    展开