UML基本架构建模--关联的术语和概念(三).doc_第1页
UML基本架构建模--关联的术语和概念(三).doc_第2页
UML基本架构建模--关联的术语和概念(三).doc_第3页
UML基本架构建模--关联的术语和概念(三).doc_第4页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

Other Features其它特征Plain, unadorned dependencies, generalizations, and associations with names, multiplicities, and roles are the most common features youll need when creating abstractions. In fact, for most of the models you build, the basic form of these three relationships will be all you need to convey the most important semantics of your relationships. Sometimes, however, youll need to visualize or specify other features, such as composite aggregation, navigation, discriminants, association classes, and special kinds of dependencies and generalizations.these and many other features can be expressed in the UML, but they are treated as advanced concepts.朴实无华,未经修饰的依赖关系,泛化关系和带有名称,多态性和角色的联合关系是你在创建抽象事物时所需的最普通的特性事实上,你构建的大多数模型,这三个关系的基本形式将是你传达已有关系的最重要语义然而,有时你需要可视化或是描述其它的特性,如复合聚合,导航,判断,关联类和特殊类别的依赖和泛化关系这些和许多其它特性可以在UML中被表达出来,但是它们属于更深层的概念Dependencies, generalizations, and associations are all static things defined at the level of classes. In the UML, these relationships are usually visualized in class diagrams.依赖,泛化和联合都是在类层面上定义静态事物在UML中,这些关系通常被画在类图中When you start modeling at the object level, and especially when you start working with dynamic collaborations of these objects, youll encounter links, which are instances of associations representing connections among objects across which messages may be sent.当你开始在对象层建模时尤其是当你开始工作在这些对象之间的动态交互时,你会遇到很多联系,它们是关联的实例,表现的是对象之间的连接,这种连接可能是消息的发送Drawing Styles绘画风格Relationships are shown in diagrams by lines from one icon to another. The lines have various adornments, such as arrowheads or diamonds, to distinguish different kinds of relationships. Typically, modelers choose one of two styles for drawing lines:1. Oblique lines at any angle. Use one line segment unless multiple segments are needed to avoid other icons.2. Rectilinear lines drawn parallel to the sides of the page. Unless a lines connects two icons that align, the line must be drawn as a series of line segments connected by right angles. This is the style mostly used in this book.关系在图中被显示为从一个图标到另一个图标的直线这些线有多种修饰,如箭头或是菱形,以区分不同类别的关系最典型地,建模选择两种风格的画线:. 任何角度的斜线除非为了避开其它图标而使用多个线段,否则使用一个线段. 直线的绘制平行于页面的两侧除非一个线条连接的是两个排列整齐的图标,否则这个线条就画成直角相连的一系列线段在这本书里这种格式是最常用的With care, most line crossings can be avoided. If a line crossing is necessary and there is ambiguity about how the paths are con

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论