Menu

#12 Sending messages from a state machine to another

QM
open
5
2016-03-31
2011-05-18
Anonymous
No

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?

Discussion

  • Quantum Leaps

    Quantum Leaps - 2011-06-19

    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.

     
  • Quantum Leaps

    Quantum Leaps - 2012-08-30
    • milestone: Next_Release --> QM
     
  • Kirk Wolff

    Kirk Wolff - 2016-03-31

    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.

     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB