0% found this document useful (0 votes)
38 views11 pages

Lec 13 UML Structure Diagrams 2

This document provides an overview of object diagrams and package diagrams in UML structure diagrams. It defines key elements such as objects, classes, packages, dependencies, imports and merges. It also provides examples of how these elements are depicted in object and package diagrams through the use of graphs and relationships. The document is intended to help explain the purpose and composition of these two types of UML diagrams.

Uploaded by

Hafiza Maria
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views11 pages

Lec 13 UML Structure Diagrams 2

This document provides an overview of object diagrams and package diagrams in UML structure diagrams. It defines key elements such as objects, classes, packages, dependencies, imports and merges. It also provides examples of how these elements are depicted in object and package diagrams through the use of graphs and relationships. The document is intended to help explain the purpose and composition of these two types of UML diagrams.

Uploaded by

Hafiza Maria
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 11

Software Design and

Architecture
Lecture 13 UML Structure Diagrams
By
Khawaja Sarmad Arif
1
Object Diagram

• An object diagram is a graph of instances, including


objects and data values. A static object diagram is an
instance of a class diagram; it shows a snapshot of the
detailed state of a system at a point in time.

2
Object Diagram

3
Package Diagram

• Package diagram is UML structure
diagram which shows packages and
dependencies between the packages.
• The following elements are typically drawn in
a package diagram: 
– package, packageable element,
dependency, element import, package
import, package merge.

4
Package

• Package is a namespace used to group together


elements that are semantically related

5
Packageable Entity

• Packageable element is a named element that may


be owned directly by a package. Some examples
of packageable elements are:
– Class 
– Component 
– Package
– Event

6
Dependency

• Same as dependency in class diagram

7
Package Import

• Package import is a directed relationship between an


importing namespace and imported package, that
allows the use of unqualified names to refer to the
package members from the other namespace(s).

8
Element Import

• Element import is a directed relationship between an


importing namespace and imported packageable
element. It allows the element to be referenced using
its name without a qualifier. An element import is
used to selectively import individual elements without
relying on a package import.

9
Package Merge

• A package merge is a directed relationship between


two packages that indicates that content of one
package is extended by the contents of another
package.

10
Package Diagram

11
http://www.sparxsystems.com/resources/uml2_tutorial/uml2_packagediagram.html

You might also like