Traian Florin Șerbănuță
2025
An object diagram shows a snapshot of the system at a particular time — instances of classes and the links between them.
Visualize examples of how objects are related at runtime.
Understand class diagram structure by concrete examples.
Objects, attribute values, and links.
Assume we want to model arithmetic expressions with variables:
Expr ::= Const Int | Var String | Plus Expr Expr | Times Expr Expr
Draw a class diagram for the given model
Draw an object diagram containing at least one instance every class, all connected.
Package diagrams organize elements (classes, components, other packages, …) into groups.
Manage large models and clarify dependencies among system parts.
Packages, dependencies, imports, merges.
Package structure for an e-comerce app
Task: Given several classes/Packages
(Website, Mobile App, Payment,
CustomerService, Cart, ProductDB,
CustomerDB), propose a modular package structure.
Goal: Reduce coupling and improve clarity.
Describe how software components (subsystems, modules, libraries) are connected.
Model large-scale structure and interactions between replaceable parts.
Components, interfaces, ports, dependencies.
Components represent pieces that are independently purchasable and upgradeable
They are about how customers want to relate to software
Buy components one piece at a time
Upgrade one component or another at any time
Mix and match pieces from different providers
You are given a system for online learning (students, courses, and grading services).
Identify 3–5 major components and describe their provided and required interfaces.
Represent the physical deployment of software artifacts on hardware nodes.
Model distributed systems and deployment topologies.
Nodes (devices, servers), artifacts (software units), communication links.
Given a system that includes (but is not limited to) a mobile app, a REST API backend, and a cloud database, create a simple deployment diagram.
| Diagram Type | What It Models | Typical Use |
|---|---|---|
| Object | Instances and links at runtime | Example snapshots |
| Package | Logical grouping of elements | Modular organization |
| Component | Subsystem/module structure | Software architecture |
| Deployment | Physical topology | System infrastructure |
Takeaway: Structural diagrams complement behavioral ones by showing the static “shape” of a system.