Returns the static reactions of the specified state. The syntax of these reactions istrigger/
action
.
● To divide the static reactions into their trigger and action parts, use the utility routinesstm_trigger_of_reaction
andstm_action_of_reaction
.stm_r_reactions (st_id, &status)
Input/Output To extract all static reactions of stateS1
, use the following statements:stm_id state_id;
int status;
stm_list reactions;
stm_expression react;
.
.
state_id = stm_r_st ("S1", &status);
reactions = stm_r_st_reactions (state_id, &status);
if(status == stm_success)
for(react = (string)
stm_list_first_element (reactions, &status);
status == stm_success;
react = (string)
stm_list_next_element (reactions, &status)){
.
.
}