07-dealingwithchange

07-dealingwithchange - Dealing with Change Kenneth M....

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

View Full Document Right Arrow Icon
Dealing with Change Kenneth M. Anderson University of Colorado, Boulder CSCI 4448/5448 — Lecture 7 — 09/15/2009 1
Background image of page 1

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

View Full DocumentRight Arrow Icon
Sad News • Computer Science lost one of its members this weekend • Michael Tuthill • He will be missed by his friends and teachers here at CU • Mary Friedericks, the director of Victim Services, contacted me to say that if you need help or need to talk about this situation, please call: (303) 492-8855 2
Background image of page 2
Lecture Goals • Dealing with Change • More on Requirements and Use Cases • Use Case Styles • Emphasize the OO concepts and techniques encountered in Chapter 3 3
Background image of page 3

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

View Full DocumentRight Arrow Icon
But frst… a quiz • Not for points, but to make sure you’ve been learning the material we’ve covered so far • First Question • What is the general term for a relationship between two classes? • What do we call an instance of such a relationship? 4
Background image of page 4
Quiz • First Question • What is the general term for a relationship between two classes? • Association • What do we call an instance of such a relationship? • Link 5
Background image of page 5

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

View Full DocumentRight Arrow Icon
Quiz • Second Question • One type of association is the “whole-part” relationship • We covered two types of this relationship, what were they called? • DeFne the three properties associated with this type of relationship. 6
Background image of page 6
Quiz • Second Question • One type of association is the “whole-part” relationship • We covered two types of this relationship, what were they called? • Aggregation / Composition • DeFne the three properties associated with this type of relationship. • Transitive: A contains B and B contains C implies A contains C • Asymmetric: A contains B means B does not contain A • Existence Dependence: If A contains B and A is deleted, then B is deleted (this is true only for composition) 7
Background image of page 7

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

View Full DocumentRight Arrow Icon
• Third Question (Take home, will present answer on Thursday) • Draw a UML class diagram that captures the following relationships • The world is a matrix of locations. Each location is a particular type of terrain (water, grass, forest, mountain) and may have the player on it or one or more creatures. A player can either be a warrior or a wizard. A warrior has access to one or more weapons, each that deal different amounts of damage and that have different ranges (e.g., a bow can attack a creature that is Fve squares or closer). A wizard has access to one or more spells, each that deal different amounts of damage, have different ranges, and that might linger for one or more turns. A creature has a description and two attacks, one melee and one ranged, that deal different amounts of damage. Both creatures and players have a certain number of hit points and know their current location in the world. • ±eel free to read between the lines to Fnd a set of classes that can model this
Background image of page 8
Image of page 9
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/11/2010 for the course CSCI 5448 taught by Professor Anderson during the Fall '09 term at Colorado.

Page1 / 42

07-dealingwithchange - Dealing with Change Kenneth M....

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

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