1 / 71

WARNING

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 .

peri
Download Presentation

WARNING

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  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 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.

  2. What is common?

  3. models What is common? [… 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. models Modelling your way out of complexity: Other useful CS2103/T, Lecture 10, Part 2, [Mar 28, 2014]

  11. models for what?

  12. models for what?

  13. Most common use i. for analysis ii. for communication models for what? In CS2103? iii. as a blueprint

  14. Most common use i. for analysis ii. for communication Nope, we don’t use UML diagrams models for what? iii. as a blueprint

  15. Most common use i. for analysis ii. for communication models for what? iii. as a blueprint

  16. iii. as a blueprint Model-Driven Development

  17. UML models Structure diagrams Behavior diagrams Class diagrams Object diagrams Use cases Sequence diag. Behavior diagrams Structure diagrams …………………………… ……………………………. ……………………………. ……………………………. ……………………………. ……………………………. ……………………………. ……………………………. ……………………………. …………………………….

  18. UML models Structure diagrams Behavior diagrams Class diagrams Object diagrams Use cases Sequence diag. …………………………… ……………………………. ……………………………. ……………………………. ……………………………. ……………………………. ……………………………. ……………………………. ……………………………. …………………………….

  19. What is the object/class structure? Problem Domain

  20. 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

  21. 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

  22. 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

  23. UML models Structure diagrams Behavior diagrams Class diagrams Object diagrams Use cases Sequence diag. ? …………………………… OO domain models ……………………………. ……………………………. ……………………………. ……………………………. ……………………………. ……………………………. ……………………………. …………………………….

  24. UML models Structure diagrams Behavior diagrams Class diagrams Object diagrams Use cases Sequence diag. …………………………… OO domain models ……………………………. ……………………………. ……………………………. ……………………………. ……………………………. ……………………………. ……………………………. …………………………….

  25. Package diagram

  26. Package diagram Deployment diagram

  27. Package diagram Deployment diagram Component diagram

  28. Package diagram Deployment diagram Composite structure diagram Component diagram

  29. 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. ……………………………. ……………………………. ……………………………. …………………………….

  30. 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. ……………………………. ……………………………. ……………………………. …………………………….

  31. What is the workflow?

  32. What is the workflow? Activity Diagram

  33. Show logo [first time use] Load file Show ‘loading’ screen Create file init file Activity Diagram Show file

  34. Show logo [first time use] Load file Show ‘loading’ screen Create file init file Activity Diagram Show file

  35. Show logo actions [first time use] Load file Show ‘loading’ screen Create file init file Activity Diagram Show file

  36. Show logo [first time use] Load file Show ‘loading’ screen Create file init file Activity Diagram Show file

  37. Show logo [first time use] Load file Show ‘loading’ screen Create file init file Activity Diagram Show file

  38. Show logo [first time use] Load file Show ‘loading’ screen Create file init file Activity Diagram Show file

  39. Show logo [first time use] Load file Show ‘loading’ screen Create file init file Activity Diagram Show file

  40. Show logo [first time use] Load file Show ‘loading’ screen Create file init file Activity Diagram Show file

  41. ABCEF • ADBCF • ABECF • ABCF • ABCEDF • ACBEF A B D E C F

  42. ABCEF • ADBCF • ABECF • ABCF • ABCEDF • ACBEF A B D E C F

  43. How many of these action sequences are allowed by this AD? • ABCEF • ADBCF • ABECF • ABCF • ABCEDF • ACBEF A B D E C F activity {1|2|3|4|5} e.g. activity 2 77577OR tinyurl.com/answerpost

  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. 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. ……………………………. ……………………………. ……………………………. …………………………….

More Related