<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
	>
<channel>
	<title>Comments on: ActionsScript 3.0 Design Pattern Relations Part II: Aggregation</title>
	<atom:link href="http://www.as3dp.com/2010/01/26/actionsscript-3-0-design-pattern-relations-part-ii-aggregation/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.as3dp.com/2010/01/26/actionsscript-3-0-design-pattern-relations-part-ii-aggregation/</link>
	<description>OOP Techniques for Flash and Flex Developers</description>
	<lastBuildDate>Mon, 26 Jul 2010 13:40:37 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: William B. Sanders</title>
		<link>http://www.as3dp.com/2010/01/26/actionsscript-3-0-design-pattern-relations-part-ii-aggregation/comment-page-1/#comment-3951</link>
		<dc:creator>William B. Sanders</dc:creator>
		<pubDate>Mon, 01 Feb 2010 10:35:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.as3dp.com/?p=2476#comment-3951</guid>
		<description>Hi William,

Keep in mind that &lt;em&gt;both&lt;/em&gt; &lt;strong&gt;aggregation&lt;/strong&gt; and &lt;strong&gt;acquaintance&lt;/strong&gt; deal with &lt;em&gt;&lt;strong&gt;composition&lt;/strong&gt;&lt;/em&gt;. On a different topic, whole and part may be pivotal, but here the focus is on the &lt;em&gt;relationships between participants&lt;/em&gt;. Acquaintance and aggregation constitute relationships between the participants. So that&#039;s where we need to focus and  try and understand the difference between the two. Unfortunately, &lt;em&gt;there is a difference&lt;/em&gt; between them, but it is subtle and based on intent as much as specific details. That means there is a &lt;em&gt;right&lt;/em&gt; and &lt;em&gt;wrong&lt;/em&gt; insofar as using one or the other.

One thing that has helped me is to compare the relationship between a Client class and its acquaintance and an Aggregator class and the Aggregatee. I cannot think of a single design pattern where the Client has an aggregate relationship with a design pattern, but you will find lots of patterns where you&#039;ll find aggregate relations between the pattern participants. If you look at the way in which those relations are implemented, you&#039;ll begin to see how they are different.

As for me...Nenhum descanso para o mau.

Kindest regards,
Bill</description>
		<content:encoded><![CDATA[<p>Hi William,</p>
<p>Keep in mind that <em>both</em> <strong>aggregation</strong> and <strong>acquaintance</strong> deal with <em><strong>composition</strong></em>. On a different topic, whole and part may be pivotal, but here the focus is on the <em>relationships between participants</em>. Acquaintance and aggregation constitute relationships between the participants. So that&#8217;s where we need to focus and  try and understand the difference between the two. Unfortunately, <em>there is a difference</em> between them, but it is subtle and based on intent as much as specific details. That means there is a <em>right</em> and <em>wrong</em> insofar as using one or the other.</p>
<p>One thing that has helped me is to compare the relationship between a Client class and its acquaintance and an Aggregator class and the Aggregatee. I cannot think of a single design pattern where the Client has an aggregate relationship with a design pattern, but you will find lots of patterns where you&#8217;ll find aggregate relations between the pattern participants. If you look at the way in which those relations are implemented, you&#8217;ll begin to see how they are different.</p>
<p>As for me&#8230;Nenhum descanso para o mau.</p>
<p>Kindest regards,<br />
Bill</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: William R. J. Ribeiro</title>
		<link>http://www.as3dp.com/2010/01/26/actionsscript-3-0-design-pattern-relations-part-ii-aggregation/comment-page-1/#comment-3950</link>
		<dc:creator>William R. J. Ribeiro</dc:creator>
		<pubDate>Mon, 01 Feb 2010 10:00:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.as3dp.com/?p=2476#comment-3950</guid>
		<description>Hi Bill!

I would like to share a concept that helps me better understand aggregation: It&#039;s the &quot;whole to its parts&quot; idea. For instance, if you want to give emphasis that the &quot;whole&quot; (Context class) needs its &quot;parts&quot; (the State classes) to do what&#039;s suppose to do. Sometimes classes are associated but the idea of &quot; whole to its parts&quot; doesn&#039;t apply so the aggregation symbols are not necessary, an Acquaintance would be just fine. I would even say there is no right or wrong, just a matter of giving more detail to the diagram.

Nice post! How can I rate it?

Tot ziens!</description>
		<content:encoded><![CDATA[<p>Hi Bill!</p>
<p>I would like to share a concept that helps me better understand aggregation: It&#8217;s the &#8220;whole to its parts&#8221; idea. For instance, if you want to give emphasis that the &#8220;whole&#8221; (Context class) needs its &#8220;parts&#8221; (the State classes) to do what&#8217;s suppose to do. Sometimes classes are associated but the idea of &#8221; whole to its parts&#8221; doesn&#8217;t apply so the aggregation symbols are not necessary, an Acquaintance would be just fine. I would even say there is no right or wrong, just a matter of giving more detail to the diagram.</p>
<p>Nice post! How can I rate it?</p>
<p>Tot ziens!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: uberVU - social comments</title>
		<link>http://www.as3dp.com/2010/01/26/actionsscript-3-0-design-pattern-relations-part-ii-aggregation/comment-page-1/#comment-3921</link>
		<dc:creator>uberVU - social comments</dc:creator>
		<pubDate>Thu, 28 Jan 2010 15:07:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.as3dp.com/?p=2476#comment-3921</guid>
		<description>&lt;strong&gt;Social comments and analytics for this post...&lt;/strong&gt;

This post was mentioned on Twitter by AS3DP: ActionsScript 3.0 Design Pattern Relations Part II: Aggregation #asdp http://www.as3dp.com/?p=2476...</description>
		<content:encoded><![CDATA[<p><strong>Social comments and analytics for this post&#8230;</strong></p>
<p>This post was mentioned on Twitter by AS3DP: ActionsScript 3.0 Design Pattern Relations Part II: Aggregation #asdp <a href="http://www.as3dp.com/?p=2476..." rel="nofollow">http://www.as3dp.com/?p=2476&#8230;</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: William B. Sanders</title>
		<link>http://www.as3dp.com/2010/01/26/actionsscript-3-0-design-pattern-relations-part-ii-aggregation/comment-page-1/#comment-3912</link>
		<dc:creator>William B. Sanders</dc:creator>
		<pubDate>Wed, 27 Jan 2010 09:12:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.as3dp.com/?p=2476#comment-3912</guid>
		<description>Hi Timbot,

A composition is a &lt;em&gt;&lt;strong&gt;collected object made up of other objects&lt;/strong&gt;&lt;/em&gt;, such as the Context compositing the States creating an aggregate object. The &lt;strong&gt;aggreateinstance&lt;/strong&gt; in Figure 1 is an object created by the &lt;em&gt;Aggregator&lt;/em&gt; with properties of the &lt;em&gt;Agregatee.&lt;/em&gt; (I use the term &lt;em&gt;properties&lt;/em&gt; broadly here to include both properties and methods.) So&lt;em&gt; a composition has no child classes&lt;/em&gt; as do classes related by inheritance. Instead, a composition is an object made up of other objects without inheritance.  I don&#039;t mean to sound picky, but because a key principle is to &lt;em&gt;favor composition over inheritance&lt;/em&gt;, we need to separate one from the other.

I hope that helps nudge the concept of aggregation (as a type of composition) closer to the light. As always, it&#039;s great to hear from you!

Kindest regards,
Bill</description>
		<content:encoded><![CDATA[<p>Hi Timbot,</p>
<p>A composition is a <em><strong>collected object made up of other objects</strong></em>, such as the Context compositing the States creating an aggregate object. The <strong>aggreateinstance</strong> in Figure 1 is an object created by the <em>Aggregator</em> with properties of the <em>Agregatee.</em> (I use the term <em>properties</em> broadly here to include both properties and methods.) So<em> a composition has no child classes</em> as do classes related by inheritance. Instead, a composition is an object made up of other objects without inheritance.  I don&#8217;t mean to sound picky, but because a key principle is to <em>favor composition over inheritance</em>, we need to separate one from the other.</p>
<p>I hope that helps nudge the concept of aggregation (as a type of composition) closer to the light. As always, it&#8217;s great to hear from you!</p>
<p>Kindest regards,<br />
Bill</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Timbot</title>
		<link>http://www.as3dp.com/2010/01/26/actionsscript-3-0-design-pattern-relations-part-ii-aggregation/comment-page-1/#comment-3910</link>
		<dc:creator>Timbot</dc:creator>
		<pubDate>Wed, 27 Jan 2010 05:48:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.as3dp.com/?p=2476#comment-3910</guid>
		<description>One statement I saw recently (I think it was in an older text) suggested that when a composite&#039;s owner object is destroyed, the composite&#039;s children are likewise eliminated.  In the case of an aggregate though, the children might survive, referenced by other objects.  Aggregate children can be aggregated by more than one object.
I don&#039;t think this conflicts with the GoF statement above, if we accept that aggregates can have more than one owner.  And it kind of helped me see the distinction with a composition.
So I thought I&#039;d share it here.</description>
		<content:encoded><![CDATA[<p>One statement I saw recently (I think it was in an older text) suggested that when a composite&#8217;s owner object is destroyed, the composite&#8217;s children are likewise eliminated.  In the case of an aggregate though, the children might survive, referenced by other objects.  Aggregate children can be aggregated by more than one object.<br />
I don&#8217;t think this conflicts with the GoF statement above, if we accept that aggregates can have more than one owner.  And it kind of helped me see the distinction with a composition.<br />
So I thought I&#8217;d share it here.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
