文档详情

基于面向对象的软件分析与设计一般性步骤-(一).ppt

发布:2018-05-07约1.54万字共48页下载文档
文本预览下载声明
* But before we dive into Model Driven Development, let’s digress a little and start by discussing the very notion of model and modeling. While the term modeling has only gained acceptance in mainstream software development recently, the idea itself is neither new nor unique to software. Modeling is a tradition approach used in engineering. And is as old as engineering itself. As long as there has been something to build, engineers have been building models of them. It is a typical approach used in engineering endeavors to reduce the risk associated with the effort. * But before we dive into Model Driven Development, let’s digress a little and start by discussing the very notion of model and modeling. While the term modeling has only gained acceptance in mainstream software development recently, the idea itself is neither new nor unique to software. Modeling is a tradition approach used in engineering. And is as old as engineering itself. As long as there has been something to build, engineers have been building models of them. It is a typical approach used in engineering endeavors to reduce the risk associated with the effort. -*- 项目说明 6 课程公告系统        说明 在系统中,通知工具可用于向特定课程的学习者发布学习活动安排信息。在发布通知时,教师可附加多种附件,如文档和URL链接。 概念解释 分类: 通知可按照主题、发布者、可访问者或日期进行分类 -*- 项目说明 7 课程计划(活动)管理系统        说明 教师或站点管理者可利用系统来发布日历格式的通知。该日历具有天、星期、月、年和平列四种显示模式。 在使用中,许多教师利用日程表来发布给全班同学的阅读材料 研究组和院系项目组经常会利用日程表发布各种交流安排。 概念解释 活动列表:要想看到一个日程表中全部的活动列表,点击“查看”下拉框后选择其中的“全部活动的列表”。 如何通过领域模型发现类 猜数游戏 输入一个数,如果猜中了显示“你猜中了啊”然后程序结束,如果猜的不对,系统则告诉你的数是太大还是太小,然后要求你重新输入新的数,直到猜中为止。 开始归纳问题 描述出用例的事件流 用例事件流: -系统应该准备一个正确答案 -玩家可以输入一个答案 -系统应该比较玩家输入的答案和正确答案 -系统应该显示玩家每次输入的结果 开始归纳问题 注意把握下面的几个基本要点 第一是不要涉及内部的流程 别出现“如果输入不正确,就怎么怎么样”的句子,这些并不是正确的问题,正确的问题必须是明确的,清晰的,如果可能的话全部按照“什么可以干什么”的格式来写。 第二是不要一开始就进入细节 包涵太多细节的问题将会是一个长长的清单,这种清单根本没什么用。尽量从最高一层分析,但也不要简单到“用户可以玩游戏”这种笼统的问题。 总之一个原则是全面、清晰、明确 要做好问题域分析完全取决于设计师的水平与能力,这就不是可以简单的看看书能达到的了。 获得名词列表 为发现出类提供信息 把问题清单中的名词都提出来,得到一个名词列表,这就是类的来源(不过不忙,这只是初步过程) 名词列表: -系统 -玩家 -正确答案 -答案 -游戏结果 筛选名词 除掉无关
显示全部
相似文档