lecture4_design_uml.pdf - CSC3380 Object Oriented Design Lecture 4 Design and UML About the Quiz About the Teams Why source control Setting up your

lecture4_design_uml.pdf - CSC3380 Object Oriented Design...

This preview shows page 1 - 15 out of 40 pages.

CSC3380 Object Oriented Design Lecture 4: Design and UML
Image of page 1
About the Quiz
Image of page 2
About the Teams
Image of page 3
Last Class Why source control? Setting up your project. Source control guidelines
Image of page 4
This class How to start the design process How to write UML
Image of page 5
Object-oriented design is: What classes do I need? What fields are in the classes? What methods are in the classes? How are they connected?
Image of page 6
What classes do I need? Read requirements spec. for important nouns. The example we’ll be using: - cs.gordon.edu/courses/cs211/ATMExample/
Image of page 7
Mission: class discovery
Image of page 8
What relevant types/objects do we find? ATM Card reader ATM card Console: Keypad Display Message Transaction PIN Envelope slot Cash dispenser Printer Key-switch Com-link Bank computer (external) Customer Log
Image of page 9
Which of these objects are complex/simple? A complex object is composed of other objects. A simple object depends only on built-in types. ATM obviously depends on everything else. The console depends on the keypad and the display [other examples]
Image of page 10
Some simple objects Card reader ATM card Keypad Display Envelope slot Cash dispenser Printer Key- switch
Image of page 11
Why do we care? Simple objects can be modelled first. Complex objects can be modelled after simple ones. OO-design: bottom-up design
Image of page 12
Image of page 13