About this task
Use the Features window to define the features
of an actor. An actor has the following features:
- Name specifies the name
of the element. The default name is actor_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 actor, if any. They are enclosed in guillemets,
for example «s1» and enable you to tag classes for
documentation purposes.
Note: The COM stereotypes are
constructive; that is, they affect code generation.
- Main Diagram specifies the
main diagram for the actor.
More than one
use-case diagram can contain the same use case or actor. You can select
one of these diagrams to be the main diagram for the use case or actor.
This is the diagram that opens when you select the Open Main Diagram option
in the browser.
- Concurrency specifies the
concurrency of the actor. The possible values are as follows:
- Sequential where the element
runs with other classes on a single system thread. This means you
can access this element only from one active class.
- Active where the element
starts its own thread and runs concurrently with other active classes.
- Defined In specifies which
element owns this actor. An actor can be owned by a package, class,
or another actor.
- Class Type specifies the
class type. The possible values are as follows:
- Regular creates a regular
class.
- Template creates a template.
To specify the necessary arguments, click the Arguments button.
- Instantiation creates an
instantiation of a template.
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.
To specify the necessary arguments, click the Arguments button.