你是建模还是绘图?在 uml [英] Are you modeling or drawing? in uml

查看:39
本文介绍了你是建模还是绘图?在 uml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要帮助来理解 uml 世界中的这两种方法.我是一个刚接触 uml 的程序员.我最近才开始学习 uml,但一直被问到这个短语.- 你是建模还是绘图?.需要用清晰的例子来解释.这个链接只是暗示了一点,但我仍然很困惑——http://modeling-languages.com/drawing-tools-vs-modeling-tools/

Please I need help in understanding this two approaches in the uml world. I am a programmer who is new to uml. I just started learning uml lately but kept getting this phrase asked all the time. - Are you modelling or drawing?. An explanation is needed with clear examples. This link hinted just a little but I am stil confused -- http://modeling-languages.com/drawing-tools-vs-modeling-tools/

推荐答案

UML 是一种建模语言,它具有图形符号.OMG 的 UML 2.5 标准以及国际标准对其语义进行了精确规定ISO 19505-1:2012 和 19505-2:2012(虽然后者对应于 UML 2.4.1).

UML is a modeling language, which has a graphical notation. Its semantic is precisely specified by UML 2.5 standard of the OMG and also the international standards ISO 19505-1:2012 and 19505-2:2012 (although the latter corresponds to UML 2.4.1).

UML 图表有两种不同的方法.它受您使用的工具的影响很大:

THere are two different approaches to UML diagramming. And it's heavily influenced by the tools you use:

  • 绘图工具通常提供用于绘图的 UML 形状.但是这些形状背后没有更深的含义.这只是图片.这些工具将允许您将用例与部署图中的类或参与者混合.优点是可以为所欲为.不便之处在于您想要的可能不合规.

  • Drawing tools generally offer UML shapes to be used in drawings. But there is no deeper meaning behind the shapes. It's only pictures. These tools would allow you to mix a use case with a class or an actor in a deployment diagram. The advantage is that you can do what you want. The inconvenience is that what you want may not be compliant.

真正的建模工具让您可以只将有效的 UML 元素组合在一起,并确保您绘制的内容与 UML 语言的深层含义保持一致.他们通过结合不同图表的所有方面,在幕后构建了一个真实而全面的模型.

Real modeling tools let you combine only valid UML elements together and ensure consistency of what you draw with the deeper meaning of the UML language. And they build a true and comprehensive model behind the scene by combining all the facets of the different diagrams.

建模工具可以做更聪明的事情.例如,它们可以在序列图中将类与它们的对象实例相关联.它们可以帮助您找到使用特定类的所有其他模型.如果您在一个图表中重命名一个类或添加一个属性,它会自动反映在所有其他图表中.

Modeling tools can do smarter things. They can relate for example a class to their object instantiations in sequence diagram. They can help you to find all the other models in which a specific class is used. If you rename a class or add a property in one diagram, it'll be automatically reflected in all the others.

建模需要更多的纪律,但最终它更强大.一些建模工具甚至可以利用他们对 UML 的理解从模型中生成代码.

Modeling requires more discipline, but it's more powerful in the end. Some modelling tools can even use their understanding of UML to generate code out of the model.

这篇关于你是建模还是绘图?在 uml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆