Visio 和正向工程
您知道我是否可以使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
据我所知,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.
看起来最新版本的 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
您必须为 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.