UML_Lec04_公共机制_图.pptVIP

  • 16
  • 0
  • 约 49页
  • 2016-11-24 发布于浙江
  • 举报
* UML Lecture, Author: NK Jiang */49 CH7 图 术语(复习) Domain 领域 指要解决的问题在现实中所处的位置、关系等 System 系统 由 为完成一定目的而组织起来的子系统组成, 由通过不同视点(view) 得到的模型集来描述 Subsystem 子系统, 是一组元素的集合,代表了系统的一个部分,它有清晰的接口,这个接口可作为一个单独的构件来实现 Model 模型,表示对现实的完整而又自我一致的简化,可以更好地理解系统。 View 视图,是对系统模型的组织和结构的投影,注重于系统的一个方面 Diagram 图 一组元素的图形表示 通常表示成由顶点(事物)和弧(关系)组成的连通图 利用图可以从不同的角度(视图)来观察、可视化系统 每个元素可以出现在一个图中,也可以同时出现在多个或所有的图中 * UML Lecture, Author: NK Jiang */49 Ch 7.1 图的分类[text book] 用于观察系统静态部分的图,6个,又称为结构图 Class diagram 类图 Classes, interfaces, and collaborations Object diagram 对象图 Objects Component diagram 构件图 Components Deployment diagram 部署图 Nodes Composite structure diagram 组合结构图 Internal structure Artifact diagram 制品图 Artifacts 蓝色标示的图是基本内容,要熟练掌握! * UML Lecture, Author: NK Jiang */49 用于观察系统动态部分的图,5个,又称为行为图 Use case diagram 用例图 Organizes the behaviors of the system Sequence diagram 顺序图 Focuses on the time ordering of messages Communication diagram 通信图(旧版称协作图) Focuses on the structural organization of objects that send and receive messages State diagram 状态图 Focuses on the changing state of a system driven by events Activity diagram 活动图 Focuses on the flow of control from activity to activity * UML Lecture, Author: NK Jiang */49 图的解释 A class diagram shows a set of classes, interfaces, and collaborations and their relationships * UML Lecture, Author: NK Jiang */49 name : String description : String name : String email : String homePage : String * CourseModule name : String description : String 1..* Student StudentCourseProfile finished : boolean Course 1 * Person 1 * tech. responsible for 1 1 * * 1 * responsible for When a student register for course a StudentCourseProfile object will be made! * UML Lecture, Author: NK Jiang */49 A Class Diagram - Mapping to Java name : String description : String name : String imail : String homePage : String Student Course 1 * responsible for Person 1 * tech. responsible for 1 1 StudentCourseProfile finished : boolean

文档评论(0)

1亿VIP精品文档

相关文档