Analiza și Modelarea Sistemelor Software - Lab 3

Traian Șerbănuță

2025

Agenda

Tools

Parking Lot Exercise

Scenario: Airport parking lot

Package Diagram

Package diagrams are commonly used to:

Symbol Name Description
Package Groups common elements based on data, behavior, or user interaction
Dependency Depicts the relationship between one element (package, named element, etc) and another

Dependencies in Package Diagrams

There are two main types of dependencies between packages:

  1. Import dependency — allows access to all public elements of another package

  2. Access dependency — limits access to specific elements only

Exercise

Create a package diagram based on the class diagram for the parking lot.

Component Diagrams

Symbol Name Description
Component Modular part of a system that encapsulates its contents and whose manifestation is replaceable within its environment
Required interface Represents the services needed/used by the component
Provided interface Represents the services delivered by the component

Exercise

Create a component diagram based on the class diagram for the parking lot.