Hello,
I'm having trouble generating C++ code from a state machine. I have the Systems Engineering edition, version 10, and I can generate the IO class from the EAExample project and the state machine code generates fine. However, the very simple state machine I've built into my TestStateMachine class won't generate the state machine code. The basic design of this class is
TestStateMachine
- mCount:int
- mTransitionCount:int
- incrementCount() // just does ++mCount;
- recordTransition() // sets mCount to 0 then ++mTransitionCount
- StateMachineImplementation (state machine)
- Initial (initial state)
- DoStateOne (state)
-do - incrementCount()
- DoStateTwo (state)
-do - incrementCount()
- Final (final state)
I have transitions going from initial to DoStateOne with no guards, from DoStateOne to DoStateTwo [mCount > 10]/recordTransition(), from DoStateTwo to DoStateOne [mCount > 15]/recordTransition(), and from DoStateTwo to Final [mTransitionCount > 5].
So it's a really simple state machine, using all behavioral constructs from the TestStateMachineClass. But again, when I generate code, all I get are the constructor, destructor, recordTransition() and incrementCount() method frames.
Any thoughts?