-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help: hierarchical state machine #31
Comments
Hi Mario Luzeiro, The UML state machine explained in Wikipedia or other resources don't have a concept of entry and exit callback for level. The entry and exit actions are for the State. I couldn't understand the complete hierarchy of your states from your description. As shown in the diagram, the state transition from L1S1to L1S4 will be L1S1->L0S0->L1S1->L1S4.
Will it be possible to implement your requirement by adding logic inside the entry action of each state? |
Hello!
Thanks for this nice project and well documented!
I didn't tried it yet, I'm learning how could I use it.
I am trying to implement the following hierarchical state machine, that I will try explain with ascii code:
So I have at L0 State0 that can switch to L0 S1 (or L0 State N-1), ..
but then on each L0 State, I can switch to a new L1 state for each
On L1 I will have L1 S0 ->S1->S2->S0.. and then can return to L0 from any point
From this library, there are Entry and Exit callbacks for each state.
But I would like to implement an Entry/Exit for each Level
So when it enter or exit a Level it will call a function to prepare things for that level
How can I implement an Entry/Exit for a Level?
The text was updated successfully, but these errors were encountered: