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.here These slides contain a lot of animations. For optimal results, watch in slideshow mode. 35 min
What is common?
models What is common? [… are representations of something else]
models What is common? [… are representations of something else]
models … are not the real thing!
models … are simpler than the real thing!
models
… capture different aspects
models … combat complexity
models … are indispensable for bigger projects bigger roles in
models Modelling your way out of complexity: Other useful CS2103/T, Lecture 10, Part 2, [Mar 27, 2015]
models for what?
models for what?
i. for analysis iii. as a blueprint ii. for communication In CS2103? models for what? Most common use
models for what? Most common use Nope, we don’t use UML diagrams i. for analysis ii. for communication iii. as a blueprint
models for what? Most common use i. for analysis ii. for communication iii. as a blueprint
Class diagrams Object diagrams Use cases Sequence diag. UML models Structure diagramsBehavior diagrams ……………………………. …………………………… ……………………………. Behavior diagrams Structure diagrams
Class diagrams Object diagrams Use cases Sequence diag. UML models Structure diagramsBehavior diagrams ……………………………. …………………………… …………………………….
What is the object/class structure?
Snakes&LaddersGame Player plays Piece Board Square Turn number owns played on 100 takes is on 2..* 1 * AutoMover Starts in 1 1 * has Die FaceValue dieValue Ends in 1 moves piece from moves piece to 1 1 name id name id = Conceptual Class Diagrams Snake Ladder
Snakes&LaddersGame Player plays Piece Board Square Turn number owns played on 100 takes is on 2..* 1 * AutoMover Starts in 1 1 * has Die FaceValue dieValue Ends in 1 moves piece from moves piece to Snake Ladder name id name id
Which class is least likely to appear in an OODM? a)Student b)Grade c)StudentArrayList d)AcademicMentor domain {a|b|c|d} e.g. domain c OR tinyurl.com/answerpost
Class diagrams Object diagrams Use cases Sequence diag. UML models Behavior diagrams OO domain models …………………………… ……………………………. Structure diagrams ?
Class diagrams Object diagrams Use cases Sequence diag. UML models Structure diagramsBehavior diagrams OO domain models …………………………… …………………………….
Package diagram
Deployment diagram
Package diagram Deployment diagram Component diagram
Composite structure diagram Deployment diagram Package diagram
Class diagrams Object diagrams Use cases Sequence diag. UML models Structure diagramsBehavior diagrams OO domain models …………………………… Package diagrams Deployment diagrams Component diagrams Composite structure diag. …………………………….
Class diagrams Object diagrams Use cases Sequence diag. UML models Behavior diagrams OO domain models …………………………… ……………………………. Package diagrams Deployment diagrams Component diagrams Composite structure diag. Structure diagrams
Show logo Show ‘loading’ screen Load file Show file Create file [first time use] init file
Show logo Show ‘loading’ screen Load file Show file Create file [first time use] init file
Show logo Show ‘loading’ screen Load file Show file Create file [first time use] init file actions
Show logo Show ‘loading’ screen Load file Show file Create file [first time use] init file
Show logo Show ‘loading’ screen Load file Show file Create file [first time use] init file
Show logo Show ‘loading’ screen Load file Show file Create file [first time use] init file
Show logo Show ‘loading’ screen Load file Show file Create file [first time use] init file
Show logo Show ‘loading’ screen Load file Show file Create file [first time use] init file
A A B B F F E E i.ABCEF ii.ADBCF iii.ABECF iv.ABCF v.ABCEDF vi.ACBEF D D C C
A A B B F F E E i.ABCEF ii.ADBCF iii.ABECF iv.ABCF v.ABCEDF vi.ACBEF D D C C
How many of these action sequences are allowed by this AD? A A B B F F E E i.ABCEF ii.ADBCF iii.ABECF iv.ABCF v.ABCEDF vi.ACBEF D D C C activity {1|2|3|4|5} e.g. activity OR tinyurl.com/answerpost
A A B B F F E E i.ABCEF ii.ADBCF iii.ABECF iv.ABCF v.ABCEDF vi.ACBEF D D C C
A A B B F F E E i.ABCEF ii.ADBCF iii.ABECF iv.ABCF v.ABCEDF vi.ACBEF D D C C
A A B B F F E E i.ABCEF ii.ADBCF iii.ABECF iv.ABCF v.ABCEDF vi.ACBEF D D C C
A A B B F F E E i.ABCEF ii.ADBCF iii.ABECF iv.ABCF v.ABCEDF vi.ACBEF D D C C
Class diagrams Object diagrams Use cases Sequence diag. UML models Behavior diagrams OO domain models Activity diagrams ……………………………. Package diagrams Deployment diagrams Component diagrams Composite structure diag. Structure diagrams ?
Class diagrams Object diagrams Use cases Sequence diag. UML models Structure diagramsBehavior diagrams OO domain models Activity diagrams ……………………………. Package diagrams Deployment diagrams Component diagrams Composite structure diag.
An object, a component, or a whole system. Who’s there? hmmp… come here baby Go away Ha? Knock knock…
PRE_GAME LOST READY new IN_PLAY WON deduce [incorrect deduction] [correct deduction] [correct deduction && no more cells to deduce] deduce [correct deduction && more cells to deduce] /start timer /stop timer
PRE_GAME LOST READY new IN_PLAY WON deduce [incorrect deduction] [correct deduction] [correct deduction && no more cells to deduce] deduce [correct deduction && more cells to deduce] /start timer /stop timer
PRE_GAME LOST READY new IN_PLAY WON deduce [incorrect deduction] [correct deduction] [correct deduction && no more cells to deduce] deduce [correct deduction && more cells to deduce] /start timer /stop timer
PRE_GAME LOST READY new IN_PLAY WON deduce [incorrect deduction] [correct deduction] [correct deduction && no more cells to deduce] deduce [correct deduction && more cells to deduce] /start timer /stop timer states
PRE_GAME LOST READY new IN_PLAY WON deduce [incorrect deduction] [correct deduction] [correct deduction && no more cells to deduce] deduce [correct deduction && more cells to deduce] /start timer /stop timer state transitions
PRE_GAME LOST READY new IN_PLAY WON deduce [incorrect deduction] [correct deduction] [correct deduction && no more cells to deduce] deduce [correct deduction && more cells to deduce] /start timer /stop timer triggers
PRE_GAME LOST READY new IN_PLAY WON deduce [incorrect deduction] [correct deduction] [correct deduction && no more cells to deduce] deduce [correct deduction && more cells to deduce] /start timer /stop timer guard conditions
PRE_GAME LOST READY new IN_PLAY WON deduce [incorrect deduction] [correct deduction] [correct deduction && no more cells to deduce] deduce [correct deduction && more cells to deduce] /start timer /stop timer activity
PRE_GAME LOST READY new IN_PLAY WON deduce [incorrect deduction] [correct deduction] [correct deduction && no more cells to deduce] deduce [correct deduction && more cells to deduce] /start timer /stop timer
Class diagrams Object diagrams Use cases Sequence diag. UML models Structure diagramsBehavior diagrams OO domain models Activity diagrams State Machine Diagrams ……………………………. Package diagrams Deployment diagrams Component diagrams Composite structure diag.
Class diagrams Object diagrams Use cases Sequence diag. UML models Structure diagramsBehavior diagrams OO domain models Activity diagrams State Machine Diagrams ……………………………. Package diagrams Deployment diagrams Component diagrams Composite structure diag.
Timing diagram
Interaction overview diagram
Communication diagram Timing diagram Interaction overview diagram
Class diagrams Object diagrams Use cases Sequence diag. UML models Structure diagramsBehavior diagrams OO domain models Activity diagrams State Machine diagrams Timing diagrams Interaction overview diag. Communication diag. Package diagrams Deployment diagrams Component diagrams Composite structure diag.
Class diagrams Object diagrams Use cases Sequence diag. UML models Structure diagramsBehavior diagrams OO domain models Activity diagrams State Machine diagrams Timing diagrams Interaction overview diag. Communication diag. Package diagrams Deployment diagrams Component diagrams Composite structure diag.