从 UML 图自动生成的 Python 代码? [英] Automatically Generated Python Code from an UML diagram?

查看:37
本文介绍了从 UML 图自动生成的 Python 代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题与 从 Python 源代码生成 UML 图的最佳方法是什么?,反之亦然.

The question is not the same as What’s the best way to generate a UML diagram from Python source code?, but the other way around.

Topcoder UML 工具仅使用 Java 或 C# 自动生成代码.因为我需要创建一个非常依赖的数据结构在某一点上,我对转向 Java 犹豫不决.我想使用 Python.所以:

Topcoder UML tool automatically generates code in only Java or C#. Since I need to create a very depended data structure at a point, I am hesitant to turn to Java. I want to use Python. So:

  1. 有没有类似 UML 的工具自动生成 Python 代码从你的图表?

  1. Is there an UML-like tool that automatically generates Python code from your diagram?

如果有,是否可以从 Topcoder UML 工具生成它?

If there is, is it possible to generate it from the Topcoder UML tool?

你能简单比较一下这些工具吗?

Can you shortly compare the tools?

推荐答案

企业架构师 能够从 UML 图生成 python 代码.
它还能够执行一些逆向工程,从而保持两个版本(UML 和 python)同步在一起.

Enterprise Architect is able to generate python code code from UML diagrams.
It is also able to also perform some reverse engineering, and therefore maintain the two versions (UML and python) synchronized together.

然而,我从来没有这样使用过它,除了一些小测试只是为了看看它的实际效果.我个人觉得 Python 的生产力如此之高,以至于即使我对 EA 真的很满意,我也更喜欢用它来记录设计.

However, I have never used it in that way, except for some small tests just to see it in action. I personally find productivity in Python so high, that even if I am really satisfied with EA, I prefer it just to document the design.

这篇关于从 UML 图自动生成的 Python 代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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