UML的通用机制(二)



Adornments

Most elements in the UML have a unique and direct graphical notation that provides a visual representation of the most important aspects of the element. For example, the notation for a class is intentionally designed to be easy to draw, because classes are the most common element found in modeling object-oriented systems. The class notation also exposes the most important aspects of a class, namely its name, attributes, and operations.

A classs specification may include other details, such as whether it is abstract or the visibility of its attributes and operations, many of these details can be rendered as graphical or textual adornments to the classs basic rectangular notation. For example, there is a class, adorned to indicate that it is an abstract class with two public, one protected, and one private operation.

Every element in the UMLs notation starts with a basic symbol, to which can be added a variety of adornments specific to that symbol.

 

修饰

UML中大多数的元素都有一个唯一的和直接的图形符号,用来给元素的最重要的方面提供一个可视的表达方式.例如,类的图示是有意地设计为易描绘的图形,因为类是构建面向对象系统的最普通的元素.类符号也揭示出类的最重要的方面,即它的名称,属性和操作.

类的规格说明可能包含其它细节,诸如它是不是抽象类,它的属性和操作的可见性,这些细节中的大多数都可以通过图示或文本修饰在类的基本矩形框符号中表达.例如,这里有一个类,通过修饰符标示出它是一个抽象类,拥有两个公有性的操作,一个保护性的操作和一个私有性的操作.

在UML中的每个元素符号都以一个基本的符号开始,在其上添加一些具有独特性的修饰.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值