04-04-UML-behavior-notes

04-04-UML-behavior-notes - Object Modeling Approach B....

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
1 B. Cheng Object Modeling Approach B. Cheng Object Modeling Approach • Start with a problem statement – High-level requirements • Define object model – Identify objects and classes – Prepare data dictionary – Identify associations and aggregations – Identify attributes of objects and links – Organize and simplify using inheritance – Iterate and refine the model – Group classes into modules 90 80 70 60 50 On Of Controller Fuel Valve Burner Water Pump Hot Water Fuel Temp Sensor Water Valve Control Panel Home The Home Heating System
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 B. Cheng Home Heating Requirements The software shal control the heat in each room The room shal be heated when the temperature is 2F below desired temp The room shal no longer be heated when the temperature is 2F above desired temp The flow of heat to each room shal be individual y control ed by opening and closing its water valve The valve shal be open when the room needs heat and closed otherwise The user shal set the desired temperature on the thermostat The operator shal be able to turn the heating system on and of The furnace must not run when the system is of When the furnace is not running and a room needs heat, the software shal turn the furnace on To turn the furnace on the software shal fol ow these steps open the fuel valve turn the burner on The software shal turn the furnace off when heat is no longer needed in any room To turn the furnace off the software shal fol ow these steps close fuel valve turn burner off The purpose of the software for the Home Heating System is to control the heating system that heats the rooms of a house . The software shall maintain the temperature of each room within a specified range by controlling the heat flow to individual rooms. B. Cheng Requirements Statements Extract Nouns Tentative Object Classes Eliminate Spurious Classes Object Classes Candidate Classes Controller Fuel Valve Burner Water Pump Hot Water Fuel Temp Sensor Water Valve software Home Heating System heating system room house temperature heat desired temp operator thermostat furnace on-off switch Control Panel Home range Identify Object Classes B. Cheng Eliminate Bad Classes Redundant classes – Classes that represent the same thing with different words Irrelevant classes – Classes we simply do not care about Vague classes – Classes with ill-defined boundaries Attributes – Things that describe individual objects Operations – Sequences of actions are often mistaken for classes Roles – The name of a class should reflect what it is, not the role it plays Implementation details – Save that for implementation
Background image of page 2
3 B. Cheng Controller Fuel Valve Burner Water Pump Hot Water Fuel Temp Sensor Water Valve software Home Heating System heating system room house temperature heat desired temp operator thermostat furnace Redundant Irrelevant Vague Attributes Operations Implementation Roles None None None
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 07/25/2008 for the course CSE 435 taught by Professor Cheng during the Fall '07 term at Michigan State University.

Page1 / 30

04-04-UML-behavior-notes - Object Modeling Approach B....

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online