Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 ooa2 Object-Oriented Software A model of the real world.

Similar presentations


Presentation on theme: "1 ooa2 Object-Oriented Software A model of the real world."— Presentation transcript:

1 1 ooa2 Object-Oriented Software A model of the real world

2 2 ooa2 Object-oriented u Objects encapsulate data and functions. u The world is modeled by the objects –each significant object in the world has an object in the software

3 3 ooa2 Object/Class Model

4 4 ooa2 Why is OO useful? u Easier to understand u Encourages re-use u Easier to maintain u Why? - because the objects in the software relate to objects in the real world and are thus easier to understand, have cleaner interfaces, are more stable and are more likely to be needed again

5 5 ooa2 OO Requirements Analysis u Identify the entities/objects in the real world that need to be modeled in the software. u Many approaches –classic - draw object model –Ivar Jacobson - use case first u I suggest starting with the Noun-in-Text approach

6 6 ooa2 Identifying Entities u Starting with a textual description (e.g. an SOW) –list nouns u using domain knowledge –add other entities u abstract activities –levels of abstraction

7 7 ooa2 Active Task 1 Tom is starting a dental practice in a small town. He will have a dental assistant, a dental hygienist and a receptionist. He wants a system to manage the appointments. When a patient calls for an appointment, the receptionist will check the calendar and will try to schedule the patient as early as possible to fill in vacancies. if the patient is happy with the proposed appointment, the receptionist will enter the appointment with patient name and purpose of appointment. L2S7 - TTYP – hardcopy with your names – no grade

8 8 ooa2 Active Task 2 – library – 8 min u Work with one other person and develop the list of objects and the object model (attributes, functions, multiplicities) for the following task. Put your names on the sheet and turn in. u The library has copies of books and patrons. Patrons can have up to 3 books borrowed at a time. Each book loan has a due date. Patrons can renew borrowed books once.

9 9 ooa2 Use Case Diagram u Draw important actors u Add each action

10 10 ooa2 Scenarios u A description of a sequence of actions

11 11 ooa2 Draw Interaction Diagrams u Vertical lines for the classes u Use scenario to put in function calls

12 12 ooa2 Existence Dependency u A class (parent) can be associated with a lower class (child) if –the lower (child) class only exists when the upper (parent) class exists –each instance of the lower (child) class is associated with exactly one instance of the upper (parent) class

13 13 ooa2 Measurement is important

14 14 ooa2 Time Log - measuring what you do u Fields –start (clock time - min) –stop (clock time - min) –interruptions (min) –categories (reading, studying, etc) –units (e.g. pages of text) u See page in SOS

15 15 ooa2 Example time log startstopintdeltacategoryunits 8/21 16:4017:30545reading10 pages 8/21 21:0521:3025studying 8/22 09:1010:051441reading20 pages

16 16 ooa2 TL1 (time log) assignment u Start today u Turn in Thursday, Sep 5 at start of class u Name and lab time must be on page u Include date, hours,min start and stop, delta,interruptions, categories, units u Determine your average pages/minute u Pressman pp1-52, and any other course related reading


Download ppt "1 ooa2 Object-Oriented Software A model of the real world."

Similar presentations


Ads by Google