1

I want to generate C++ code from a State Diagram (Harrel FSM) and I'm wondering whether this is possible with EA, and if, how to go about generating code.

I've followed the example at Sparx: Generate From Behavioral Models, but when I look at the generated code it consists of skeleton code that does not include any state transitions etc. I've seen an example of assumedly code generated by EA in their online help, so it does seem to be possible, but I cannot find any concrete examples of how.

Could anyone give me some direction? Thanks.

4

1 回答 1

3

您是否能够从 EAExample 模型中的示例生成行为代码?

如果没有,您需要确认您使用的是哪个版本的 Enterprise Architect。从行为模型(例如状态机)生成代码仅在 EA 的业务和软件工程、系统工程和终极版中可用。

于 2013-09-26T02:49:52.337 回答