stm_r_xx_type
a-flow-line
(compound)
Retrieves element subtypes for the specified element. Most Rational Statemate elements are divided into classes, referred to as subtypes. For example, a state might belong to one of a number of subtypes, such as and, or, basic, diagram, instance, or reference.
Input/Output The return value of the function belongs to an enumerated type. The enumerated type depends on the particular element type for which the function is performed. The enumerated type is named stm_element_type, where element varies as shown in the following table.
information-
flow
user-defined
type
Note: The valuestm_st_component
is not used.To retrieve the type of stateReady
and execute some statements if the state is anor
state, use the following statements:stm_id st_id;
stm_state_type st_type;
int status;
.
.
st_id = stm_r_st ("READY", &status);
st_type = stm_r_st_type (st_id, &status);
if(st_type == stm_st_or)
.
.
.