我正在尝试选择一个工具来创建各种类型的UML图。对我来说,可用性是一个主要的标准,但我仍然会以更陡峭的学习曲线获得更多的权力,并感到高兴。免费(就像啤酒一样)会很好,但如果工具值得的话,我愿意付钱。我应该用什么?


当前回答

In my career I often needed to draw UML diagrams and generate Java code. I found MagicDraw most appealing and I'm a happy user. I think their licensing model is fair because it allows to pay for what you need. I prefer it to other products I used in my (distant) past: ArgoUML, Poseidon, Rational Rose, Dia. Be aware that my experiences on other products are obsolete and have maybe significantly improved or changed their licensing model. Maybe you should start with an open-source tool and decide later whether to spend some bucks.

使用MagicDraw,您可以通过从代码生成图表来记录您的代码。您也可以先建模,然后生成代码。它还可以很好地与多个ide集成。

其他回答

为了我的简单和简短的UML工作, 我用过这个工具:

星联 - http://staruml.sourceforge.net/en/

很棒的免费UML绘图软件。


虽然最初的Star UML不再维护,但是现在有一个叫做White Star UML的分支正在积极开发。

UML的可视化范例http://content.usa.visual-paradigm.com/websiteimages/images/products/vpuml60/vpumltitle.gif

我非常喜欢UML的Visual Paradigm,它非常强大,有免费的社区版和便宜的个人版。

Agilian http://content.usa.visual-paradigm.com/websiteimages/images/products/ag10/agtitle.gif

对于敏捷建模,还有Agilian,它更灵活,增加了额外的功能来支持智能板,也知道思维导图。

我最喜欢他们产品的一点是灵活性。我现在在工作中使用企业架构师,但我认为它不够聪明。我希望能够快速地对一些序列图进行头脑风暴,并让应用程序在后台保持我的模型是最新的,这是VPUML非常擅长的。

在我看来,它比Enterprise Architect好得多,尽管Enterprise Architect也是一个很棒的工具:)

一些背景:最近在研究生院,我为一个独立的项目研究了UML工具的可用性和UML理解。我还以当模特/建筑师为生。

之前的帖子有太多的答案而没有足够的问题。一个常见的误解是UML是关于创建图的。当然,图表很重要,但实际上您是在创建模型。以下是每个供应商的产品/解决方案在某些方面优于其他产品时应该回答的问题。注:列出的答案是我认为最好的,即使其他产品支持特定的功能或需求。

Are you modeling or drawing? (Drawing - ArgoUML, free implementations, and Visio) Will you be modeling in the future? (For basic modeling - Community editions of pay products) Do you want to formalize your modeling through profiles or meta-models? OCL? (Sparx, RSM, Visual Paradigm) Are you concerned about model portability, XMI support? (GenMyModel, Sparx, Visual Paradigm, Altova) Do you have an existing set of documents that you need to work with? (Depends on the documents) Would you want to generate code stubs or full functioning code?(GenMyModel, Visual Paradigm, Sparx, Altova) Do you need more mature processes such as use case management, pattern creation, asset creation, RUP integration, etc? (RSA/RSM/IBM Rational Products)

Detailed Examples: IBM Rational Software Architect did not implement UML 2.0 all the way when it comes to realizes type relationships when creating a UML profile, but Visual Paradigm and Sparx got it right. Ok, that was way too detailed, so a simpler example would be ArgoUML, which has no code generation features and focuses on drawing more than the modeling aspect of UML. Sparx and Visual Paradigm do UML really well and generate code well, however, hooking into project lifecycles and other process is where RSM/RSA is strong. Watch out for closed or product specific code generation processes or frameworks as you could end up stuck with that product.

这是一个直接的大脑转储,所以一些细节可能并不完美,但是,这应该提供了一个关于问题和解决方案的大致地图。

新-发现了一个很好的列表,许多UML工具的描述。Wiki UML工具列表

我用gmodeler.com。它只做类图。

好东西

非常简单的功能集。伟大的UI。非常容易使用。 有吸引力的UI。 不需要登录/创建帐户 可以保存图表 免费的

不好的事情

难以合作——必须导出到xml(我不在乎) 不能从任何机器访问图表,因为它保存到您的浏览器(我不在乎) 不能导出为图像或pdf(我可以截屏) 不能为大多数语言生成代码 非常简单的功能集。(我不在乎) 每个类都有一个“事件”列表,我不需要,我不能摆脱。

对于序列图,请尝试websequencediagrams.com。这是一个免费增值的产品(基本任务免费,高级功能付费),可以让你快速绘制出一个图表,而无需对线条和模板进行任何繁琐的操作。

Alice->Bob: Authentication Request
note left of Bob: Bob thinks about it
Bob->Alice: Authentication Response