Visio 和正向工程

发布于 2024-07-04 12:40:53 字数 92 浏览 5 评论 0原文

您知道我是否可以使用 Visio 将序列图正向工程转换为代码 (c#)?

可以单独使用 Visio 完成还是需要插件?

其他图呢?

Do you know if I can use Visio to forward-engineer a sequence diagram into code (c#)?

Can it be done with Visio alone or do I need a plugin?

What about other diagrams?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

最佳男配角 2024-07-11 12:40:57

据我所知,Visio 只能从类模型中对代码进行正向工程。

由于序列图仅真正显示对象之间的通信路径,因此我怀疑它们不包含生成代码所需的信息,除非在一些微不足道的情况下。

具有任何复杂行为模式的对象都可能涉及更改运行时状态,而序列图实际上无法捕获这些状态。

To the best of my knowledge, Visio can only forward-engineer code from class models.

As sequence diagrams only really show paths of communication between objects, I suspect that they do not contain the necessary information, except perhaps in trivial cases, for generating code.

Objects with any sort of complex behaviour patterns are likely to involve changing run-time states, of which sequence diagrams aren't really capable of capturing.

流年已逝 2024-07-11 12:40:56

看起来最新版本的 Sparx Systems Enterprise Architect 可以转发工程序列图

Sparx Systems Enterprise Architect

Looks like the latest version of Sparx Systems Enterprise Architect can forward engineer sequence diagrams

Sparx Systems Enterprise Architect

梦一生花开无言 2024-07-11 12:40:56

您必须为 Visual Studio 用户获取 Visio。 请参阅此链接:Visio for Enterprise Architects了解更多详细信息。 代码生成功能相当弱,您最终可能会使 Visio 进入不一致的状态。 我知道 Visio 可以让您对代码和数据库进行正向和反向工程,但这两种功能都非常有限,我不建议这样做。

在我看来,Visio 是一个图表工具,应该这样对待它。

You have to get the Visio that for users of Visual Studio. See this link: Visio for Enterprise Architects for more details. The code generation capabilities are fairly weak and you might end up getting Visio into an inconsistent state. I know that Visio will let you forward and reverse engineer both code and databases, but both capabilities are very limited and I don't recommend doing it.

In my opinion, Visio is a diagramming tool and it should be treated as such.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文