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
I am currently implementing state machines according to UML diagrams provided by a standard but they are using what they call 'AND substates', or what wikipedia calls 'complementary AND-decomposition', 'Such decomposition means that a composite state can contain two or more orthogonal regions (orthogonal means compatible and independent in this context) and that being in such a composite state entails being in all its orthogonal regions simultaneously'. In practice this means that I need to have two or more active states at one time, does this library support that?
For some context, it's a representation for the connection state of a piece of equipment. During the initialization the equipment simultaneously attempts a connection to the host and listens for an incoming connection from the host. If any of these are successful we transition out of the composite state and into the connected state. How could I best represent this using this library?
It is possible to manually rewrite these composite states to non-composite ones but that results in a bunch of extra transitions and the possibility of me making mistakes during the rewriting.
The text was updated successfully, but these errors were encountered:
Ah okay that's a shame, are there plans to add it or is it something that won't be supported?
What I've done for now is I've expanded the composite state to a nonorthogonal equivalent.
This worked for me because I only have a couple states, once it gets bigger I think another solution would fit better.
I'm not aware of any plans to add support for orthogonal states currently (I can't speak for the other maintainers; perhaps they know different?). Adding support for this sounds like a really interesting project but it would need some careful thought given that the library is currently based on the principle of being in exactly one state at all times. If you have any thoughts on how to approach it, I'd be really interested to hear them.
I am currently implementing state machines according to UML diagrams provided by a standard but they are using what they call 'AND substates', or what wikipedia calls 'complementary AND-decomposition', 'Such decomposition means that a composite state can contain two or more orthogonal regions (orthogonal means compatible and independent in this context) and that being in such a composite state entails being in all its orthogonal regions simultaneously'. In practice this means that I need to have two or more active states at one time, does this library support that?
For some context, it's a representation for the connection state of a piece of equipment. During the initialization the equipment simultaneously attempts a connection to the host and listens for an incoming connection from the host. If any of these are successful we transition out of the composite state and into the connected state. How could I best represent this using this library?
It is possible to manually rewrite these composite states to non-composite ones but that results in a bunch of extra transitions and the possibility of me making mistakes during the rewriting.
The text was updated successfully, but these errors were encountered: