Wal's Fish Tank
From CSSEMediaWiki
(Difference between revisions)
Douglas Wall (Talk | contribs) m (Some more tweaks) |
Douglas Wall (Talk | contribs) m (And another tweak) |
||
Line 49: | Line 49: | ||
[[Image:Fish_Factory.jpeg|'''Fish Factory''']] | [[Image:Fish_Factory.jpeg|'''Fish Factory''']] | ||
+ | |||
+ | ---- | ||
===The Result=== | ===The Result=== |
Revision as of 20:30, 14 October 2009
Contents |
Wal's Fish Tank
This content is duplicated from Wal's Cosc324 lecture material of 2008. It has been reproduced with the permission of Lord Wal (One pattern to rule them all and in the design philosophy bind them!).
Simulated fish tank
- Lots of different kinds of fish
- Only ever one tank
- Multiple views possible
- Schools of fish
- Remoras and barnacles
- Fish spawn new fish
Singleton
Only ever one tank
Observer
Multiple views possible (FishView is a gui view)
Composite
Schools of fish
Decorator
Remoras and barnacles
Factory Method
Fish spawn new fish