Use the General tab of the Features
window to define the characteristics of a class.
About this task
To define the general
features for a class, on the General tab:
- Name specifies 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.
- L specifies the label for
the element, if any.
- Stereotype specifies the
stereotype of the element, if any. They are enclosed in guillemets,
for example «s1» and enable you to tag classes for
documentation purposes.
- 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.
- Main Diagram specifies the
diagram (from the ones available) that contains the most complete
view of the class.
- Concurrency specifies 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.
- Defined In specifies 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.
- Class Type specifies 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.
- 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.
Note: To create an instance of a class, select
the
Instantiation radio button and select the
template that the instance is from. For example, if you have a template
class
A and create
B as an instance
of that class, this means that
B is created as an
instance of class
A at run time.