Changes

Jump to: navigation, search

Composite

645 bytes added, 00:55, 15 February 2007
no edit summary
In software development the <i>composite</i> pattern is a tree structure like object which combines objects with similar functionality. Often programmers need to manipulate inheriting objects in a similar way thus they can use the composite pattern.
<br />
<br />
__TOC__
<li>Visitor</li>
</ul>
<br />
==UML Diagram==
Here is a UML representation of the composite pattern.
[[Image:Composite.GIF|Composite Design Pattern]]
<br />
Source of the image: http://www.exciton.cs.rice.edu/JavaResources/DesignPatterns/composite.htm
===Notepad++ - C++===
This code is These codes are taken for the window.h and Notepad_plus.h file of the <i>Notepad++</i> which is distributed under the [http://www.gnu.org/copyleft/gpl.html GNU] GNU General Public License agreement and handles handle various window related task. The leaf must impliment functions such as display and reSizeTo.
<pre>
===Limewire - Java===
This code is taken from Limwire project which is distributed under the [http://www.gnu.org/copyleft/gpl.html GNU] GNU General Public License agreement and is an open source file sharing software. The first file is taken form the Torrent.java which defines various functions required to handle torrent files. The leaf will then have to implement these functions.
<pre>
}
</pre>
 
==References==
 
<ul>
<li>[http://en.wikipedia.org/wiki/Composite_pattern Composite pattern]</li>
<li>[http://www.exciton.cs.rice.edu/JavaResources/DesignPatterns/composite.htm Composite Design Pattern]</li>
<li>[http://www.limewire.com/english/content/home.shtml Limewire]</li>
<li>[http://notepad-plus.sourceforge.net/uk/site.htm Notepad++]</li>
</ul>
1
edit

Navigation menu