- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
软件工程(美国加州大学)4
ICS 52Introduction to Software Engineering Lecture Notes for Spring Quarter, 2004 André van der Hoek Lecture 5-1 Copyright ?2004, André van der Hoek Duplication of course material for any commercial purpose without the written permission of the lecturer is prohibited. Today’s Lecture USES relation IS-COMPOSED-OF relation COMPRISES diagram USES diagram In Design, We Can Do Anything… …Even when Restricted by Style Fan-in and Fan-out USES Relation Definition Level 0: those modules that do not use any other modules Level i: those modules that use at least one module at level i – 1 and use no modules at level i or greater Use Determine flexibility Determine reuse Determine incremental testability Example Observations The USES relation does not necessarily form a hierarchy An acyclic directed graph is good Cycles generally are bad Indication of high coupling Indication of broken separation of concerns Rules of thumb: allow a to use b… …if it makes a simpler …if b is not only used by a but also by other components Observations Some invocations are not USES Consider a transfer of control Consider a scheduler inside a program Some USES do not involve invocations Consider interrupt handlers Consider global variables Consider a blackboard IS-COMPONENT-OF Relation Definition Module Mi IS-COMPONENT-OF module M if M is realized by aggregating several modules, one of which is Mi The combined set of all modules that exhibit the IS-COMPONENT-OF relation with respect to module M are said to implement module M Use Determine hierarchical decomposition of a component in its subcomponents Abstract details Example Comprises Diagram USES Diagram – Step 1 USES Diagram – Step 2 USES Diagram – Step 3 USES Diagram – Step 4 Observations Why do we identify higher-level modules in the first place? Understanding Abstraction through composition IS-COMPONENT-OF is not is-attribute-of is-inside-of-on-the-screen is-subclass-of is-accessed-through-the-menu-of The Design Pro
您可能关注的文档
最近下载
- 2025年上海市高中物理学业水平合格考试卷试题(含答案详解).docx
- 标准图集-20S515-钢筋混凝土及砖砌排水检查井.pdf VIP
- 七年级上册数学第三章整式的加减知识点梳理与题型精讲(含解析).docx VIP
- GB51164-2016 钢铁企业煤气储存和输配系统施工及质量验收规范.docx VIP
- y系列电机介绍.docx VIP
- 中国重症肌无力诊断和治疗指南2025版解读.pptx
- 2025年铁岭卫生职业学院单招笔试职业能力测验试题库含答案解析(5套卷).docx VIP
- 《中国缺血性卒中和短暂性脑缺血发作二级预防指南2022》解读.pptx
- 2025年纪委监委专项遴选笔试模拟题及答案.doc VIP
- 工程力学 课件 1.2约束和约束反力.ppt
原创力文档


文档评论(0)