views:

83

answers:

5

I’m looking for software / UML tools that can generate code (including, or not, Java) from UML state machine diagrams. Be it from diagrams modeled in the tool itself or imported as XMI or whatever.

For example,

  • Visual Paradigm
  • Enterprise Architect (supposedly)

can do this. Do you know any other tools?

+1  A: 

Visual Paradigm. This software can generate code in different languages like: Java, C#, C++, etc.

Andrei Bularca
That indeed can do it (with one of the upper licences only though). Thank you.
Kissaki
+1  A: 

You can take a look at Enterprise Architect (*).

Colin Hebert
Enterprise Architect can’t generate code from state diagrams. (Correct me if I’m wrong, but I did not find this functionality.)
Kissaki
@Kissaki, it seems that EA can do this : http://www.sparxsystems.com/enterprise_architect_user_guide/software_development/code_generation___state_machin.html
Colin Hebert
Oh, my eyes. That's awful looking code.
duffymo
@duffymo, that's another point but it's more or less my opinion too on most of generated code.
Colin Hebert
Oh, ok. Thanks for pointing out. I’ll have another look at it.
Kissaki
I failed yet again. I now contacted their support. Let’s see what they say. It’s not easy to use at the very least; or intuitive for that matter.
Kissaki
A: 

Here is the list with useful comparison - http://en.wikipedia.org/wiki/List_of_UML_tools

johnbk
Yeah, I was going through that one (also did some corrections / improvements). But it’s bloated. And most tools providing code generation won’t offer it from state diagrams in the end …
Kissaki
A: 

You might find one or more suggestions on this thread useful.

sfinnie
No, not really. Thanks for the suggestion anyway.
Kissaki
A: 

FSMC+ is an Apache licensed project that accepts a statchart in an XMI file and produces Java classes implementing the state machine.

Geoff Reedy