Structural Models
Structural Models
Structural models describe the components of a system and how they are related.
They represent the architecture of the software, showing the internal structure
and the relationships between system parts, such as modules, classes, and objects.
They help in visualizing:
Example:
[Person]
- name
- age
+ getDetails()
[Student] → inherits from → [Person]
2. Component Diagrams (UML)
4. Deployment Diagrams
Relationship
Type Description
Association A general link between classes
Aggregation A "whole-part" relationship where parts can exist
independently
Stronger "whole-part" relationship where parts cannot exist
Composition
without the whole
Inheritance One class inherits attributes and methods from another
Dependency One element depends on another to function
• Make it easier to divide the system into smaller parts (modularity) and keep it
updated (maintainability).
Process/business logic
Used For Code/database design
design
Who or what interacts with the system (external entities like people or other systems)
What data or information flows between the system and these entities,
The operational environment, including hardware, software, and organizational
structures. Where the system works
A context model is a simple diagram that shows how a system connects with the outside
world. These models are very useful when planning a new system. They help developers
and other people clearly understand what the system will do and how it will connect with
other things
1. Define System Boundaries – Helps to clarify what is inside and outside the
system.
2. Identify Interfaces – Shows inputs to and outputs from the system.
3. Understand Dependencies – Recognizes the system’s dependencies on
external components.
4. Improve Communication – Provides a simple visual or conceptual tool for
discussions between stakeholders.
Shows the whole system as one process in the center. External people or systems
are shown around it. Arrows indicate data flow between the system and external
entities.
• Describe the physical and technical environment where the system operates.
• Include devices, sensors, actuators, networks, and physical locations.
• Often used in embedded systems and IoT applications.
3. Organizational Context Models