-
-
Notifications
You must be signed in to change notification settings - Fork 58
-
Hello. I'd like to suggest that you generate FSM as code. In a similar way as done in Robert C. Martin's CC_SMC project which is described in his book "Agile Software Development, Principles, Patterns, and Practices", which is available in Russian.
FSM generated by it is an abstract class with an events and a states as an enums, events as a public methods which will be called from client code and a transitions as a abstract methods which will be implemented by user.
It will also be useful to make it possible to generate FSM code for different programming languages, as CC_SMC does.
The easiest way I see to do this is to export the FSM to CC_SMC and use it to generate the code.
There is other C# project too: https://github.com/SuperJMN/StateMachineCompiler
Beta Was this translation helpful? Give feedback.