UML关联意义
UML Association meaning
我不明白关联箭头是什么意思。 https://en.wikipedia.org/wiki/Association_(object-oriented_programming)。这是否意味着 Class1 使用了 Class2 的某些东西?
箭头表示可导航性并符合 UML 2.5 规范。
Navigability means that instances participating in links at runtime (instances of an Association) can be accessed efficiently from instances at the other ends of the Association
因此在下图中 Class 的实例可以访问 Class3 的实例。
这取决于您使用的 UML 版本。在 UML 2.5 中,它是可导航性,使用不同的符号(“点”)指示最终所有权(即 class 拥有关系——例如,具有引用属性)。在 UML 1 中,它表示导航性和最终所有权的组合。
https://www.omg.org/ocup-2/documents/getting_it_right_on_the_dot.pdf
我不明白关联箭头是什么意思。 https://en.wikipedia.org/wiki/Association_(object-oriented_programming)。这是否意味着 Class1 使用了 Class2 的某些东西?
箭头表示可导航性并符合 UML 2.5 规范。
Navigability means that instances participating in links at runtime (instances of an Association) can be accessed efficiently from instances at the other ends of the Association
因此在下图中 Class 的实例可以访问 Class3 的实例。
这取决于您使用的 UML 版本。在 UML 2.5 中,它是可导航性,使用不同的符号(“点”)指示最终所有权(即 class 拥有关系——例如,具有引用属性)。在 UML 1 中,它表示导航性和最终所有权的组合。
https://www.omg.org/ocup-2/documents/getting_it_right_on_the_dot.pdf