Sunday, September 23, 2007

The Composite Pattern

At this point in time, my group senior project is starting to take shape, our requirements document is almost finished and then we will begin to work on our design architecture. Until we start to work on the design of our project, I can only study design patterns that have a potential for being used. I thought chapter two in Design Patterns: Elements of Reusable Object-Oriented Software was helpful because it walked through a case study which brought up problems with designing and described how certain design patterns can be used to solve these problems. One design that I read about that I already see a use for is the composite pattern. Although graphics for my senior project are not part of my responsibilities, I will still discuss with my group members the benefits, structure, and implementation of using the composite pattern. Since our senior project is going to be a computer game, we will have several menus throughout the game which will be a composite of different several leafs and even other composites. This will allow us to treat individual objects and compositions of objects uniformly.

No comments: