Utility Functions : List of Utility Functions : stm_trigger_of_reaction

stm_trigger_of_reaction
Function Type
stm_expression
Description
Returns the trigger part of a reaction (label of transition or static reaction). The syntax of the reaction is trigger/action.
Note:  

stm_r_st_reactions

stm_r_tr_labels

Syntax
stm_trigger_of_reaction (reaction, &status)
Arguments
Input/Output
 
Status Codes
stm_success
Example
To list all events that have influence on S1, 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));