Sunday, June 2, 2013

What is a UML Package Diagram?

Package diagrams organize the elements of a system into related groups to minimize dependencies among them.

Basic Package Diagram Symbols and Notations

Packages

Use a tabbed folder to illustrate packages. Write the name of the package on the tab or inside the folder. Similar to classes, you can also list the attributes of a package.


Visibility


Visibility markers signify who can access the information contained within a package. Private visibility means that the attribute or the operation is not accessible to anything outside the package. Public visibility allows an attribute or an operation to be viewed by other packages. Protected visibility makes an attribute or operation visible to packages that inherit it only.


Dependency

Dependency defines a relationship in which changes to one package will affect another package. Importing is a type of dependency that grants one package access to the contents of another package.



No comments:

Post a Comment