Package Diagram Example: Layerd Application


Package diagram can be used to define and structure layers within an application. Here is a package diagram example created for this purpose. From the diagram, you can see that packages are used to model the top layer (i.e. Layer application), the groups within the second layer (e.g. Presentation, Services, Business, Data, etc) and the packages in lower layer (e.g. UI, logic, workflow, etc). A package diagram contains nothing but package, sub-system and model. It's mainly used to present the structure of a domain.

Use this package diagram as an example to create your own package diagram. Click Use this Template to start, or click Create Blank to create a new one.

What is Package Diagram?

Package is some kind of organizational model elements that provides a way to group related UML elements. e.g., classes or use cases. Thus, you may use a package diagram to group different entities (such as objects, classes or use cases) into logical packages and describe the interrelationship between them at a high level. You can scope their name as a namespace in a package. Graphically, a package is represented as file folders, which may contain other packages in hierarchical manner.

Usage of Package Diagram

  • Package diagrams can use packages containing use cases to illustrate the functionality of a software system.
  • Package diagrams can use packages that represent the different layers of a software system to illustrate the layered architecture of a software system.
    • The dependencies between these packages can be adorned with labels / stereotypes to indicate the communication mechanism between the layers.

Keen to try VP Online?

No limitations, no obligations, no cancellation fees.

Start a Free Trial