网站大量收购独家精品文档,联系QQ:2885784924

Chapter 6 considering object.ppt

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

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 将图6.20所示的设计方案进一步与原始需求定义进行对比, 发现的问题及改进措施(得到图6.21): (1). Station Manager类与其他类皆无关联,删除之. (2). 增加新的类Service Station, 以处理对休眠帐户的跟踪. (3). 在每个类中加入操作(方法), 以完成具体的功能. 例如: Bill类需要有一个操作来计算总价,另一个操作来计算 购买税(交易税) Parking Space(停车位)类需要一个操作来指示是否某 个车位可用. (4). 加入基数. (5). 等等问题. * Fig 6.21 Third and final cut at Royal Service Station design * 备注:图6.21所示的并非是真正意义上的最终方案,它只是 本阶段的“最终方案”。应该还要结合其他需求文档或设计 文档,将该设计方案加以综合考虑以图进一步改进,例如: (1). 考虑或兼顾用例图的各种功能,需要进一步调整该类图,使之满足实现用例所示功能的方便性和系统效率等诸多因素要求。(部分非功能性需求) (2). 兼顾包图所示的模块或构件间的依赖性等设计初衷,进一步调整类图中的属性与方法的基本分布。(体现部分系统设计的思想) 6.4 Representing OO Designs in the UML Final Cut at Royal Service Station Design * Chapter 6 Considering Object ? suggestion for using class diagram(使用类图的建议) A: don’t try to use all symbols B: drawing class diagram in a right way at difference stages analysis stage: conceptual class diagram design stage: illustrated class diagram implementation stage: implemental class diagram C: only draw critical diagrams D: consider the model itself when you meet trouble in two ways: X: reality Y: the size of diagram/elements (粒度) * Chapter 6 Considering Object 3. Other UML Diagrams ? class description template (类描述模板) (见6.4.3) A: meaning: lay the groundwork for the program design(类的层次, 操作描述, 各种状态等等) B: private interface: (a mechanism ) C: public interface: (a mechanism ) ? package diagrams: (low coupling) A: meaning: a collection of classes forms a package B: useness: X: show the dependency between packages or classes Y: it is important during testing * Fig 6.22 Package diagram for the Royal Service Station 6.4 Representing OO Designs in the UML Other UML

文档评论(0)

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

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

1亿VIP精品文档

相关文档