Use the Features window to change the description of an
object, including its concurrency and multiplicity.
About this task
An object has the following
features:
- Name specifies the name of the element.
The default name is object_n, where n is an
incremental integer starting with 0.
- L specifies the label for the element, if
any.
- Stereotype specifies the stereotype of the
object, if any. They are enclosed in guillemets, for example «s1» and
enable you to tag classes for documentation purposes. For information
about creating stereotypes, see Defining stereotypes
Note: The COM stereotypes are
constructive; that is, they affect code generation.
- Main Diagram specifies the main diagram
for the object. This field is available only for objects with implicit
type.
- Concurrency specifies the concurrency of
the object. This field is available only for objects with implicit
type. The possible values are as follows:
- Sequential where the element runs with other
classes on a single system thread. This structure means you can access
this element only from one active class.
- Active where the element starts its own
thread and run concurrently with other active classes.
- Type specifies the class of which the object
is an instance. To view the features for that class, click the Invoke
Feature Dialog button next to the Type field.
In
addition to the names of all the instantiated classes in the model,
this list includes the following choices: - <Implicit> specifies an implicit object
- <Explicit> specifies an explicit object
- <New> enables you to specify a new
class
- <Select> enables you to browse for
a class using the selection tree
- Multiplicity specifies the number of occurrences
of this instance in the project. Common values are one (1), zero or
one (0,1), or one or more (1..*).
- Initialization specifies the constructor
called when the object is created. If you click the Ellipsis button
next to the Initialization field, the Actual Call window opens so
you can see the details of the call. If the part does not have a constructor
with parameters, this field is dimmed and the button is unavailable.
- Relation to whole enables you to name the
relation for a part. If the object is part of a composite class, enable
the Knows its whole as check box and type a name for the relation
in the text box. This relation is displayed in the browser under the Association
Ends category under the instantiated class or implicit object.
If the Relation to whole field is specified on the General tab,
the Features window includes tabs to define that relation and its
properties. However, on the tab that specifies the features of its
whole (in the illustration of the itsController tab), only the Name, Label, Stereotype,
and Description fields can be modified.