软件工程(美国加州大学)4.ppt

  1. 1、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
软件工程(美国加州大学)4

ICS 52 Introduction 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

文档评论(0)

ctuorn0371 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档