Utility Functions : List of Utility Functions : stm_list_extraction_by_type

stm_list_extraction_by_type
Extracts elements of the specified type from the given list of Rational Statemate elements.
Function Type
stm_list
Syntax
stm_list_extraction_by_type (element_type, list, &status)
Arguments
Input/Output
element_type is one of the possible values of the enumerated type stm_element_type.
The values of this type usually take the form stm_element_type (for example, stm_state, stm_event, and so on).
Status Codes
Example
To extract a list of all the activities appearing in a list of Rational Statemate elements, the input list is assigned to the variable act_list using the following statement:

stm_list list, act_list;
int status;
.
.
act_list = stm_list_extraction_by_type (stm_activity,
list, &status);
.
.

Note that stm_activity is a constant value, not a variable.