Chair of Software Engineering
So#ware Architecture
- Prof. Bertrand Meyer, Dr. Michela Pedroni
So#ware Architecture Prof. Bertrand Meyer, Dr. Michela Pedroni ETH - - PowerPoint PPT Presentation
Chair of Software Engineering So#ware Architecture Prof. Bertrand Meyer, Dr. Michela Pedroni ETH Zurich, FebruaryMay 2010 Lecture 17: Some key lessons Lessons in software engineering & architecture The role of object technology The
Chair of Software Engineering
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Example classes: PLANE, ACCOUNT, TRANSACTION… STATE, COMMAND… HASH_TABLE… TEST_DRIVER… TABLE…
19
A D I V
20
21
A D I V&V G A D I V&V G A D I V&V G A D I V&V G
22
Cluster 1 Cluster 2
A D I V&V G A D I V&V G A D I V&V G
Cluster 1 Cluster 2
23
A D I V&V G
A D I V&V G A D I V&V G
A D I V&V G
24
A D I V&V G A D I V&V G A D I V&V G
25
26
27
deferred class VAT inherit TANK feature in_valve, out_valve: VALVE fill is
require in_valve.open
deferred ensure in_valve.closed
is_full end empty, is_full, is_empty, gauge, maximum, ... [Other features] ... invariant is_full = (gauge >= 0.97 * maximum) and (gauge <= 1.03 * maximum) end
28
29