Swimlanes can also be used to identify areas at the technology level where
activities are carried out
Swimlanes allow the partition an activity diagram so that parts of it appear in
the swimlane relevant to that element in the partition
You can add a guard condition to an activity edge between two nodes, where the guard condition
defines a condition that must be satisfied before the target activity node can be invoked. You can
define the guard condition in the following ways:
name [guard condition] - The guard condition is created and is assigned a name.
[guard conditon] - The guard condition is created, but is not assigned a unique name.
In the following figure, one activity node called OpaqueAction is connected to a second activity
node, called OpaqueAction2. A guard condition, called Guard1, specifies that the value of g
coming from OpaqueAction must be greater than 10 for OpaqueAction2 to be invoked.
iii. Explain the different among Bidirectional, Unidirectional & Reflexive Association.
An association is a relationship between two classes represented by a solid line. Associations are
bi-directional by default, so both classes know about each other and about the relationship
between them. Either end of the line can have a role name and multiplicity. In the example,
Student has the role of "tenant" in relation to Apartment and Apartment has the role of
"accommodation" in relation to Student. Also, any instance of Apartment can be associated with
up to four students and any student could be associated with 0 or 1 Apartment (a student either
has an apartment to live in or does not).
Associations can also be unidirectional, where one class knows about the other class and the
relationship but the other class does not. Such associations require an open arrowhead to point to
the class that is known and only the known class can have a role name and multiplicity. In the