“缩小”结构图
我在 UML 和建模方面完全是菜鸟。我正在学习一些框架,并试图掌握并概述其关键方面。我决定用 UML 来做这件事。但问题是,框架的整个结构图对我来说没有任何用处,因为类有很多属性和方法,而且有很多类。
我需要的是一系列结构图,每个结构图都显示了框架的某些特定方面。所涉及的类应该仅显示那些对此特定方面具有一定价值的属性/操作。
UML(作为标准)是否在某种程度上支持这一点,是否有一些工具可以做到这一点?我尝试过 Visio 2007 和 Enterprise Architect,但没有找到完成我需要的操作的方法。
提前致谢。
I'm a total rookie in UML and modelling. I'm learning some framework, and I'm trying to grasp and outline its key aspects. I've decided to do it with UML. But the problem is, the whole structural diagram of the framework is of no use to me, because classes have a lot of properties and methods, and there's a lot of classes.
What I need is a series of structural diagrams, each of which shows some specific aspect of the framework. And the classes involved should display only those attributes/operations that are of certain value to this specific aspect.
Does UML (as a standard) supports this on some level, and is there some tool that allows to do just that? I've tried Visio 2007 and Enterprise Architect, but I didn't found out the way to do what I need.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您正在寻找的似乎能够自定义模型的视图,而不是可视化完整的类图。这个概念是由 Omondo 开发的,它通过拖放提供可定制的模型视图。您可以根据需要创建任意多个视图,每个视图都可以与其他视图不同,而仅使用相同的模型元素。这也是我的元建模方法,其中模型不是图表,而是构建图形模型的元模型。
如果您不需要属性/方法,那么您可以尝试直接单击属性和方法并按住 ctrl 按钮,然后您应该能够在类图中找到一个菜单来隐藏它们。传统的菜单是从图表中隐藏。
这就是我所做的,而且效果非常好。
您也可以直接单击属性和方法,但我没有看到有关此主题的任何文档。似乎除了开发人员和我自己之外没有人知道这个选项,但这是我最喜欢的一个:-)
What your are looking for seems to be able to customize views of your model and not to visualize the full class diagram. This concept is developed by Omondo which provides customizable views of your model by drag and drop. You can create as many views as needed, each could be different from the others while just using the same model element. This also the metamodeling approach for me where the model is not the diagram but the metamodel on which your build your graphical model.
If you don't need attributes/methods then you can try to click directly on attributes and methods keeping the ctrl button pressed, then you should be able to find a menu in the class diagram to hide them. The traditional menu is Hide from diagram.
This is what I do and it works really well.
You can also just click directly on attributes and methods but I don't see any documentation on this subject. It seems that nobody knows except the developer and myself about this option but this is my favorite one :-)