720 likes | 734 Views
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 2010. They may not show up well on other PowerPoint versions . You can download PowerPoint 2010 viewer from here .
E N D
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 2010. 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.
models • What word is common to all three? [… 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 bigger roles in … are indispensable for bigger projects
models Modelling your way out of complexity: Other useful CS2103/T, Lecture 10, Part 1, [Oct 21, 2016]
models for what?
models for what?
i. for analysis ii. for communication models for what? iii. as a blueprint
iii. as a blueprint Model-Driven Development
i. for analysis ii. for communication models for what? iii. as a blueprint
Most common use i. for analysis ii. for communication models for what? In CS2103? iii. as a blueprint
Most common use i. for analysis ii. for communication Nope, we don’t use UML diagrams models for what? iii. as a blueprint
UML models Structure diagrams Behavior diagrams Class diagrams Object diagrams Use cases Sequence diag. Behavior diagrams Structure diagrams …………………………… ……………………………. ……………………………. ……………………………. ……………………………. ……………………………. ……………………………. ……………………………. ……………………………. …………………………….
UML models Structure diagrams Behavior diagrams Class diagrams Object diagrams Use cases Sequence diag. …………………………… ……………………………. ……………………………. ……………………………. ……………………………. ……………………………. ……………………………. ……………………………. ……………………………. …………………………….
What is the object/class structure? Problem Domain
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 has * OO Domain Model AutoMover Snake = Conceptual Class Diagrams Ladder
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 has * OO Domain Model AutoMover Snake Ladder
Which class is least likely to appear in an OODM? • Student • Grade • StudentArrayList • AcademicMentor domain {a|b|c|d} e.g. domain c 77577OR tinyurl.com/answerpost
UML models Structure diagrams Behavior diagrams Class diagrams Object diagrams Use cases Sequence diag. ? …………………………… OO domain models ……………………………. ……………………………. ……………………………. ……………………………. ……………………………. ……………………………. ……………………………. …………………………….
UML models Structure diagrams Behavior diagrams Class diagrams Object diagrams Use cases Sequence diag. …………………………… OO domain models ……………………………. ……………………………. ……………………………. ……………………………. ……………………………. ……………………………. ……………………………. …………………………….
Package diagram Deployment diagram
Package diagram Deployment diagram Component diagram
Package diagram Deployment diagram Composite structure diagram Component diagram
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. ……………………………. ……………………………. ……………………………. …………………………….
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. ……………………………. ……………………………. ……………………………. …………………………….
What is the workflow? Activity Diagram
Show logo [first time use] Load file Show ‘loading’ screen Create file init file Activity Diagram Show file
Show logo [first time use] Load file Show ‘loading’ screen Create file init file Activity Diagram Show file
Show logo actions [first time use] Load file Show ‘loading’ screen Create file init file Activity Diagram Show file
Show logo [first time use] Load file Show ‘loading’ screen Create file init file Activity Diagram Show file
Show logo [first time use] Load file Show ‘loading’ screen Create file init file Activity Diagram Show file
Show logo [first time use] Load file Show ‘loading’ screen Create file init file Activity Diagram Show file
Show logo [first time use] Load file Show ‘loading’ screen Create file init file Activity Diagram Show file
Show logo [first time use] Load file Show ‘loading’ screen Create file init file Activity Diagram Show file
ABCEF • ADBCF • ABECF • ABCF • ABCEDF • ACBEF A B D E C F
ABCEF • ADBCF • ABECF • ABCF • ABCEDF • ACBEF A B D E C F
ABCEF • ADBCF • ABECF • ABCF • ABCEDF • ACBEF A B D E C F
ABCEF • ADBCF • ABECF • ABCF • ABCEDF • ACBEF A B D E C F
ABCEF • ADBCF • ABECF • ABCF • ABCEDF • ACBEF A B D E C F
ABCEF • ADBCF • ABECF • ABCF • ABCEDF • ACBEF A B D E C F
UML models Structure diagrams Behavior diagrams Class diagrams Object diagrams Use cases Sequence diag. ? Activity diagrams OO domain models Package diagrams Deployment diagrams Component diagrams Composite structure diag. ……………………………. ……………………………. ……………………………. …………………………….