Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设我在 ArgoUML 中有以下包:
我怎么能强调User接口是外部客户端知道的包的唯一组件?现在,我使用注释,但我认为应该有一种更明确的方法。
User
注意:应该在 ArgoUML 中完成。
在 UML 中,这是使用可见性来实现的:将“用户”的可见性设置为 Public,其他的设置为 Package。
然而,ArgoUML (0.32.2) 无法显示元素的可见性(但它可以显示包本身的可见性)。设置 - 符号中有一个可见性选项,但它似乎没有效果。
另一种方法是在特定图表中显示的内容中有所选择。假设您的图表描述了 API;然后它将仅包含此包中的“用户”,以及其他包中的相关公共类和接口。
由于您遇到了该工具的限制,因此无论如何我都会附上一个注释。