Classes and types Defining the characteristics of a class Use the General tab of the Features window to define the characteristics of a class. On the General tab, you define the general features for a class through the various controls on the tab. Љ In the Name box you specify the name of the element. The default name is class_n , where n is an incremental integer starting with 0. To enter a detailed description of the class, use the Description tab. Љ You use the L button to open the Name and Label window to specify the label for the element, if any. For information on creating labels, see Descriptive labels for elements .
Љ In the Stereotype list you select the stereotype of the element, 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 Main Diagram list you specify the diagram (from the ones available) that contains the most complete view of the class. Љ In the Concurrency drop-down list box you specify the concurrency. The possible values are as follows: Active means the class runs on its own thread.
Sequential means the class runs on the system thread. Љ In the Defined In drop-down list box you specify the owner for the class. Every class lives inside either a package or another class. Note: A class not explicitly drawn in a package belongs to the default package of the diagram. If the diagram is not explicitly assigned to a package, the diagram belongs to the default package of the project. Љ In the Class Type area you specify the class type. The possible values are as follows: Regular creates a class. Template creates a template. To specify the necessary arguments, use the Template Parameters tab that displays once you select the Template radio button.
For more information, see Creating a template class . Instantiation creates an instantiation of a template. To specify the necessary arguments, use the Template Instantiation tab that displays once you select the Instantiation radio button. For more information, see Instantiating a template class . 66 User Guide