Download presentation
Presentation is loading. Please wait.
Published byEustacia Brooks Modified over 6 years ago
1
35 min WARNING These slides are not optimized for printing or exam preparation. These are for lecture delivery only. These slides are made for PowerPoint They may not show up well on other PowerPoint versions. You can download PowerPoint 2010 viewer from here. These slides contain a lot of animations. For optimal results, watch in slideshow mode.
2
What word is common to all three?
3
What word is common to all three?
models [… are representations of something else]
4
models … are not the real thing!
5
models … are simpler than the real thing!
6
models
7
models … capture different aspects
8
models … combat complexity
9
models bigger roles in … are indispensable for bigger projects
10
CS2103/T, Lecture 10, Part 1, [Oct 21, 2016]
Modelling your way out of complexity: Other useful models CS2103/T, Lecture 10, Part 1, [Oct 21, 2016]
11
models for what?
12
models for what?
13
models for what? i. for analysis ii. for communication
iii. as a blueprint
14
Model-Driven Development
iii. as a blueprint
15
models for what? i. for analysis ii. for communication
iii. as a blueprint
16
models for what? In CS2103? i. for analysis ii. for communication
Most common use i. for analysis ii. for communication In CS2103? iii. as a blueprint
17
Nope, we don’t use UML diagrams
models for what? Most common use i. for analysis ii. for communication Nope, we don’t use UML diagrams iii. as a blueprint
18
UML models Structure diagrams Behavior diagrams Class diagrams
Object diagrams Use cases Sequence diag. Behavior diagrams Structure diagrams ……………………………. …………………………… ……………………………. …………………………….
19
UML models Structure diagrams Behavior diagrams Class diagrams
Object diagrams Use cases Sequence diag. ……………………………. …………………………… ……………………………. …………………………….
20
What is the object/class structure?
Problem Domain
22
OO Domain Model = Conceptual Class Diagrams Die FaceValue 1 plays
Snakes&LaddersGame 2..* owns takes Player Turn 1 played on name id dieValue Piece 1 * is on Board 0..1 1 moves piece from Square 100 1 number moves piece to 1 1 Starts in Ends in OO Domain Model has * AutoMover Snake = Conceptual Class Diagrams Ladder
23
OO Domain Model Die FaceValue 1 plays Snakes&LaddersGame 2..* owns
takes Player Turn 1 played on name id dieValue Piece 1 * is on Board 0..1 1 moves piece from Square 100 1 number moves piece to 1 1 Starts in Ends in OO Domain Model has * AutoMover Snake Ladder
24
Which class is least likely to appear in an OODM?
Student Grade StudentArrayList AcademicMentor domain {a|b|c|d} e.g. domain c OR tinyurl.com/answerpost
25
? UML models Structure diagrams Behavior diagrams Class diagrams
Object diagrams Use cases Sequence diag. OO domain models ? …………………………… ……………………………. …………………………….
26
UML models Structure diagrams Behavior diagrams Class diagrams
Object diagrams Use cases Sequence diag. OO domain models …………………………… ……………………………. …………………………….
27
Package diagram
28
Package diagram Deployment diagram
29
Package diagram Deployment diagram Component diagram
30
Composite structure diagram
Package diagram Deployment diagram Composite structure diagram Component diagram
31
UML models Structure diagrams Behavior diagrams Class diagrams
Object diagrams Use cases Sequence diag. OO domain models …………………………… Package diagrams Deployment diagrams Component diagrams Composite structure diag. …………………………….
32
UML models Structure diagrams Behavior diagrams Class diagrams
Object diagrams Use cases Sequence diag. OO domain models …………………………… Package diagrams Deployment diagrams Component diagrams Composite structure diag. …………………………….
34
What is the workflow?
35
What is the workflow? Activity Diagram
36
Activity Diagram Show logo [first time use] Load file
Show ‘loading’ screen Load file Show file Create file [first time use] init file Activity Diagram
37
Activity Diagram Show logo [first time use] Load file
Show ‘loading’ screen Create file init file Activity Diagram Show file
38
Activity Diagram actions Show logo [first time use] Load file
Show ‘loading’ screen Create file init file Activity Diagram Show file
39
Activity Diagram Show logo [first time use] Load file
Show ‘loading’ screen Create file init file Activity Diagram Show file
40
Activity Diagram Show logo [first time use] Load file
Show ‘loading’ screen Create file init file Activity Diagram Show file
41
Activity Diagram Show logo [first time use] Load file
Show ‘loading’ screen Create file init file Activity Diagram Show file
42
Activity Diagram Show logo [first time use] Load file
Show ‘loading’ screen Create file init file Activity Diagram Show file
43
Activity Diagram Show logo [first time use] Load file
Show ‘loading’ screen Create file init file Activity Diagram Show file
44
ABCEF ADBCF ABECF ABCF ABCEDF ACBEF A B D E C F
45
ABCEF ADBCF ABECF ABCF ABCEDF ACBEF A B D E C F
46
ABCEF ADBCF ABECF ABCF ABCEDF ACBEF A B D E C F
47
ABCEF ADBCF ABECF ABCF ABCEDF ACBEF A B D E C F
48
ABCEF ADBCF ABECF ABCF ABCEDF ACBEF A B D E C F
49
ABCEF ADBCF ABECF ABCF ABCEDF ACBEF A B D E C F
50
? UML models Structure diagrams Behavior diagrams Class diagrams
Object diagrams Use cases Sequence diag. ? OO domain models Activity diagrams Package diagrams Deployment diagrams Component diagrams Composite structure diag. …………………………….
51
UML models Structure diagrams Behavior diagrams Class diagrams
Object diagrams Use cases Sequence diag. OO domain models Activity diagrams Package diagrams Deployment diagrams Component diagrams Composite structure diag. …………………………….
52
State-dependent behavior
53
State-dependent behavior
54
State-dependent behavior
hmmp… Who’s there? Knock knock… An object, a component, or a whole system. Ha? Go away come here baby
55
State-dependent behavior
PRE_GAME LOST READY new IN_PLAY WON deduce [incorrect deduction] [correct deduction] [correct deduction && no more cells to deduce] [correct deduction && more cells to deduce] /start timer /stop timer
56
State-dependent behavior
PRE_GAME LOST READY new IN_PLAY WON deduce [incorrect deduction] [correct deduction] [correct deduction && no more cells to deduce] [correct deduction && more cells to deduce] /start timer /stop timer
57
State Machine Diagram PRE_GAME new READY deduce [incorrect deduction]
LOST deduce [incorrect deduction] [correct deduction] /stop timer /start timer [correct deduction && more cells to deduce] deduce IN_PLAY WON deduce [correct deduction && no more cells to deduce] /stop timer
58
State Machine Diagram states PRE_GAME new READY deduce
[incorrect deduction] deduce LOST deduce [incorrect deduction] [correct deduction] /stop timer /start timer [correct deduction && more cells to deduce] deduce IN_PLAY states WON deduce [correct deduction && no more cells to deduce] /stop timer
59
State Machine Diagram state transitions PRE_GAME new READY deduce
[incorrect deduction] deduce LOST deduce [incorrect deduction] [correct deduction] /stop timer /start timer [correct deduction && more cells to deduce] deduce IN_PLAY state transitions WON deduce [correct deduction && no more cells to deduce] /stop timer
60
State Machine Diagram triggers PRE_GAME new READY deduce
[incorrect deduction] deduce LOST deduce [incorrect deduction] [correct deduction] /stop timer /start timer [correct deduction && more cells to deduce] deduce IN_PLAY triggers WON deduce [correct deduction && no more cells to deduce] /stop timer
61
State Machine Diagram guard conditions PRE_GAME new READY deduce
[incorrect deduction] deduce LOST deduce [incorrect deduction] [correct deduction] /stop timer /start timer [correct deduction && more cells to deduce] deduce IN_PLAY guard conditions WON deduce [correct deduction && no more cells to deduce] /stop timer
62
State Machine Diagram activity PRE_GAME new READY deduce
[incorrect deduction] deduce LOST deduce [incorrect deduction] [correct deduction] /stop timer /start timer [correct deduction && more cells to deduce] deduce IN_PLAY activity WON deduce [correct deduction && no more cells to deduce] /stop timer
63
State Machine Diagram PRE_GAME new READY deduce [incorrect deduction]
LOST deduce [incorrect deduction] [correct deduction] /stop timer /start timer [correct deduction && more cells to deduce] deduce IN_PLAY WON deduce [correct deduction && no more cells to deduce] /stop timer
64
State Machine Diagram
65
UML models Structure diagrams Behavior diagrams Class diagrams
Object diagrams Use cases Sequence diag. OO domain models Activity diagrams Package diagrams Deployment diagrams Component diagrams Composite structure diag. State Machine Diagrams …………………………….
66
UML models Structure diagrams Behavior diagrams Class diagrams
Object diagrams Use cases Sequence diag. OO domain models Activity diagrams Package diagrams Deployment diagrams Component diagrams Composite structure diag. State Machine Diagrams …………………………….
67
Timing diagram
68
Interaction overview diagram
Timing diagram Interaction overview diagram
69
Interaction overview diagram Communication diagram
Timing diagram Interaction overview diagram Communication diagram
70
UML models Structure diagrams Behavior diagrams Class diagrams
Object diagrams Use cases Sequence diag. OO domain models Activity diagrams Package diagrams Deployment diagrams Component diagrams Composite structure diag. State Machine diagrams Timing diagrams Interaction overview diag. Communication diag.
72
Try to use these two in your Developer Guide
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.