简体   繁体   English

没有链接的类图

[英]Class Diagram with no Link

After downloading a repository of a java software ( http://sourceforge.net/projects/gcs-java/ ) I used Enterprise Architect in order to create some class diagrams for me, example: 在下载Java软件的存储库( http://sourceforge.net/projects/gcs-java/ )之后,我使用Enterprise Architect来为我创建一些类图,例如:

在此处输入图片说明

From another question I posted, my understanding is that each arrow shows a 'has' relationship, which basically shows how objects can hold instances of other objects. 从我发布的另一个问题中,我的理解是每个箭头都显示一个“具有”关系,该关系基本上显示了对象如何保存其他对象的实例。 However, what about these objects that have no links to others? 但是,这些没有其他链接的对象呢? All these objects inside the class diagram are part of the same class, so does the fact that there are no links just simply mean that they handle a method that is isolated and does not effect any of the other objects? 类图中的所有这些对象都是同一类的一部分,那么没有链接的事实是否仅表示它们处理的是孤立的方法并且不会影响其他任何对象?

The arrow represent association . 箭头表示关联 To implement has relationship (aggregation), you use diamond in the owner side. 要实现具有关系(聚合),请在所有者端使用菱形。 That standalone class do not have line because you do not have other classes that are associated to them. 该独立类没有一行,因为您没有与之关联的其他类。 Ex: ScrollToSelection class use Outline class but you don't have Outline class in your diagram. 例如: ScrollToSelection类使用Outline类,但是图中没有Outline类。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM