Skip to Content.
Sympa Menu

gang-of-4-patterns - Re: [gang-of-4-patterns] query on composite pattern

gang-of-4-patterns AT lists.cs.illinois.edu

Subject: Design Patterns discussion

List archive

Re: [gang-of-4-patterns] query on composite pattern


Chronological Thread 
  • From: Prantor.Bora AT lawson.com
  • To: rajesh AT cs.iitm.ernet.in
  • Cc: gang-of-4-patterns AT cs.uiuc.edu, gang-of-4-patterns-admin AT cs.uiuc.edu
  • Subject: Re: [gang-of-4-patterns] query on composite pattern
  • Date: Thu, 20 Nov 2003 08:52:59 -0600
  • List-archive: <http://mail.cs.uiuc.edu/pipermail/gang-of-4-patterns/>
  • List-id: Design Patterns discussion <gang-of-4-patterns.cs.uiuc.edu>

One bad way might be each whole keeping a list of its parts. We will still
be able to traverse from a whole to its parts but not nicely.





rajesh AT cs.iitm.ernet.in


Sent by: To:
gang-of-4-patterns AT cs.uiuc.edu

gang-of-4-patterns-admin@ cc: (bcc:
Prantor Bora/Lawson)
cs.uiuc.edu Subject:
[gang-of-4-patterns] query on composite pattern




11/19/2003 11:06 PM









Hello,

1) What is the exact problem the composite pattern is addressing?
Can I formulate it(problem) like , how do we represent part-whole
hierarchies and to treat individual objects and compositions uniformly?
(is this the problem ?)

2) Assume that we don't have composite pattern.How do we achieve the
solution for the problem that the composite pattern is addressing.In other
words, What is the bad smell for composite design pattern in the code that
doesn't have any pattern based solution? or What is the naive solution for
the problem of composite design pattern?

looking forward for reply.

regards
rajesh

--
===================================================================


"Genius is one percent inspiration and 99 percent perspiration."
-- Thomas Alva Edison


===================================================================


_______________________________________________
gang-of-4-patterns mailing list
gang-of-4-patterns AT cs.uiuc.edu
http://mail.cs.uiuc.edu/mailman/listinfo/gang-of-4-patterns









Archive powered by MHonArc 2.6.16.

Top of Page