Warnier/Orr Basics
Warnier/Orr digrams have 8 fundamental building blocks.
1
.
Hierarquia
Warnier/Orr
LDC
Whole
Part 1
Part 2
Part 3
The hierarchy operation breaks things into parts:
The whole consisists of Part 1 and Part 2 and Part 3.
2
.
Sequência
Warnier/Orr
LDC
Job
Task A
Task B
Task C
Sequence orders things:
The whole consisisis of first Task A, followed by Task B, then Task C.
3
.
Seleção
Warnier/Orr
LDC
Color
| Red
| Green
| Blue.
Selection allows choices:
Color consisists of either Red or Green or Blue.
4
.
Complemento
Warnier/Orr
LDC
Action Code
| Valid
| NOT Valid
Complement is the logical NOT:
The Action Code is either Valid or NOT Valid.
5
.
Repetição
Warnier/Orr
LDC
Job
Task A
(3)
Task B
(3,T)
Task C
Repetition provides looping:
Job consists of first doing Task A 3 times, followed by 3 to T repetitions of Task B then doing Task C 1 time.
6
.
Concorrência
Warnier/Orr
LDC
Job
Task A
Task B
Concurrency allows things to happen at the same time:
Job consists of Task A and Task B at the same time.
7
.
Bloco Begin/End
Warnier/Orr
LDC
Task
Begin
...
...
...
End
...
...
The Begin block performs inicialization and the End block performs termination.
8
.
Recursão
Warnier/Orr
LDC
Process item
Step 1
Process item
Structure B
A recursion process contains itself as a sub-process.