The Artima Developer Community
Sponsored Link

.NET Buzz Forum
Reverse Composite Pattern

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Jonathan Crossland

Posts: 630
Nickname: jonathanc
Registered: Feb, 2004

Jonathan Crossland is a software architect for Lucid Ocean Ltd
Reverse Composite Pattern Posted: Oct 29, 2005 8:27 AM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Jonathan Crossland.
Original Post: Reverse Composite Pattern
Feed Title: Jonathan Crossland Weblog
Feed URL: http://www.jonathancrossland.com/syndication.axd
Feed Description: Design, Frameworks, Patterns and Idioms
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Jonathan Crossland
Latest Posts From Jonathan Crossland Weblog

Advertisement


I found a case for a reversal of the standard composite today.

Basically, a class that works from a collection of leaf classes, that works its way up to the root.

Not sure if there is a pattern relating to this kind of need in another catalogue, but it seemed simple enough to reverse the GOF composite.

I need to expand on this idea over the next few weeks, and coalesce it with the decorator, builder and abstract factory patterns.




One of the main reasons behind this is multiple paths to a set endpoint. The root becomes the set endpoint where by we can plot a course from a leaf. The Leaf though is where we start from and full knowledge of all leaves should be known at the outset.


Read: Reverse Composite Pattern

Topic: Windows Vista to RTM on July 25, 2006? Previous Topic   Next Topic Topic: New Scrum Image

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use