Class features Reception features The Features window for a reception enables you to change the features of a reception, including its type and the event to which the reception reacts. On the General tab, you define the general features for a reception through the various controls on the tab. Notice that the signature for the reception is displayed at the top of the General tab of the Features window. Љ In the Name box you specify the name of the reception. The default name is event_n , where n is an incremental integer starting with 0. To enter a detailed description of the reception, use the Description tab.
Љ If the Name box is inaccessible, click the L button to open the Name and Label window to change the name, if any. For information on creating labels, see Descriptive labels for elements . Љ In the Stereotype list you specify the stereotype of the attribute, if any. For information on creating stereotypes, see Stereotypes . – To select from a list of current stereotypes in the project, click the Select Stereotype button . – To sort the order of the selected stereotypes, click the Change Stereotype Order button . Note: The COM stereotypes are constructive; that is, they affect code generation.
Љ In the Visibility list you specify the visibility of the reception ( Public , Protected , or Private ), if available. Љ In the Type drop-down list box you specify the operation type. For receptions, this box is set to Reception. Љ In the Event list you specify the event to which the reception reacts. To view or modify the features of the event itself, click the Invoke Features window button. Deleting receptions You cannot delete receptions in the following cases: Љ The reception is used by the statechart of the class. Љ The reception is used by a derived statechart of a class that does not have its own reception.
Triggered operations A triggered operation can trigger a state transition in a statechart, just like an event. The body of the triggered operation is executed as a result of the transition being taken. For more information, see Triggered operations . Rational Rhapsody 75