void FORTE_TwoAlgs::executeEvent()

in code/4diac-integration/src/integration-test/resources/translator/basic/basic_two_algs/cpp/BasicTwoAlgs_out.cpp [82:115]


void FORTE_TwoAlgs::executeEvent(int pa_nEIID){
  bool bTransitionCleared;
  do {
    bTransitionCleared = true;
    switch(m_nECCState) {
      case scm_nStateSTART:
        if(1)
          enterStateSTOP();
        else
        if(scm_nEventevent_input1ID == pa_nEIID)
          enterStateEVAL();
        else
        if(scm_nEventevent_input2ID == pa_nEIID)
          enterStateEVAL2();
        else
          bTransitionCleared  = false; //no transition cleared
        break;
      case scm_nStateSTOP:
          bTransitionCleared  = false; //no transition cleared
        break;
      case scm_nStateEVAL:
          bTransitionCleared  = false; //no transition cleared
        break;
      case scm_nStateEVAL2:
          bTransitionCleared  = false; //no transition cleared
        break;
      default:
        DEVLOG_ERROR("The state is not in the valid range! The state value is: %d. The max value can be: 4.", m_nECCState.operator TForteUInt16 ());
        m_nECCState = 0; // 0 is always the initial state
        break;
    }
    pa_nEIID = cg_nInvalidEventID; // we have to clear the event after the first check in order to ensure correct behavior
  } while(bTransitionCleared);
}