如何在 ArgoUML 中显示类/接口是包的接口
假设我有以下用 ArgoUML 表示的包:
我如何强调User
接口是外部客户端已知的包中唯一的组件?目前,我使用注释,但我认为应该有一种更明确的方法。
注意:应该在 ArgoUML 中完成。
Suppose I have the following package represented in ArgoUML:
How could I emphasize that the User
interface is the only component of the package that is known by external clients? For now, I use a note, but I think there should be a way of doing it more explicitly.
Note: it should be done in ArgoUML.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 UML 中,这是通过使用可见性来实现的:将“用户”的可见性设置为“公共”,将其他人的可见性设置为“包”。
然而,ArgoUML (0.32.2) 无法显示元素的可见性(但它可以显示包本身的可见性)。
设置-符号中有一个可见性的选项,但似乎没有效果。
另一种方法是选择性地显示特定图表中的内容。假设你的图表描述了 API;然后,它将仅包含此包中的“User”,以及其他包中的相关公共类和接口。
由于您遇到了该工具的限制,因此无论如何我都会添加一条注释。
In UML, this is achieved using visibility: set the visibility to Public for "User" and to Package for the others.
ArgoUML (0.32.2), however, is unable to display visibility for elements (but it can display the visibility of packages themselves).
There is an option for visibility in Settings - Notations, but it seems to have no effect.
An alternative is to be selective in what you show in a particular diagram. Say your diagram describes the API; it would then only include "User" from this package, along with relevant public classes and interfaces from other packages.
Since you're up against a limitation of the tool, I would include a note in any case.