Menu

Translating Rhapsody orthogonal regions to QM

2026-02-24
2026-03-23
  • Modo Donuts

    Modo Donuts - 2026-02-24

    For context, I am currently trying to convert a Rhapsody Model into a QM model in order to see how painful of a process it is going to be. I understand that it would be in my best interest to develop with a "QM first" paradigm, but at this point in time it's in my best interest to start with a Rhapsody model and try to replicate it in QM. Examples are attached as QM_example and Rhapsody_example.

    The model is a simple dishwasher example offered by a class from Rhapsody. There's a state called Active, which has 3 substates that are orthogonal. In the substate Running, the state "off" transitions to a choice which has the guard IS_IN(normal) which QM uses
    this->isIn(Q_STATE_CAST(&Dishwasher::normal))

    Unfortunately I did not set up the states: Running, Service, and Mode as orthogonal states, and I learned that the states service and mode aren't initializing.

    I've been using this guide on orthogonal states as a reference to create orthogonal states, but it's not clicking for me. I understand that the container would be Active, and that: Running, Service, and Mode would all be the components, but it is still unclear to me how to implement that.

    Any additional resources or examples would be a great help. It also wouldn't hurt to see what a "QM first" approach would look like. Much appreciated.

     
  • Modo Donuts

    Modo Donuts - 2026-03-23

    solved! Decided to just do it the way suggested by the link I posted. Thanks!

     

Log in to post a comment.

MongoDB Logo MongoDB