添加 Association Class 到 Composition 关系
Add Association Class to Composition relationship
我想知道将 Association Class 添加到 Composition 关系是否正确?
例如(见下图),我可以在[=24]之间的组成关系中添加一个Association Class(即NameValue class) =]名称class和值class?一个 Name 可以有多个 Value 而一个 Value 只能附加到一个 姓名。 NameValue class 存储名称-值对。
我创建关联 class(即 NameValue class)的原因是我需要在 [= 之间创建 associations/relationships 24=]NameValue class 和其他 classes 例如 Class A.
如果是,是否建议将关联class转为正常的class?
非常感谢!
I'd like to know if it is correct to add an Association Class to a Composition relationship?
是的,在关联中-class 关联可以有一个所有者端 属性 作为一个组合,在 formal/2017-12-05 中,§ 11.5 中没有任何内容。 3.2 Association Classes starting page 200 nor in § 11.8.2 AssociationClass [Class] against that even association- class 有一些限制
NameValue class stores the name-value pairs.
请注意,这绝对不是 UML 中关联 class 的 class 的目标,在实现关联 -class[=16 时也不是必需的=]
The reason why I create the association class (i.e. NameValue class) is that I need to create associations/relationships between NameValue class and other classes such as Class A
因为NameValue在实现层使用来存储名称-值对然后实现关联(-class),在UML中你想要的图表是:
(NameValue 在 UML 级别不存在,仅在实现级别存在)
If the answer is yes, is it recommended to turn the association class into a normal class?
在UML层次上,association-class不是白存在的,它们使模型清晰,所以我不建议不要使用class-association(但这当然是意见-based)
我想知道将 Association Class 添加到 Composition 关系是否正确?
例如(见下图),我可以在[=24]之间的组成关系中添加一个Association Class(即NameValue class) =]名称class和值class?一个 Name 可以有多个 Value 而一个 Value 只能附加到一个 姓名。 NameValue class 存储名称-值对。
我创建关联 class(即 NameValue class)的原因是我需要在 [= 之间创建 associations/relationships 24=]NameValue class 和其他 classes 例如 Class A.
如果是,是否建议将关联class转为正常的class?
非常感谢!
I'd like to know if it is correct to add an Association Class to a Composition relationship?
是的,在关联中-class 关联可以有一个所有者端 属性 作为一个组合,在 formal/2017-12-05 中,§ 11.5 中没有任何内容。 3.2 Association Classes starting page 200 nor in § 11.8.2 AssociationClass [Class] against that even association- class 有一些限制
NameValue class stores the name-value pairs.
请注意,这绝对不是 UML 中关联 class 的 class 的目标,在实现关联 -class[=16 时也不是必需的=]
The reason why I create the association class (i.e. NameValue class) is that I need to create associations/relationships between NameValue class and other classes such as Class A
因为NameValue在实现层使用来存储名称-值对然后实现关联(-class),在UML中你想要的图表是:
(NameValue 在 UML 级别不存在,仅在实现级别存在)
If the answer is yes, is it recommended to turn the association class into a normal class?
在UML层次上,association-class不是白存在的,它们使模型清晰,所以我不建议不要使用class-association(但这当然是意见-based)