Single-Element Functions : List of Functions : stm_r_xx_reactions

stm_r_xx_reactions
Returns the static reactions of the specified state. The syntax of these reactions is trigger/action.

stm_r_reactions (st_id, &status)

Function Type
stm_list
For Elements
Syntax
stm_r_xx_reactions (xx_id, &status)
Arguments
 
Input/Output
Status Codes
Example
To extract all static reactions of state S1, 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)){
.
.
}