我可以在 UML 类图中写注释吗? [英] Can I write comments in UML Class diagram?

查看:33
本文介绍了我可以在 UML 类图中写注释吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我应该使用什么符号?

推荐答案

以下是统一建模语言规范的摘录.http://www.omg.org/spec/UML/2.3一>.

Below is an extract from the Unified Modeling Language specification. The complete specification is available at http://www.omg.org/spec/UML/2.3.

9.5.1 评论

注释是一种文本注释可以附加到一组元素上.

A comment is a textual annotation that can be attached to a set of elements.

说明

注释可以附加对元素的各种注释.一条评论没有语义力量,但可能包含有用的信息建模师.评论可能归任何元素.

A comment gives the ability to attach various remarks to elements. A comment carries no semantic force, but may contain information that is useful to a modeler. A comment may be owned by any element.

符号

评论显示为一个矩形右上角弯曲(这是也称为音符符号").这矩形包含主体评论.与每个的连接带注释的元素显示为单独的虚线.

A Comment is shown as a rectangle with the upper right corner bent (this is also known as a "note symbol"). The rectangle contains the body of the Comment. The connection to each annotated element is shown by a separate dashed line.

演示选项

连接音符的虚线注释元素可能是抑制,如果它是明确的上下文,或在此不重要示意图.

The dashed line connecting the note to the annotated element(s) may be suppressed if it is clear from the context, or not important in this diagram.

这篇关于我可以在 UML 类图中写注释吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆