"is unique" Eclipse UML 代表什么?
What does "is unique" Eclipse UML stand for?
我实际上是在 eclipse 上设计 UML,我只是在变量模型属性上遇到一个 "is Unique" 复选框。这是什么意思?同一个 class 中的每个变量不应该是唯一的?
我将简单地参考 p.1 上的 UML 规范。这里有 34 个:
If the MultiplicityElement is specified as unique (i.e., isUnique is true), then the collection of values in an instantiation of this Element must be unique. That is, no two values in the collection may be equal, where equality of objects (instances of Classes) is based on object identity while equality of data values (instances of DataTypes) and Signal instances is based on value (see also sub clauses 10.2, 10.3, and 11.4 on DataTypes, Signals and Classes, respectively ). If a MultiplicityElement is not multivalued, then the value for isUnique has no semantic effect.
Taken together, the isOrdered and isUnique properties can be used to specify that the collection of values in an instantiation of a MultiplicityElement is of one of four types. Table 7.1shows the traditional names given to each of these collection types.
我实际上是在 eclipse 上设计 UML,我只是在变量模型属性上遇到一个 "is Unique" 复选框。这是什么意思?同一个 class 中的每个变量不应该是唯一的?
我将简单地参考 p.1 上的 UML 规范。这里有 34 个:
If the MultiplicityElement is specified as unique (i.e., isUnique is true), then the collection of values in an instantiation of this Element must be unique. That is, no two values in the collection may be equal, where equality of objects (instances of Classes) is based on object identity while equality of data values (instances of DataTypes) and Signal instances is based on value (see also sub clauses 10.2, 10.3, and 11.4 on DataTypes, Signals and Classes, respectively ). If a MultiplicityElement is not multivalued, then the value for isUnique has no semantic effect.
Taken together, the isOrdered and isUnique properties can be used to specify that the collection of values in an instantiation of a MultiplicityElement is of one of four types. Table 7.1shows the traditional names given to each of these collection types.