Sending messages from a state machine to another
Real-Time Event Frameworks based on active objects & state machines
Brought to you by:
quantum-leaps
In the tutorials and examples, we can see that messages between state machines (such as DISPLAY_CARS_RED_SIG from pelican AO to display AO for example) are sent by actually writing the instruction QActive_postFIFO.
Is there a way to generate this code by using a graphical arrow from one state machine to another?
If not, are you planning to integrate graphically such messages in a future release of QM?
Anonymous
Such a feature is underspecified, because to send an event you need to know not only the producer and the consumer of the event, but also WHEN exactly to send the event. I'm not sure how to specify the WHEN graphically.
This sounds like a request to relay an event from one AO to another by way of adding another set of pull-downs to the transition specification. I don't see the need for this feature as this should be implemented in code, and typically a triggered event might carry additional payload that would need to be assembled with the transition implementation code. In addition this feature would serve to obfuscate the implementation rather than assist in its clarity.