3

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.

enter image description here

Glorfindel
  • 21,988
  • 13
  • 81
  • 109
bitbonk
  • 48,890
  • 37
  • 186
  • 278

2 Answers2

1

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:

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.

John Saunders
  • 160,644
  • 26
  • 247
  • 397
  • The code generation is more a secondary feature. I need to create good looking true UML statecharts. At first sight it seems to me that the look is rather homegrown and does not look like the "standard" UML diagrams (as in the pic). – bitbonk Jun 19 '10 at 17:49
0

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.

Andrew McVeigh
  • 555
  • 5
  • 5