You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I'm looking into sml and find it really good, however there is one UML feature I can't get to work. It's posting event from one orthogonal region to another.
In this example, I try to send a ge2 event from orthogonal region o1 to orthogonal region o2, however, the the process_event function does not affect the full state machine but only the sub_machine defined by o1. This is the same if o1 is a composite state of main_state, the event does not reach main_state but affect only the o1 sub_state_machine.
Does someone know a may to send event from a sub_state to the main state machine or from an orthogonal region to another orthogonal region?
At first, I tried to use process(o2::e2{}) in an action of o1, but the compilation failed saying that this type of event couldn't be casted into a known event of the o1 sub_state_machine.
Wouldn't it be interesting to have this event checking at compilation time for event not handled by the state machine?
Thanks for your awesome job Kris!
The text was updated successfully, but these errors were encountered:
Hello, I'm looking into sml and find it really good, however there is one UML feature I can't get to work. It's posting event from one orthogonal region to another.
This example show me trying to accomplish that:
In this example, I try to send a ge2 event from orthogonal region o1 to orthogonal region o2, however, the the process_event function does not affect the full state machine but only the sub_machine defined by o1. This is the same if o1 is a composite state of main_state, the event does not reach main_state but affect only the o1 sub_state_machine.
Does someone know a may to send event from a sub_state to the main state machine or from an orthogonal region to another orthogonal region?
At first, I tried to use process(o2::e2{}) in an action of o1, but the compilation failed saying that this type of event couldn't be casted into a known event of the o1 sub_state_machine.
Wouldn't it be interesting to have this event checking at compilation time for event not handled by the state machine?
Thanks for your awesome job Kris!
The text was updated successfully, but these errors were encountered: