开发者

hierarchical statecharts designer with code generation [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments开发者_如何学运维, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 10 years ago.

What is the best free and the best commercial tool that lets me draw uml hierarchical statechats like in the picture below. It would also be cool if it could generate the c# source code stubs.

hierarchical statecharts designer with code generation [closed]


Take a look at the Domain-Specific Languages tools in the Visual Studio SDK. They include a DSL for state charts.

You can generate any code you need from one of these DSLs by using T4 Templates.

Some resources:

  • Visual Studio Visualization and Modeling SDK (was DSL SDK)
  • Getting Started with Visualization and Modeling SDK
  • Visualization and Modeling SDK - Domain-Specific Languages

Note that these links are all for VS2010. That's because I can no longer find the VS2008 links, but the DSL Toolkit has a State Chart template in VS2008 as well.


I didn't see the "best commercial" part of your question.

I use Sparx Enterprise Architect. It can do full UML statecharts, and I believe it can generate code from just about any model, or transform one model into another. You might have to transform a state model into a model of the classes representing your states before then generating code from the classes, but that's the worst you'd have to do.


My UML-based case tool lets you create and inherit hierarchical state charts. It has full code generation and can import beans.

http://www.intrinsarc.com/evolve

However, the presentation and sophistication of the state charts are perhaps not as rich as you have drawn above. The tool is based around hierarchical components, and aligns component creation, reuse and evolution.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜