123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984 |
- #include <stdlib.h>
- #include <string.h>
- #include "sc_types.h"
- #include "ValuedEvents.h"
- /*! \file Implementation of the state machine 'ValuedEvents'
- */
- /* prototypes of all internal functions */
- static sc_boolean valuedEvents_check_integer_region_B_tr0_tr0(const ValuedEvents* handle);
- static sc_boolean valuedEvents_check_integer_region_C_tr0_tr0(const ValuedEvents* handle);
- static sc_boolean valuedEvents_check_boolean_region_B_tr0_tr0(const ValuedEvents* handle);
- static sc_boolean valuedEvents_check_boolean_region_C_tr0_tr0(const ValuedEvents* handle);
- static sc_boolean valuedEvents_check_real_region_B_tr0_tr0(const ValuedEvents* handle);
- static sc_boolean valuedEvents_check_real_region_C_tr0_tr0(const ValuedEvents* handle);
- static sc_boolean valuedEvents_check_string_region_B_tr0_tr0(const ValuedEvents* handle);
- static sc_boolean valuedEvents_check_string_region_C_tr0_tr0(const ValuedEvents* handle);
- static void valuedEvents_effect_integer_region_B_tr0(ValuedEvents* handle);
- static void valuedEvents_effect_integer_region_C_tr0(ValuedEvents* handle);
- static void valuedEvents_effect_boolean_region_B_tr0(ValuedEvents* handle);
- static void valuedEvents_effect_boolean_region_C_tr0(ValuedEvents* handle);
- static void valuedEvents_effect_real_region_B_tr0(ValuedEvents* handle);
- static void valuedEvents_effect_real_region_C_tr0(ValuedEvents* handle);
- static void valuedEvents_effect_string_region_B_tr0(ValuedEvents* handle);
- static void valuedEvents_effect_string_region_C_tr0(ValuedEvents* handle);
- static void valuedEvents_enact_main_region1_A(ValuedEvents* handle);
- static void valuedEvents_enseq_main_region1_A_default(ValuedEvents* handle);
- static void valuedEvents_enseq_integer_region_B_default(ValuedEvents* handle);
- static void valuedEvents_enseq_integer_region_C_default(ValuedEvents* handle);
- static void valuedEvents_enseq_integer_region_D_default(ValuedEvents* handle);
- static void valuedEvents_enseq_boolean_region_B_default(ValuedEvents* handle);
- static void valuedEvents_enseq_boolean_region_C_default(ValuedEvents* handle);
- static void valuedEvents_enseq_boolean_region_D_default(ValuedEvents* handle);
- static void valuedEvents_enseq_real_region_B_default(ValuedEvents* handle);
- static void valuedEvents_enseq_real_region_C_default(ValuedEvents* handle);
- static void valuedEvents_enseq_real_region_D_default(ValuedEvents* handle);
- static void valuedEvents_enseq_string_region_B_default(ValuedEvents* handle);
- static void valuedEvents_enseq_string_region_C_default(ValuedEvents* handle);
- static void valuedEvents_enseq_string_region_D_default(ValuedEvents* handle);
- static void valuedEvents_enseq_main_region1_default(ValuedEvents* handle);
- static void valuedEvents_enseq_integer_region_default(ValuedEvents* handle);
- static void valuedEvents_enseq_boolean_region_default(ValuedEvents* handle);
- static void valuedEvents_enseq_real_region_default(ValuedEvents* handle);
- static void valuedEvents_enseq_string_region_default(ValuedEvents* handle);
- static void valuedEvents_exseq_main_region1_A(ValuedEvents* handle);
- static void valuedEvents_exseq_integer_region_B(ValuedEvents* handle);
- static void valuedEvents_exseq_integer_region_C(ValuedEvents* handle);
- static void valuedEvents_exseq_integer_region_D(ValuedEvents* handle);
- static void valuedEvents_exseq_boolean_region_B(ValuedEvents* handle);
- static void valuedEvents_exseq_boolean_region_C(ValuedEvents* handle);
- static void valuedEvents_exseq_boolean_region_D(ValuedEvents* handle);
- static void valuedEvents_exseq_real_region_B(ValuedEvents* handle);
- static void valuedEvents_exseq_real_region_C(ValuedEvents* handle);
- static void valuedEvents_exseq_real_region_D(ValuedEvents* handle);
- static void valuedEvents_exseq_string_region_B(ValuedEvents* handle);
- static void valuedEvents_exseq_string_region_C(ValuedEvents* handle);
- static void valuedEvents_exseq_string_region_D(ValuedEvents* handle);
- static void valuedEvents_exseq_main_region1(ValuedEvents* handle);
- static void valuedEvents_exseq_integer_region(ValuedEvents* handle);
- static void valuedEvents_exseq_boolean_region(ValuedEvents* handle);
- static void valuedEvents_exseq_real_region(ValuedEvents* handle);
- static void valuedEvents_exseq_string_region(ValuedEvents* handle);
- static void valuedEvents_react_main_region1_A(ValuedEvents* handle);
- static void valuedEvents_react_integer_region_B(ValuedEvents* handle);
- static void valuedEvents_react_integer_region_C(ValuedEvents* handle);
- static void valuedEvents_react_integer_region_D(ValuedEvents* handle);
- static void valuedEvents_react_boolean_region_B(ValuedEvents* handle);
- static void valuedEvents_react_boolean_region_C(ValuedEvents* handle);
- static void valuedEvents_react_boolean_region_D(ValuedEvents* handle);
- static void valuedEvents_react_real_region_B(ValuedEvents* handle);
- static void valuedEvents_react_real_region_C(ValuedEvents* handle);
- static void valuedEvents_react_real_region_D(ValuedEvents* handle);
- static void valuedEvents_react_string_region_B(ValuedEvents* handle);
- static void valuedEvents_react_string_region_C(ValuedEvents* handle);
- static void valuedEvents_react_string_region_D(ValuedEvents* handle);
- static void valuedEvents_react_main_region1__entry_Default(ValuedEvents* handle);
- static void valuedEvents_react_integer_region__entry_Default(ValuedEvents* handle);
- static void valuedEvents_react_boolean_region__entry_Default(ValuedEvents* handle);
- static void valuedEvents_react_real_region__entry_Default(ValuedEvents* handle);
- static void valuedEvents_react_string_region__entry_Default(ValuedEvents* handle);
- static void valuedEvents_clearInEvents(ValuedEvents* handle);
- static void valuedEvents_clearOutEvents(ValuedEvents* handle);
- void valuedEvents_init(ValuedEvents* handle)
- {
- sc_integer i;
- for (i = 0; i < VALUEDEVENTS_MAX_ORTHOGONAL_STATES; ++i)
- {
- handle->stateConfVector[i] = ValuedEvents_last_state;
- }
-
-
- handle->stateConfVectorPosition = 0;
- valuedEvents_clearInEvents(handle);
- valuedEvents_clearOutEvents(handle);
- /* Default init sequence for statechart ValuedEvents */
- handle->iface.myInt = 0;
- handle->iface.myBool = bool_false;
- handle->iface.myReal = 0.0;
- handle->iface.myString = "";
- }
- void valuedEvents_enter(ValuedEvents* handle)
- {
- /* Default enter sequence for statechart ValuedEvents */
- valuedEvents_enseq_main_region1_default(handle);
- valuedEvents_enseq_integer_region_default(handle);
- valuedEvents_enseq_boolean_region_default(handle);
- valuedEvents_enseq_real_region_default(handle);
- valuedEvents_enseq_string_region_default(handle);
- }
- void valuedEvents_exit(ValuedEvents* handle)
- {
- /* Default exit sequence for statechart ValuedEvents */
- valuedEvents_exseq_main_region1(handle);
- valuedEvents_exseq_integer_region(handle);
- valuedEvents_exseq_boolean_region(handle);
- valuedEvents_exseq_real_region(handle);
- valuedEvents_exseq_string_region(handle);
- }
- sc_boolean valuedEvents_isActive(const ValuedEvents* handle)
- {
- sc_boolean result = bool_false;
- int i;
-
- for(i = 0; i < VALUEDEVENTS_MAX_ORTHOGONAL_STATES; i++)
- {
- result = result || handle->stateConfVector[i] != ValuedEvents_last_state;
- }
-
- return result;
- }
- /*
- * Always returns 'false' since this state machine can never become final.
- */
- sc_boolean valuedEvents_isFinal(const ValuedEvents* handle)
- {
- return bool_false;
- }
- static void valuedEvents_clearInEvents(ValuedEvents* handle)
- {
- handle->iface.integerEvent_raised = bool_false;
- handle->iface.booleanEvent_raised = bool_false;
- handle->iface.realEvent_raised = bool_false;
- handle->iface.stringEvent_raised = bool_false;
- }
- static void valuedEvents_clearOutEvents(ValuedEvents* handle)
- {
- }
- void valuedEvents_runCycle(ValuedEvents* handle)
- {
-
- valuedEvents_clearOutEvents(handle);
-
- for (handle->stateConfVectorPosition = 0;
- handle->stateConfVectorPosition < VALUEDEVENTS_MAX_ORTHOGONAL_STATES;
- handle->stateConfVectorPosition++)
- {
-
- switch (handle->stateConfVector[handle->stateConfVectorPosition])
- {
- case ValuedEvents_main_region1_A :
- {
- valuedEvents_react_main_region1_A(handle);
- break;
- }
- case ValuedEvents_integer_region_B :
- {
- valuedEvents_react_integer_region_B(handle);
- break;
- }
- case ValuedEvents_integer_region_C :
- {
- valuedEvents_react_integer_region_C(handle);
- break;
- }
- case ValuedEvents_integer_region_D :
- {
- valuedEvents_react_integer_region_D(handle);
- break;
- }
- case ValuedEvents_boolean_region_B :
- {
- valuedEvents_react_boolean_region_B(handle);
- break;
- }
- case ValuedEvents_boolean_region_C :
- {
- valuedEvents_react_boolean_region_C(handle);
- break;
- }
- case ValuedEvents_boolean_region_D :
- {
- valuedEvents_react_boolean_region_D(handle);
- break;
- }
- case ValuedEvents_real_region_B :
- {
- valuedEvents_react_real_region_B(handle);
- break;
- }
- case ValuedEvents_real_region_C :
- {
- valuedEvents_react_real_region_C(handle);
- break;
- }
- case ValuedEvents_real_region_D :
- {
- valuedEvents_react_real_region_D(handle);
- break;
- }
- case ValuedEvents_string_region_B :
- {
- valuedEvents_react_string_region_B(handle);
- break;
- }
- case ValuedEvents_string_region_C :
- {
- valuedEvents_react_string_region_C(handle);
- break;
- }
- case ValuedEvents_string_region_D :
- {
- valuedEvents_react_string_region_D(handle);
- break;
- }
- default:
- break;
- }
- }
-
- valuedEvents_clearInEvents(handle);
- }
- sc_boolean valuedEvents_isStateActive(const ValuedEvents* handle, ValuedEventsStates state)
- {
- sc_boolean result = bool_false;
- switch (state)
- {
- case ValuedEvents_main_region1_A :
- result = (sc_boolean) (handle->stateConfVector[SCVI_VALUEDEVENTS_MAIN_REGION1_A] == ValuedEvents_main_region1_A
- );
- break;
- case ValuedEvents_integer_region_B :
- result = (sc_boolean) (handle->stateConfVector[SCVI_VALUEDEVENTS_INTEGER_REGION_B] == ValuedEvents_integer_region_B
- );
- break;
- case ValuedEvents_integer_region_C :
- result = (sc_boolean) (handle->stateConfVector[SCVI_VALUEDEVENTS_INTEGER_REGION_C] == ValuedEvents_integer_region_C
- );
- break;
- case ValuedEvents_integer_region_D :
- result = (sc_boolean) (handle->stateConfVector[SCVI_VALUEDEVENTS_INTEGER_REGION_D] == ValuedEvents_integer_region_D
- );
- break;
- case ValuedEvents_boolean_region_B :
- result = (sc_boolean) (handle->stateConfVector[SCVI_VALUEDEVENTS_BOOLEAN_REGION_B] == ValuedEvents_boolean_region_B
- );
- break;
- case ValuedEvents_boolean_region_C :
- result = (sc_boolean) (handle->stateConfVector[SCVI_VALUEDEVENTS_BOOLEAN_REGION_C] == ValuedEvents_boolean_region_C
- );
- break;
- case ValuedEvents_boolean_region_D :
- result = (sc_boolean) (handle->stateConfVector[SCVI_VALUEDEVENTS_BOOLEAN_REGION_D] == ValuedEvents_boolean_region_D
- );
- break;
- case ValuedEvents_real_region_B :
- result = (sc_boolean) (handle->stateConfVector[SCVI_VALUEDEVENTS_REAL_REGION_B] == ValuedEvents_real_region_B
- );
- break;
- case ValuedEvents_real_region_C :
- result = (sc_boolean) (handle->stateConfVector[SCVI_VALUEDEVENTS_REAL_REGION_C] == ValuedEvents_real_region_C
- );
- break;
- case ValuedEvents_real_region_D :
- result = (sc_boolean) (handle->stateConfVector[SCVI_VALUEDEVENTS_REAL_REGION_D] == ValuedEvents_real_region_D
- );
- break;
- case ValuedEvents_string_region_B :
- result = (sc_boolean) (handle->stateConfVector[SCVI_VALUEDEVENTS_STRING_REGION_B] == ValuedEvents_string_region_B
- );
- break;
- case ValuedEvents_string_region_C :
- result = (sc_boolean) (handle->stateConfVector[SCVI_VALUEDEVENTS_STRING_REGION_C] == ValuedEvents_string_region_C
- );
- break;
- case ValuedEvents_string_region_D :
- result = (sc_boolean) (handle->stateConfVector[SCVI_VALUEDEVENTS_STRING_REGION_D] == ValuedEvents_string_region_D
- );
- break;
- default:
- result = bool_false;
- break;
- }
- return result;
- }
- void valuedEventsIface_raise_integerEvent(ValuedEvents* handle, sc_integer value)
- {
- handle->iface.integerEvent_value = value;
- handle->iface.integerEvent_raised = bool_true;
- }
- void valuedEventsIface_raise_booleanEvent(ValuedEvents* handle, sc_boolean value)
- {
- handle->iface.booleanEvent_value = value;
- handle->iface.booleanEvent_raised = bool_true;
- }
- void valuedEventsIface_raise_realEvent(ValuedEvents* handle, sc_real value)
- {
- handle->iface.realEvent_value = value;
- handle->iface.realEvent_raised = bool_true;
- }
- void valuedEventsIface_raise_stringEvent(ValuedEvents* handle, sc_string value)
- {
- handle->iface.stringEvent_value = value;
- handle->iface.stringEvent_raised = bool_true;
- }
- sc_integer valuedEventsIface_get_myInt(const ValuedEvents* handle)
- {
- return handle->iface.myInt;
- }
- void valuedEventsIface_set_myInt(ValuedEvents* handle, sc_integer value)
- {
- handle->iface.myInt = value;
- }
- sc_boolean valuedEventsIface_get_myBool(const ValuedEvents* handle)
- {
- return handle->iface.myBool;
- }
- void valuedEventsIface_set_myBool(ValuedEvents* handle, sc_boolean value)
- {
- handle->iface.myBool = value;
- }
- sc_real valuedEventsIface_get_myReal(const ValuedEvents* handle)
- {
- return handle->iface.myReal;
- }
- void valuedEventsIface_set_myReal(ValuedEvents* handle, sc_real value)
- {
- handle->iface.myReal = value;
- }
- sc_string valuedEventsIface_get_myString(const ValuedEvents* handle)
- {
- return handle->iface.myString;
- }
- void valuedEventsIface_set_myString(ValuedEvents* handle, sc_string value)
- {
- handle->iface.myString = value;
- }
- /* implementations of all internal functions */
- static sc_boolean valuedEvents_check_integer_region_B_tr0_tr0(const ValuedEvents* handle)
- {
- return handle->iface.integerEvent_raised;
- }
- static sc_boolean valuedEvents_check_integer_region_C_tr0_tr0(const ValuedEvents* handle)
- {
- return handle->iface.integerEvent_raised;
- }
- static sc_boolean valuedEvents_check_boolean_region_B_tr0_tr0(const ValuedEvents* handle)
- {
- return handle->iface.booleanEvent_raised;
- }
- static sc_boolean valuedEvents_check_boolean_region_C_tr0_tr0(const ValuedEvents* handle)
- {
- return handle->iface.booleanEvent_raised;
- }
- static sc_boolean valuedEvents_check_real_region_B_tr0_tr0(const ValuedEvents* handle)
- {
- return handle->iface.realEvent_raised;
- }
- static sc_boolean valuedEvents_check_real_region_C_tr0_tr0(const ValuedEvents* handle)
- {
- return handle->iface.realEvent_raised;
- }
- static sc_boolean valuedEvents_check_string_region_B_tr0_tr0(const ValuedEvents* handle)
- {
- return handle->iface.stringEvent_raised;
- }
- static sc_boolean valuedEvents_check_string_region_C_tr0_tr0(const ValuedEvents* handle)
- {
- return handle->iface.stringEvent_raised;
- }
- static void valuedEvents_effect_integer_region_B_tr0(ValuedEvents* handle)
- {
- valuedEvents_exseq_integer_region_B(handle);
- handle->iface.myInt = handle->iface.integerEvent_value;
- valuedEvents_enseq_integer_region_C_default(handle);
- }
- static void valuedEvents_effect_integer_region_C_tr0(ValuedEvents* handle)
- {
- valuedEvents_exseq_integer_region_C(handle);
- handle->iface.myInt = handle->iface.integerEvent_value;
- valuedEvents_enseq_integer_region_D_default(handle);
- }
- static void valuedEvents_effect_boolean_region_B_tr0(ValuedEvents* handle)
- {
- valuedEvents_exseq_boolean_region_B(handle);
- handle->iface.myBool = handle->iface.booleanEvent_value;
- valuedEvents_enseq_boolean_region_C_default(handle);
- }
- static void valuedEvents_effect_boolean_region_C_tr0(ValuedEvents* handle)
- {
- valuedEvents_exseq_boolean_region_C(handle);
- handle->iface.myBool = handle->iface.booleanEvent_value;
- valuedEvents_enseq_boolean_region_D_default(handle);
- }
- static void valuedEvents_effect_real_region_B_tr0(ValuedEvents* handle)
- {
- valuedEvents_exseq_real_region_B(handle);
- handle->iface.myReal = handle->iface.realEvent_value;
- valuedEvents_enseq_real_region_C_default(handle);
- }
- static void valuedEvents_effect_real_region_C_tr0(ValuedEvents* handle)
- {
- valuedEvents_exseq_real_region_C(handle);
- handle->iface.myReal = handle->iface.realEvent_value;
- valuedEvents_enseq_real_region_D_default(handle);
- }
- static void valuedEvents_effect_string_region_B_tr0(ValuedEvents* handle)
- {
- valuedEvents_exseq_string_region_B(handle);
- handle->iface.myString = handle->iface.stringEvent_value;
- valuedEvents_enseq_string_region_C_default(handle);
- }
- static void valuedEvents_effect_string_region_C_tr0(ValuedEvents* handle)
- {
- valuedEvents_exseq_string_region_C(handle);
- handle->iface.myString = handle->iface.stringEvent_value;
- valuedEvents_enseq_string_region_D_default(handle);
- }
- /* Entry action for state 'A'. */
- static void valuedEvents_enact_main_region1_A(ValuedEvents* handle)
- {
- /* Entry action for state 'A'. */
- handle->iface.integerEvent_value = 2 * 21;
- handle->iface.integerEvent_raised = bool_true;
- handle->iface.realEvent_value = 10;
- handle->iface.realEvent_raised = bool_true;
- handle->iface.booleanEvent_value = bool_true || bool_false;
- handle->iface.booleanEvent_raised = bool_true;
- handle->iface.stringEvent_value = "sct";
- handle->iface.stringEvent_raised = bool_true;
- }
- /* 'default' enter sequence for state A */
- static void valuedEvents_enseq_main_region1_A_default(ValuedEvents* handle)
- {
- /* 'default' enter sequence for state A */
- valuedEvents_enact_main_region1_A(handle);
- handle->stateConfVector[0] = ValuedEvents_main_region1_A;
- handle->stateConfVectorPosition = 0;
- }
- /* 'default' enter sequence for state B */
- static void valuedEvents_enseq_integer_region_B_default(ValuedEvents* handle)
- {
- /* 'default' enter sequence for state B */
- handle->stateConfVector[1] = ValuedEvents_integer_region_B;
- handle->stateConfVectorPosition = 1;
- }
- /* 'default' enter sequence for state C */
- static void valuedEvents_enseq_integer_region_C_default(ValuedEvents* handle)
- {
- /* 'default' enter sequence for state C */
- handle->stateConfVector[1] = ValuedEvents_integer_region_C;
- handle->stateConfVectorPosition = 1;
- }
- /* 'default' enter sequence for state D */
- static void valuedEvents_enseq_integer_region_D_default(ValuedEvents* handle)
- {
- /* 'default' enter sequence for state D */
- handle->stateConfVector[1] = ValuedEvents_integer_region_D;
- handle->stateConfVectorPosition = 1;
- }
- /* 'default' enter sequence for state B */
- static void valuedEvents_enseq_boolean_region_B_default(ValuedEvents* handle)
- {
- /* 'default' enter sequence for state B */
- handle->stateConfVector[2] = ValuedEvents_boolean_region_B;
- handle->stateConfVectorPosition = 2;
- }
- /* 'default' enter sequence for state C */
- static void valuedEvents_enseq_boolean_region_C_default(ValuedEvents* handle)
- {
- /* 'default' enter sequence for state C */
- handle->stateConfVector[2] = ValuedEvents_boolean_region_C;
- handle->stateConfVectorPosition = 2;
- }
- /* 'default' enter sequence for state D */
- static void valuedEvents_enseq_boolean_region_D_default(ValuedEvents* handle)
- {
- /* 'default' enter sequence for state D */
- handle->stateConfVector[2] = ValuedEvents_boolean_region_D;
- handle->stateConfVectorPosition = 2;
- }
- /* 'default' enter sequence for state B */
- static void valuedEvents_enseq_real_region_B_default(ValuedEvents* handle)
- {
- /* 'default' enter sequence for state B */
- handle->stateConfVector[3] = ValuedEvents_real_region_B;
- handle->stateConfVectorPosition = 3;
- }
- /* 'default' enter sequence for state C */
- static void valuedEvents_enseq_real_region_C_default(ValuedEvents* handle)
- {
- /* 'default' enter sequence for state C */
- handle->stateConfVector[3] = ValuedEvents_real_region_C;
- handle->stateConfVectorPosition = 3;
- }
- /* 'default' enter sequence for state D */
- static void valuedEvents_enseq_real_region_D_default(ValuedEvents* handle)
- {
- /* 'default' enter sequence for state D */
- handle->stateConfVector[3] = ValuedEvents_real_region_D;
- handle->stateConfVectorPosition = 3;
- }
- /* 'default' enter sequence for state B */
- static void valuedEvents_enseq_string_region_B_default(ValuedEvents* handle)
- {
- /* 'default' enter sequence for state B */
- handle->stateConfVector[4] = ValuedEvents_string_region_B;
- handle->stateConfVectorPosition = 4;
- }
- /* 'default' enter sequence for state C */
- static void valuedEvents_enseq_string_region_C_default(ValuedEvents* handle)
- {
- /* 'default' enter sequence for state C */
- handle->stateConfVector[4] = ValuedEvents_string_region_C;
- handle->stateConfVectorPosition = 4;
- }
- /* 'default' enter sequence for state D */
- static void valuedEvents_enseq_string_region_D_default(ValuedEvents* handle)
- {
- /* 'default' enter sequence for state D */
- handle->stateConfVector[4] = ValuedEvents_string_region_D;
- handle->stateConfVectorPosition = 4;
- }
- /* 'default' enter sequence for region main region1 */
- static void valuedEvents_enseq_main_region1_default(ValuedEvents* handle)
- {
- /* 'default' enter sequence for region main region1 */
- valuedEvents_react_main_region1__entry_Default(handle);
- }
- /* 'default' enter sequence for region integer_region */
- static void valuedEvents_enseq_integer_region_default(ValuedEvents* handle)
- {
- /* 'default' enter sequence for region integer_region */
- valuedEvents_react_integer_region__entry_Default(handle);
- }
- /* 'default' enter sequence for region boolean_region */
- static void valuedEvents_enseq_boolean_region_default(ValuedEvents* handle)
- {
- /* 'default' enter sequence for region boolean_region */
- valuedEvents_react_boolean_region__entry_Default(handle);
- }
- /* 'default' enter sequence for region real_region */
- static void valuedEvents_enseq_real_region_default(ValuedEvents* handle)
- {
- /* 'default' enter sequence for region real_region */
- valuedEvents_react_real_region__entry_Default(handle);
- }
- /* 'default' enter sequence for region string_region */
- static void valuedEvents_enseq_string_region_default(ValuedEvents* handle)
- {
- /* 'default' enter sequence for region string_region */
- valuedEvents_react_string_region__entry_Default(handle);
- }
- /* Default exit sequence for state A */
- static void valuedEvents_exseq_main_region1_A(ValuedEvents* handle)
- {
- /* Default exit sequence for state A */
- handle->stateConfVector[0] = ValuedEvents_last_state;
- handle->stateConfVectorPosition = 0;
- }
- /* Default exit sequence for state B */
- static void valuedEvents_exseq_integer_region_B(ValuedEvents* handle)
- {
- /* Default exit sequence for state B */
- handle->stateConfVector[1] = ValuedEvents_last_state;
- handle->stateConfVectorPosition = 1;
- }
- /* Default exit sequence for state C */
- static void valuedEvents_exseq_integer_region_C(ValuedEvents* handle)
- {
- /* Default exit sequence for state C */
- handle->stateConfVector[1] = ValuedEvents_last_state;
- handle->stateConfVectorPosition = 1;
- }
- /* Default exit sequence for state D */
- static void valuedEvents_exseq_integer_region_D(ValuedEvents* handle)
- {
- /* Default exit sequence for state D */
- handle->stateConfVector[1] = ValuedEvents_last_state;
- handle->stateConfVectorPosition = 1;
- }
- /* Default exit sequence for state B */
- static void valuedEvents_exseq_boolean_region_B(ValuedEvents* handle)
- {
- /* Default exit sequence for state B */
- handle->stateConfVector[2] = ValuedEvents_last_state;
- handle->stateConfVectorPosition = 2;
- }
- /* Default exit sequence for state C */
- static void valuedEvents_exseq_boolean_region_C(ValuedEvents* handle)
- {
- /* Default exit sequence for state C */
- handle->stateConfVector[2] = ValuedEvents_last_state;
- handle->stateConfVectorPosition = 2;
- }
- /* Default exit sequence for state D */
- static void valuedEvents_exseq_boolean_region_D(ValuedEvents* handle)
- {
- /* Default exit sequence for state D */
- handle->stateConfVector[2] = ValuedEvents_last_state;
- handle->stateConfVectorPosition = 2;
- }
- /* Default exit sequence for state B */
- static void valuedEvents_exseq_real_region_B(ValuedEvents* handle)
- {
- /* Default exit sequence for state B */
- handle->stateConfVector[3] = ValuedEvents_last_state;
- handle->stateConfVectorPosition = 3;
- }
- /* Default exit sequence for state C */
- static void valuedEvents_exseq_real_region_C(ValuedEvents* handle)
- {
- /* Default exit sequence for state C */
- handle->stateConfVector[3] = ValuedEvents_last_state;
- handle->stateConfVectorPosition = 3;
- }
- /* Default exit sequence for state D */
- static void valuedEvents_exseq_real_region_D(ValuedEvents* handle)
- {
- /* Default exit sequence for state D */
- handle->stateConfVector[3] = ValuedEvents_last_state;
- handle->stateConfVectorPosition = 3;
- }
- /* Default exit sequence for state B */
- static void valuedEvents_exseq_string_region_B(ValuedEvents* handle)
- {
- /* Default exit sequence for state B */
- handle->stateConfVector[4] = ValuedEvents_last_state;
- handle->stateConfVectorPosition = 4;
- }
- /* Default exit sequence for state C */
- static void valuedEvents_exseq_string_region_C(ValuedEvents* handle)
- {
- /* Default exit sequence for state C */
- handle->stateConfVector[4] = ValuedEvents_last_state;
- handle->stateConfVectorPosition = 4;
- }
- /* Default exit sequence for state D */
- static void valuedEvents_exseq_string_region_D(ValuedEvents* handle)
- {
- /* Default exit sequence for state D */
- handle->stateConfVector[4] = ValuedEvents_last_state;
- handle->stateConfVectorPosition = 4;
- }
- /* Default exit sequence for region main region1 */
- static void valuedEvents_exseq_main_region1(ValuedEvents* handle)
- {
- /* Default exit sequence for region main region1 */
- /* Handle exit of all possible states (of ValuedEvents.main_region1) at position 0... */
- switch(handle->stateConfVector[ 0 ])
- {
- case ValuedEvents_main_region1_A :
- {
- valuedEvents_exseq_main_region1_A(handle);
- break;
- }
- default: break;
- }
- }
- /* Default exit sequence for region integer_region */
- static void valuedEvents_exseq_integer_region(ValuedEvents* handle)
- {
- /* Default exit sequence for region integer_region */
- /* Handle exit of all possible states (of ValuedEvents.integer_region) at position 1... */
- switch(handle->stateConfVector[ 1 ])
- {
- case ValuedEvents_integer_region_B :
- {
- valuedEvents_exseq_integer_region_B(handle);
- break;
- }
- case ValuedEvents_integer_region_C :
- {
- valuedEvents_exseq_integer_region_C(handle);
- break;
- }
- case ValuedEvents_integer_region_D :
- {
- valuedEvents_exseq_integer_region_D(handle);
- break;
- }
- default: break;
- }
- }
- /* Default exit sequence for region boolean_region */
- static void valuedEvents_exseq_boolean_region(ValuedEvents* handle)
- {
- /* Default exit sequence for region boolean_region */
- /* Handle exit of all possible states (of ValuedEvents.boolean_region) at position 2... */
- switch(handle->stateConfVector[ 2 ])
- {
- case ValuedEvents_boolean_region_B :
- {
- valuedEvents_exseq_boolean_region_B(handle);
- break;
- }
- case ValuedEvents_boolean_region_C :
- {
- valuedEvents_exseq_boolean_region_C(handle);
- break;
- }
- case ValuedEvents_boolean_region_D :
- {
- valuedEvents_exseq_boolean_region_D(handle);
- break;
- }
- default: break;
- }
- }
- /* Default exit sequence for region real_region */
- static void valuedEvents_exseq_real_region(ValuedEvents* handle)
- {
- /* Default exit sequence for region real_region */
- /* Handle exit of all possible states (of ValuedEvents.real_region) at position 3... */
- switch(handle->stateConfVector[ 3 ])
- {
- case ValuedEvents_real_region_B :
- {
- valuedEvents_exseq_real_region_B(handle);
- break;
- }
- case ValuedEvents_real_region_C :
- {
- valuedEvents_exseq_real_region_C(handle);
- break;
- }
- case ValuedEvents_real_region_D :
- {
- valuedEvents_exseq_real_region_D(handle);
- break;
- }
- default: break;
- }
- }
- /* Default exit sequence for region string_region */
- static void valuedEvents_exseq_string_region(ValuedEvents* handle)
- {
- /* Default exit sequence for region string_region */
- /* Handle exit of all possible states (of ValuedEvents.string_region) at position 4... */
- switch(handle->stateConfVector[ 4 ])
- {
- case ValuedEvents_string_region_B :
- {
- valuedEvents_exseq_string_region_B(handle);
- break;
- }
- case ValuedEvents_string_region_C :
- {
- valuedEvents_exseq_string_region_C(handle);
- break;
- }
- case ValuedEvents_string_region_D :
- {
- valuedEvents_exseq_string_region_D(handle);
- break;
- }
- default: break;
- }
- }
- /* The reactions of state A. */
- static void valuedEvents_react_main_region1_A(ValuedEvents* handle)
- {
- /* The reactions of state A. */
- }
- /* The reactions of state B. */
- static void valuedEvents_react_integer_region_B(ValuedEvents* handle)
- {
- /* The reactions of state B. */
- if (valuedEvents_check_integer_region_B_tr0_tr0(handle) == bool_true)
- {
- valuedEvents_effect_integer_region_B_tr0(handle);
- }
- }
- /* The reactions of state C. */
- static void valuedEvents_react_integer_region_C(ValuedEvents* handle)
- {
- /* The reactions of state C. */
- if (valuedEvents_check_integer_region_C_tr0_tr0(handle) == bool_true)
- {
- valuedEvents_effect_integer_region_C_tr0(handle);
- }
- }
- /* The reactions of state D. */
- static void valuedEvents_react_integer_region_D(ValuedEvents* handle)
- {
- }
- /* The reactions of state B. */
- static void valuedEvents_react_boolean_region_B(ValuedEvents* handle)
- {
- /* The reactions of state B. */
- if (valuedEvents_check_boolean_region_B_tr0_tr0(handle) == bool_true)
- {
- valuedEvents_effect_boolean_region_B_tr0(handle);
- }
- }
- /* The reactions of state C. */
- static void valuedEvents_react_boolean_region_C(ValuedEvents* handle)
- {
- /* The reactions of state C. */
- if (valuedEvents_check_boolean_region_C_tr0_tr0(handle) == bool_true)
- {
- valuedEvents_effect_boolean_region_C_tr0(handle);
- }
- }
- /* The reactions of state D. */
- static void valuedEvents_react_boolean_region_D(ValuedEvents* handle)
- {
- }
- /* The reactions of state B. */
- static void valuedEvents_react_real_region_B(ValuedEvents* handle)
- {
- /* The reactions of state B. */
- if (valuedEvents_check_real_region_B_tr0_tr0(handle) == bool_true)
- {
- valuedEvents_effect_real_region_B_tr0(handle);
- }
- }
- /* The reactions of state C. */
- static void valuedEvents_react_real_region_C(ValuedEvents* handle)
- {
- /* The reactions of state C. */
- if (valuedEvents_check_real_region_C_tr0_tr0(handle) == bool_true)
- {
- valuedEvents_effect_real_region_C_tr0(handle);
- }
- }
- /* The reactions of state D. */
- static void valuedEvents_react_real_region_D(ValuedEvents* handle)
- {
- }
- /* The reactions of state B. */
- static void valuedEvents_react_string_region_B(ValuedEvents* handle)
- {
- /* The reactions of state B. */
- if (valuedEvents_check_string_region_B_tr0_tr0(handle) == bool_true)
- {
- valuedEvents_effect_string_region_B_tr0(handle);
- }
- }
- /* The reactions of state C. */
- static void valuedEvents_react_string_region_C(ValuedEvents* handle)
- {
- /* The reactions of state C. */
- if (valuedEvents_check_string_region_C_tr0_tr0(handle) == bool_true)
- {
- valuedEvents_effect_string_region_C_tr0(handle);
- }
- }
- /* The reactions of state D. */
- static void valuedEvents_react_string_region_D(ValuedEvents* handle)
- {
- }
- /* Default react sequence for initial entry */
- static void valuedEvents_react_main_region1__entry_Default(ValuedEvents* handle)
- {
- /* Default react sequence for initial entry */
- valuedEvents_enseq_main_region1_A_default(handle);
- }
- /* Default react sequence for initial entry */
- static void valuedEvents_react_integer_region__entry_Default(ValuedEvents* handle)
- {
- /* Default react sequence for initial entry */
- valuedEvents_enseq_integer_region_B_default(handle);
- }
- /* Default react sequence for initial entry */
- static void valuedEvents_react_boolean_region__entry_Default(ValuedEvents* handle)
- {
- /* Default react sequence for initial entry */
- valuedEvents_enseq_boolean_region_B_default(handle);
- }
- /* Default react sequence for initial entry */
- static void valuedEvents_react_real_region__entry_Default(ValuedEvents* handle)
- {
- /* Default react sequence for initial entry */
- valuedEvents_enseq_real_region_B_default(handle);
- }
- /* Default react sequence for initial entry */
- static void valuedEvents_react_string_region__entry_Default(ValuedEvents* handle)
- {
- /* Default react sequence for initial entry */
- valuedEvents_enseq_string_region_B_default(handle);
- }
|