Presentation is loading. Please wait.

Presentation is loading. Please wait.

WARNING These slides are not optimized for printing or exam preparation. These are for lecture delivery only. These slides are made for PowerPoint 2010.

Similar presentations


Presentation on theme: "WARNING These slides are not optimized for printing or exam preparation. These are for lecture delivery only. These slides are made for PowerPoint 2010."— Presentation transcript:

1 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.here These slides contain a lot of animations. For optimal results, watch in slideshow mode. 35 min

2 What is common?

3 models What is common? [… are representations of something else]

4 models What is common? [… are representations of something else]

5 models … are not the real thing!

6 models … are simpler than the real thing!

7 models

8 … capture different aspects

9 models … combat complexity

10 models … are indispensable for bigger projects bigger roles in

11 models Modelling your way out of complexity: Other useful CS2103/T, Lecture 10, Part 2, [Mar 27, 2015]

12 models for what?

13 models for what?

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

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

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

17

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

19 Class diagrams Object diagrams Use cases Sequence diag. UML models Structure diagramsBehavior diagrams ……………………………. …………………………… …………………………….

20 What is the object/class structure?

21

22 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 1 0..1 Snake Ladder

23 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 1 0..1 Snake Ladder name id name id

24 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 77577 OR tinyurl.com/answerpost

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

26 Class diagrams Object diagrams Use cases Sequence diag. UML models Structure diagramsBehavior diagrams OO domain models …………………………… …………………………….

27 Package diagram

28 Deployment diagram

29 Package diagram Deployment diagram Component diagram

30 Composite structure diagram Deployment diagram Package diagram

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

32 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

33

34

35

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

37

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

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

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

41 Show logo Show ‘loading’ screen Load file Show file Create file [first time use] init file

42 Show logo Show ‘loading’ screen Load file Show file Create file [first time use] init file

43 Show logo Show ‘loading’ screen Load file Show file Create file [first time use] init file

44 Show logo Show ‘loading’ screen Load file Show file Create file [first time use] init file

45 A A B B F F E E i.ABCEF ii.ADBCF iii.ABECF iv.ABCF v.ABCEDF vi.ACBEF D D C C

46 A A B B F F E E i.ABCEF ii.ADBCF iii.ABECF iv.ABCF v.ABCEDF vi.ACBEF D D C C

47 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 2 77577 OR tinyurl.com/answerpost

48 A A B B F F E E i.ABCEF ii.ADBCF iii.ABECF iv.ABCF v.ABCEDF vi.ACBEF D D C C

49 A A B B F F E E i.ABCEF ii.ADBCF iii.ABECF iv.ABCF v.ABCEDF vi.ACBEF D D C C

50 A A B B F F E E i.ABCEF ii.ADBCF iii.ABECF iv.ABCF v.ABCEDF vi.ACBEF D D C C

51 A A B B F F E E i.ABCEF ii.ADBCF iii.ABECF iv.ABCF v.ABCEDF vi.ACBEF D D C C

52 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 ?

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

54

55 An object, a component, or a whole system. Who’s there? hmmp… come here baby Go away Ha? Knock knock…

56 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

57 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

58 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

59 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

60 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

61 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

62 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

63 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

64 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

65

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

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

68 Timing diagram

69 Interaction overview diagram

70 Communication diagram Timing diagram Interaction overview diagram

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

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

73

74

75


Download ppt "WARNING These slides are not optimized for printing or exam preparation. These are for lecture delivery only. These slides are made for PowerPoint 2010."

Similar presentations


Ads by Google