stm_r_xx_instance_nameReturns the name of the instance as it appears in the chart for a specific hierarchical Rational Statemate element.stm_r_instance_name (id, &status)
● This function is relevant only for states, internal modules, and regular or control activities, because only these elements can have instances.
Input/Output To return the name of an instance for state namedS1@S1_def
, use the following statements:stm_id state_id;
int status;
.
.
.
state_id = stm_r_st ("S1", &status);
printf ("\n Instance Name: %s",
stm_r_st_instance_name (state_id, &status));
.
.
.
The name is written to the output isS1@S1_def
.