java 在 UML 中用实线打开箭头?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/27660499/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Open arrow with solid line in UML?
提问by SectorCodec
In UML, what does an open arrow with a solid line show? Does it show Association (where the class with the tail knows about the class with the arrow head, while the arrow head class does not know about the tail class)?
在 UML 中,带有实线的空心箭头表示什么?它是否显示关联(带尾的类知道带箭头的类,而带箭头的类不知道带尾的类)?
回答by aioobe
Not sure how you define "open arrow", but it's either represents an extendsrelation or an association.
不确定您如何定义“开放箭头”,但它表示扩展关系或关联。
Here's a good reference image from Ivencia.com.
这是来自Ivencia.com的一个很好的参考图片。
回答by SMA
It's basically an association where a unidirectional relation exists between the two class. For e.g.
它基本上是一个关联,其中两个类之间存在单向关系。例如
The OverdrawnAccountsReport class knows about the BankAccount class, but the BankAccount class does not know about the association
OverdrawnAccountsReport 类知道 BankAccount 类,但 BankAccount 类不知道关联
OverdrawnAccountsReport -> BankAccount
Like standard associations, the uni-directional association includes a role name and a multiplicity value, but unlike the standard bi-directional association, the uni-directional association only contains the role name and multiplicity value for the known class.
与标准关联一样,单向关联包括角色名称和多重值,但与标准双向关联不同的是,单向关联仅包含已知类的角色名称和多重值。
If you see close or triangle shape arrow between two class, then that represents parent - child relation.
如果您在两个类之间看到接近或三角形的箭头,则表示父子关系。