Because the purpose of this series is to educate people about the notation elements and their meanings, this article focuses mainly on the class diagram.
由于本系列文章的目的是使人们了解记号元素及它们的含意,该文主要关注类图。
An object diagram looks similar to the class diagram, because the notation of the relationships is the same.
对象图类似于类图,因为关系的标记是一样的。
The notation of an instance is the same as a class, but instead of the top compartment merely having the class's name, the name is an underlined concatenation of
实例的记号和类一样,但是取代顶端区域中仅有的类名,它的名字是经过拼接的
However, the class diagram offers a prime example of the structure diagram type, and provides us with an initial set of notation elements that all other structure diagrams use.
然而,类图提供结构图类型的一个主要实例,并为我们提供一组记号元素的初始集,供所有其它结构图使用。
And because the class diagram is so foundational, the remainder of this article will focus on the class diagram's notation set.
由于类图是如此基本,本文的剩余部分将会把重点集中在类图记号集。
Like the attributes, the operations of a class are displayed in a list format, with each operation on its own line. Operations are documented using the following notation.
和属性一样,类的操作以列表格式显示,每个操作在它自己线上。
Class instantiation USES function notation. Just pretend that the class object is a parameterless function that returns a new instance of the class. For example (assuming the above class).
类的实例化使用函数符号。只要将类对象看作是一个返回新的类实例的无参数函数即可。例如(假设沿用前面的类)。
Class instantiation USES function notation. Just pretend that the class object is a parameterless function that returns a new instance of the class. For example (assuming the above class).
类的实例化使用函数符号。只要将类对象看作是一个返回新的类实例的无参数函数即可。例如(假设沿用前面的类)。
应用推荐