UML Overview What is UML Universal Modeling Language

  • Slides: 12
Download presentation
UML Overview

UML Overview

What is UML? Universal Modeling Language - Created during the OO ascendance - An

What is UML? Universal Modeling Language - Created during the OO ascendance - An attempt to have a consistent way to diagram out ◦ - Architecture ◦ - Design ◦ - Requirements In the case of Requirements, UML was heavily touted as ‘the’ way to show Use Cases

Types of diagrams • Class diagram • Object diagram • Use case diagram •

Types of diagrams • Class diagram • Object diagram • Use case diagram • Sequence diagram • Collaboration diagram • Activity diagram • Statechart diagram • Deployment diagram • Component diagram We’ll look at Use Case Diagrams for now

UML Hierarchy UML Structural Class Component Object Structure Deployment Package Behavioural Use Case State

UML Hierarchy UML Structural Class Component Object Structure Deployment Package Behavioural Use Case State Activity Interaction Communication Timing Sequence

Notation: Class & Object Classes Visibility +: public -: Private #: Protected Objects Name

Notation: Class & Object Classes Visibility +: public -: Private #: Protected Objects Name Attributes Methods Optional information What’s the difference between a class and an object? Underline indicates object

Notation: Inheritance and Association Passengers Child Parent Generalization (increasing) Inheritance 0. . * Aeroplane

Notation: Inheritance and Association Passengers Child Parent Generalization (increasing) Inheritance 0. . * Aeroplane Association

Notation: States ATM Transaction Initial State Final State

Notation: States ATM Transaction Initial State Final State

Notations Interfaces: A circle with a name

Notations Interfaces: A circle with a name

Interaction diagrams Communications between objects

Interaction diagrams Communications between objects

Components of Use Cases Intent - To show the software from the perspective of

Components of Use Cases Intent - To show the software from the perspective of the user The actor The use cases

The fall from grace Once the gold standard, UML has been criticized for: -

The fall from grace Once the gold standard, UML has been criticized for: - Complexity in notation - Time to create - Lack of clarity So why talk about it? - Some parts are still very relevant ◦ - Sequence diagrams, Swim Lanes, … - You may run into this in interviews or on the job (UML has been around, and legacy lives on!)

References https: //www. tutorialspoint. com/uml_basic_notations. htm http: //empirical-software. engineering/assets/pdf/fse 14 -sketches-slides. pdf

References https: //www. tutorialspoint. com/uml_basic_notations. htm http: //empirical-software. engineering/assets/pdf/fse 14 -sketches-slides. pdf