- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
* * * * * * 1-* Lecture Notes on Object-Oriented Technology (Programming Design) (Fall 2015) 第一讲 面向对象分析和设计 目标: 面向对象程序的构造过程 ★★ 分析和设计 面向对象的分析和设计 面向对象的构造过程 程序举例 * Problem: What is Analysis and Design? Analysis 强调对问题的调查,而不是确定解决方案。 “Do the right thing” Design强调的是系统的逻辑解决方案,即系统如何才能满足需求: 忽略详细的实现细节. 设计最终可以由硬件和软件实现。 “Do the thing right” 1.1 分析和设计 * Problem: What is Object-Oriented Analysis and Design? 精髓是用对象(things, concepts, or entities) 的观点考虑问题域和逻辑解决方案。 OOA: 重点在于发现和描述问题域中的对象和概念. OOD: 重点在于定义逻辑软件对象,以及对象如何协作实现需求. OO Programming: commitment to code. 1.2 面向对象分析和设计 * 面向对象程序设计是一个建模过程 建模 实体概念 类 抽象 具体 现 象 对 象 模拟 参照系统 程 序 问题空间(Problem Space) 解空间(Solution Space) * Example: An Example of Object-Oriented Analysis and Design A dice game: a player rolls two dice, if the total is seven he/she wins; otherwise he/she loses. 1.3 面向对象程序的构造过程 * 1 Defining Use Cases Understanding the requirements includes understanding the domain processes and the external environment (external actors who participate in processes). Use Case: Play a Game Actors: Player Description: Player requests to roll the dice. System presents results. If the dice face value totals seven, player wins; otherwise player loses. * 2 Defining a Domain Model A decomposition of the problem domain involves an identification of the concepts, attributes and associations in the domain that are considered important. * Example of a conceptual model Fig : The conceptual model is not a description of software components; it represents concepts in the real-world problem domain. Fig Partial domain model of the dice game. * 3 Defining Interaction Diagrams An essential step in OOD is the allocation of responsibilities to objects and illustrating how they interact via messages, expressed in sequence diagrams. Sequence diagrams show the flow of messages between instances and the invocation of methods. E.g. a simulation in
您可能关注的文档
- 【名师导学】第一讲:旅游活动与旅游资源.ppt
- 【名师一号】高中语文人教版必修3双基限时练2祝福].doc
- 【全程复习方略】2015年高考物理二轮专题辅导与训练课件:1.1 力与物体的平衡.ppt
- 【全品精品课件2】9.3大气压强.pptx
- 【软件】广联达GCL2008学习资料详细教程.ppt
- 【三年高考两年模拟】2016届高三物理一轮复习(浙江专用课件)第六章静电场本章小结.ppt
- 【三维设计】2016届高三物理一轮复习:实验五 探究动能定理.ppt
- 【生物】高中生物 1.1 孟德尔的豌豆杂交实验(一) 课件2(人教版必修2).ppt
- 【世纪金榜】2016版高中物理 5.2平抛运动(精讲优练课型)课件 新人教版必修2.ppt
- 【湘教版】15版中考总复习地理课件:第十一单元 中国的主要产业.ppt
原创力文档


文档评论(0)