quartz/content/notes/uml.md
2022-04-06 20:35:03 +12:00

111 lines
3.1 KiB
Markdown

---
title: UML
draft: true
---
# UML
A standard set of model constructs and notation defined by the object management group
specify what not how
- activity diagrams
- high level for business prcesses workflows
- low level for dtailed business logic
- advantages
- describe workflows
- specify relative processing rder of activites
- simple
- can be shown to stakeholders for checking and confirmation
enables implementation-independent specification of:
- user/system interactions
- partitioning of responsibility
- integration with larger or existing systems
- data flow and dependency
- order of operations (algorithms and processes)
- concurrent operations
## 1 why is is useful
- helps develop efficient effective correct designs
- better communication with project stakeholders
- gives a big picture view of the project system
- independent of specific programming languages or development processes
- de facto standard for modelling OO systems
## 2 what it is not
- visual modelling software
- a programming languages
- a software development process, method, or methodology
## 3 Types of diagram
### 3.1 structural
![](https://i.imgur.com/zS15EFj.png#invert)
### 3.2 behavioural
![](https://i.imgur.com/4lj2QIt.png#invert)
### 3.3 Linked diagrams
each digram type models a dfiferenct aspect of the system
many of the diagrams link to each other
- e.g., use case, sequence, activity
- e.g., object, communication
e.g.,
![](https://i.imgur.com/CWGGErM.png)
![Pasted image 20220323114226.png](None#invert)
### 3.4 Activites and transitions
![Pasted image 20220323114618.png](None#invert)
- activities
- take place over some pariod of time
- linked by transitions (arrows)
- only one starting point potentaily many ending conditions
- Transitions
- have guard conditions that must be satisfied before the transition can occur
### 3.5 Decision points
- represent conditional branching
- two or more alternative transitions depending on condition
- every transiiton exiting the decision point must have a guard condition
![Pasted image 20220323114826.png](None#invert)
### 3.6 Synchonisation bars
- represents two or more activites running in parallel
- transitions can be split into mutiple paths and recombined later
- if a workflow is split then it must be recombined on the same diagram
![Pasted image 20220323115040.png](None#invert)
### 3.7 swim lanes
- same as BPMN
- show who is responsible for a process
- can represent
- business organisations
- depts
- people (actors)
- can simplify processes
![Pasted image 20220323115203.png](None#invert#invert)
### 3.8 relationships to use cases
- use case diagrams show the high level interactions between actors and cases
- high level activity diagrams show the sequence of use cases within a workflow
![Pasted image 20220323115346.png](None#invert)
#### 3.8.1 example
![Pasted image 20220323115415.png](None#invert)
![Pasted image 20220323115451.png](None#invert)
![Pasted image 20220323115536.png](None#invert)
### 3.9 Example producing a book
![Pasted image 20220323114440.png](None#invert)
![Pasted image 20220323114555.png](None#invert)