Title: Lecture 10 Other UML Notations
1Lecture 10Other UML Notations
- Activity Diagrams
- Documenting workflows
- Basic Notation
- ATM Case Study withdrawal use-case
- Packages and Subsystems
- Implementation Diagrams (very briefly)
- Component diagrams
- Deployment diagrams
2UML Activity Diagrams
- Used to document workflows
- Modelling business activities or systems
- Modelling activities within/between use-cases
- Detailed description of operations in classes
- Similar notation to UML statechart diagrams
- Activities (action states)
- States
- Transitions
3Activity Diagrams State Diagrams
- Notationally, very similar
- Important to distinguish purpose/use
- State diagrams
- behaviour of individual objects/components
- show state transitions triggered by events
- Activity diagrams
- behaviour within systems/organizations
- transitions between activities (work flows)
4Activity Diagrams Basic Notation
Start state
Activities
Transitions
Simple Activity Diagram with start and stop states
Final state
5Activity Diagrams Decision Points
Decision points allow branching depending on a
condition
Guard condition
Decision point
Invalid PIN
Valid PIN
6Activity Diagrams Swimlanes
Swimlanes are a useful notation for indicating
where an activity takes place
7ATM Case Study Workflow for Withdrawal Use-Case
Withdraw Cash
8ATM Case StudyElaborated Use-Case Description
Actor
System
9ATM Case Study Activity Diagram for Withdrawal
ATM Customer
ATM System
Select withdrawal
Display menu
Insufficient funds
Select amount
Sufficient funds
User takes card
Return card
Notify user
Dispense cash
10Packages and Subsystems
- Package a collection of model elements
- grouping semantically related elements
- analysing system architecture
- hiding irrelevant detail on a diagram
- Subsystem special sort of package
- representing units of the physical system
- developing components of the design
11Packages Organising Model Elements
Account System
12ATM Case Study Layered Architecture
ATM System
Packages represent different aspects of system
architecture. Packages can be nested. Note also
the asymmetry of dependencies between packages.
13UML Component Diagrams
Relationship between components
ltltcommunicatesgtgt
ATMControl.java
Component diagrams show how physical units such
as files, executables, etc. are related
Notation for components
14UML Deployment Diagrams
Communication association
Deployment diagrams model configuration of
hardware elements
Nodes
15Summary
- Activity diagrams
- Model workflows
- Transitions between activities
- Use-case modelling/business modelling
- Packages
- Group logically related units
- Implementation diagrams
- Component diagrams document physical elements
- Deployment diagrams document hardware elements