Professional Documents
Culture Documents
UNIT III
Use-case Driven Object oriented Analysis
Unit Outcomes
Package :
Package is the only one grouping thing available for gathering
structural and behavioral things.
❑ Relationship:
✓ Association
✓ Association is basically a set of links that connects the elements of
a UML model.
✓ It also describes how many objects are taking part in that
relationship.
✓ There are different types of associations, such as one-to-one, one-
to-many, many-to-one, and many-to-many.
✓ It shows the static relationship between the entities of two classes.
✓ An association categorized into four types such as bi-directional,
unidirectional, aggregation (composition aggregation), and
reflexive.
✓ The mostly used associations are unidirectional and bi-directional.
✓ Aggregation
✓ An aggregation is a special form of association.
✓ It is also known as Has-a relationship.
✓ In aggregation, a child can exist independent of the parent.
✓ An aggregation relationship can describe as
✓ “an object of one class can own or access the objects of another
class.”
✓ Eg.
✓ A car needs a wheel to function correctly, but a wheel doesn’t
always need a car.
❑ A wheel used for bike, bicycle, or any other vehicles but not a
particular car.
✓ Realization
✓ Realization can be defined as a relationship in which two
elements are connected.
✓ One element describes some responsibility, which is not
implemented itself but the other one implements them.
✓ This relationship exists in case of interfaces.
❑ Relationship:
✓ Relationship is another most important building block of UML.
✓ It shows how the elements are associated with each other and this
association describes the functionality of an application.
✓ There are four kinds of relationships available.
Attribute
Multivalued Attribute
Key Attribute
Composite Attribute
Derived Attribute
One-to-One Relationship
One-to-many relationship
Many-to-one relationship
Many-to-many relationship
Relationships :
❑ Generalization:
5. Fork :
Fork nodes are used to support concurrent
activities.
6. Join :
Join nodes are used to support concurrent
activities converging into one.
✓ Messages:
Messages are arrows that represent communication
between objects.
✓ Use half-arrowed lines to represent asynchronous
messages.
✓
✓ Asynchronous messages are sent from an object that will not
wait for a response from the receiver before continuing its tasks.