Utility Functions : List of Utility Functions : stm_trigger_of_reaction

stm_trigger_of_reaction

Function type: STRING

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

The reaction is achieved by the following single-element functions:

The function returns an empty string when the trigger is missing.

Syntax

stm_trigger_of_reaction (reaction, status)

Arguments
 
Status Codes
Example
To list all events that have influence on S1, which has several static reactions, use the following statements in your template:

Variable
STATE st_id;
INTEGER status;
LIST OF STRING reactions;
STRING rct;
st_id:=stm_r_st(’S1’,status);
reactions:=stm_r_st_reactions (st_id, status);
WRITE (’\n Triggers of reaction is S1:’);
FOR rct IN reactions LOOP
WRITE (’\n’, stm_trigger_of_reaction (rct, status));
END FOR;