Presentation is loading. Please wait.

Presentation is loading. Please wait.

Oct 3, 200291.3913 R. McFadyen1 From the Merriam-Webster’s online dictionary (www.m-w.com): Main Entry: an·thro·po·mor·phism Pronunciation: -"fi-z&m Function:

Similar presentations


Presentation on theme: "Oct 3, 200291.3913 R. McFadyen1 From the Merriam-Webster’s online dictionary (www.m-w.com): Main Entry: an·thro·po·mor·phism Pronunciation: -"fi-z&m Function:"— Presentation transcript:

1 Oct 3, 200291.3913 R. McFadyen1 From the Merriam-Webster’s online dictionary (www.m-w.com): Main Entry: an·thro·po·mor·phism Pronunciation: -"fi-z&m Function: noun Date: 1753 : an interpretation of what is not human or personal in terms of human or personal characteristics : HUMANIZATIONHUMANIZATION Anthropomorphism

2 Oct 3, 200291.3913 R. McFadyen2 Anthropomorphism Anthropomorphism: Object-oriented programming works like human organizations. Each object will communicate with another one by sending messages. So the software objects work by just sending those messages.

3 Oct 3, 200291.3913 R. McFadyen3 Responsibility-Driven Design (RDD) Detailed object design is usually done from the point of view of: –Objects have responsibilities –Objects collaborate –Similar to how we conceive of people In RDD we do object design such that we will ask questions such as: –What are the responsibilities of this object? –Who does it collaborate with?

4 Oct 3, 200291.3913 R. McFadyen4 Figure 3.1 on page 31 - Architectural Layers

5 Oct 3, 200291.3913 R. McFadyen5 Sample Problem What object should receive this message? What objects should interact to fulfill the request, and how?

6 Oct 3, 200291.3913 R. McFadyen6 Sample Problem How do the objects interact in order for changes in the data to be reflected in the two displays? Graphic Display List Display Data User

7 Oct 3, 200291.3913 R. McFadyen7 idea was first put forth by Christopher Alexander (1977) in his work on architectural design principles a pattern is a named problem/solution pair that can be applied in new contexts advice from previous designers to help designers in new situations rules of thumb - not new ideas There are many books on the subject Design Patterns by Erich Gamma et al Java Design Patterns: a tutorial, by James Cooper Patterns

8 Oct 3, 200291.3913 R. McFadyen8 Guiding principles to help us assign responsibilities GRASP: –General Responsibility Assignment Software Patterns –Very very fundamental, simple, basic principles of object design. GRASP Patterns Fundamental Principles of Object Design


Download ppt "Oct 3, 200291.3913 R. McFadyen1 From the Merriam-Webster’s online dictionary (www.m-w.com): Main Entry: an·thro·po·mor·phism Pronunciation: -"fi-z&m Function:"

Similar presentations


Ads by Google