欢迎来到三一办公! | 帮助中心 三一办公31ppt.com(应用文档模板下载平台)
三一办公
全部分类
  • 办公文档>
  • PPT模板>
  • 建筑/施工/环境>
  • 毕业设计>
  • 工程图纸>
  • 教育教学>
  • 素材源码>
  • 生活休闲>
  • 临时分类>
  • ImageVerifierCode 换一换
    首页 三一办公 > 资源分类 > PPT文档下载  

    nontrivial非平凡的.ppt

    • 资源ID:6513095       资源大小:369KB        全文页数:37页
    • 资源格式: PPT        下载积分:15金币
    快捷下载 游客一键下载
    会员登录下载
    三方登录下载: 微信开放平台登录 QQ登录  
    下载资源需要15金币
    邮箱/手机:
    温馨提示:
    用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)
    支付方式: 支付宝    微信支付   
    验证码:   换一换

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

    nontrivial非平凡的.ppt

    AUTS,1,Software Engineering:A Practitioners Approach,6/eChapter 11Component-Level Design,AUTS,2,ObjectivesTo introduce component design and to explain its importanceTo introduce different views of component To introduce cohesion and coupling and to explain its importanceTo describe a number of different representation techniques for procedural design and when they may be used,AUTS,3,1.Architecture design to component design2.What is a Component?3.Designing class-based component(Cohesion and Coupling)4.Designing conventional component,AUTS,4,Analysis Model-Design Model,AUTS,5,Componeng-level design defines the data structures,algorithms,interface characteristics,and communications mechanisms allocated to each software component.,Architectural design represents the structure of data and program structure of software.,AUTS,6,1.Architecture design to component design2.What is a Component?3.Designing class-based component(Cohesion and Coupling)4.Designing conventional component,AUTS,7,What is a Component?,OMG 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.”,a nontrivial(非平凡的),nearly independent,and replaceable part of a system that fulfils a clear function in the context of a well defined architecture-Brown和Wallnau,AUTS,8,OO view:a component contains a set of collaborating classesConventional 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.,AUTS,9,OO Component,collect the customers s requirements at the front counter,cost a print job,and then pass the job on to an antomated production facillity,Analysis class,Design component,AUTS,10,OO Component,细化的设计类,AUTS,11,Conventional view,A Conventional component also called module,resides within the software architecture and serves one of three important roles:1)control component 2)domain component 3)infrastructure coponent,AUTS,12,Structure chart for a conventional system,ConventionalComponent,AUTS,13,Conventional Component,细化后的模块,AUTS,14,1.Architecture design to component design2.What is a Component?3.Designing class-based component(Cohesion and Coupling)4.Designing conventional component,AUTS,15,Cohesion(内聚),Conventional view:the“single-mindedness(专诚性)”of a module,OO view:cohesion implies that a component or class encapsulates only attributes and operations that are closely related to one another and to the class or component itself,AUTS,16,OO view,Levels of cohesionFunctional(功能内聚)Layer(分层内聚)Communicational(通信内聚)Sequential(顺序内聚)Procedural(过程内聚)Temporal(暂时内聚)Utility(实用内聚),AUTS,17,Functional(功能内聚)Exhibited primarily by operations,this level of cohesion occurs when a module performs one and only one computation and then returns a result.,AUTS,18,Communicational(通信内聚)All operations that access the same data are defined within one class.In general,such classes focus solely on the data in question,accessing and storing it.,AUTS,19,Sequential(顺序内聚)components or operations are grouped in a manner that allows the first to provide to the next and so on.The in tent is to implement a sequence of operations.,AUTS,20,It is important to note,however,that pragmatic design and implementation issues sometimes force a designer to opt for lower levels of cohesion.,AUTS,21,Coupling(藕合),Conventional view:The degree to which a component is connected to other components and to the external worldOO view:a qualitative measure of the degree to which classes are connected to one another,AUTS,22,OO view,Level of couplingContent(内容藕合)Common(公共藕合)Control(控制藕合)Stamp(印记藕合)Data(数据藕合)Routine call(例程调用藕合)Type use(类型使用藕合)Inclusion or import(包含和导入藕合)External(外部藕合),AUTS,23,Content(内容藕合)Occurs when one component“”surreptitiously”modifies data that is internal to another component.,AUTS,24,Common(公共藕合)Occurs when a number of components all make use of a global variable.,AUTS,25,Control(控制藕合)Occurs when operation A()invoke operation B()and passes a control flag to B,这种耦合的实质是在单一接口上选择多功能模块中的某项功能。,AUTS,26,Stamp(印记藕合)Occurs when class B is declared as a type for an argument of an operation of class A.,AUTS,27,Data(数据藕合)Occurs when operations pass long string of data argument,AUTS,28,Software must communicate internally and externally,Therefore,coupling is a fact of life.However,the designer should work to reduce coupling whenever possible and understand the ramifications of high coupling when it can not be avoided.,AUTS,29,1.Architecture design to component design2.What is a Component?3.Designing class-based component(Cohesion and Coupling)4.Designing conventional component,AUTS,30,A Structured Procedural Design,AUTS,31,流程图的基本控制结构,AUTS,32,AUTS,33,Decision Table判定表,AUTS,34,Program Design Language(PDL)PDL,PROCEDURE spellcheck IS 查找错拼的单词 BEGIN split document into single words 把整个文档分离成单词 lood up words in dictionary 在字典中查这些单词 display words which are not in dictionary显示字典中查不到的单词 create a new dictionary 造一新字典 END spellcheck,AUTS,35,Program Design Language(PDL),AUTS,36,Summary,The component level design action encompasses a sequence of tasks that slowly reduce the level of abstraction with software is represented.Different views of a“component”are introduced.Guidelines for the design of object-oriented and traditional(conventional)program components are presented.Elements of the structured programming and a number of representation techniques for procedural design are reviewed,AUTS,37,Homework(HW8),1.How does the object-oriented view of component-level design differ from the conventional view?2如何理解模块独立性?用什么指标来衡量模块独立性?,

    注意事项

    本文(nontrivial非平凡的.ppt)为本站会员(小飞机)主动上传,三一办公仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知三一办公(点击联系客服),我们立即给予删除!

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




    备案号:宁ICP备20000045号-2

    经营许可证:宁B2-20210002

    宁公网安备 64010402000987号

    三一办公
    收起
    展开