Returns the trigger part of a reaction (label of transition or static reaction). The syntax of the reaction istrigger/action
.
●
●
Input/Output To list all events that have influence onS1
, which has several static reactions, use the following statements:stm_id st_id;
int status;
stm_list reactions;
stm_expression rct;
st_id = stm_r_st ("S1", status);
reactions = stm_r_st_reactions (st_id, status);
printf ("\n Triggers of reaction is S1:");
for (rct= (string)
stm_list_first_element (reaction, &status);
status == stm_success;
rct = (string)
stm_list_next_element (reaction, &status))
printf ("\n %S", stm_trigger_of_reaction (rct,
status));