Unified Modelling Language (UML) Software Engineering Lab. Sharif University of Technology
Why We Model ? ► A model is a simplification of reality. model ► We build models so that we can better understand the system we are developing ► Benefits: Models help us to visualize a system as it is or as we want it to be. Models permit us to specify the structure or behavior of a system. behavior Models give us a template that guides us in constructing a system. template Models document the decisions we have made.
Building Blocks of the UML Building Blocks of the UML ► The vocabulary of the UML encompasses three kinds of building blocks: ► The vocabulary of the UML encompasses three kinds of building blocks: Things Relationships Diagrams
Things Classes Interfaces Use Case Component Node Packages Notes
Relationships in the UML ► Dependency ► Association ► Generalization ► Realization
Diagrams in the UML Class diagram Object diagram Use case diagram Sequence diagram Collaboration diagram Statechart diagram Activity diagram Component diagram Deployment diagram
Use case Diagram
Classes
Class Diagram
Modeling Simple Collaborations
Modeling a Logical Database Schema
Generalization Among Packages
Modeling Groups of Elements
Sequence Diagrams
Collaboration Diagrams
Activity Diagrams
State Machines
Components
Components and Interfaces
Nodes and Components