gang-of-4-patterns AT lists.siebelschool.illinois.edu
Subject: Design Patterns discussion
List archive
- From: Robert Allan Schwartz <robertallanschwartz AT yahoo.com>
- To: "Freeman-Hargis, James" <jfreeman AT midwaygames.com>, gang-of-4-patterns AT cs.uiuc.edu
- Cc:
- Subject: Re: [gang-of-4-patterns] Pattern question: state vs. strategy
- Date: Wed, 6 Jul 2005 10:54:03 -0700 (PDT)
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=dWVm5RDt0w3tK6wDBBozpBVHAOJMmoeHvhwtwC4n/4Rk6QocBJDtV+hYOhOIx9wayMVUsWqHFT16nojEwkdsP/Vj/CjYCk2vqz00SGv20X+ju3yQhOdkte2SqrZAKgr0Ay+1EZmCGkJm9Zp5ufBEsNqAYnYJsE7zgyQJsEvjpj0= ;
- 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 difference is that the Strategy is visible to (and configurable by) the
Client, whereas the
fact that a class has State is not visible to the Client.
Robert
--- "Freeman-Hargis, James"
<jfreeman AT midwaygames.com>
wrote:
> I'm wondering if you can give me some additional details as to how these
> are different? Their applicability, purpose and structure seem nearly
> identical: make the behavior of the context class change dynamically as
> the state/strategy changes. Both patterns even mentions how they can be
> tied into the flyweight pattern. The only difference I can readily see
> is that the state pattern mentions transitions while the strategy does
> not. Am I missing something?
>
>
>
> Thank you for your time,
>
> -James
>
>
>
> > _______________________________________________
> 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
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
- [gang-of-4-patterns] Pattern question: state vs. strategy, Freeman-Hargis, James, 07/06/2005
- Re: [gang-of-4-patterns] Pattern question: state vs. strategy, Robert Allan Schwartz, 07/06/2005
- Re: [gang-of-4-patterns] Pattern question: state vs. strategy, Clint Shank, 07/06/2005
- RE: [gang-of-4-patterns] Pattern question: state vs. strategy, Jesús Alonso, 07/06/2005
- Re: [gang-of-4-patterns] Pattern question: state vs. strategy, Peter Horan, 07/07/2005
- <Possible follow-up(s)>
- RE: [gang-of-4-patterns] Pattern question: state vs. strategy, jdeena, 07/06/2005
- RE: [gang-of-4-patterns] Pattern question: state vs. strategy, Jesús Alonso, 07/06/2005
- RE: [gang-of-4-patterns] Pattern question: state vs. strategy, Ralph Johnson, 07/06/2005
- Re: [gang-of-4-patterns] Pattern question: state vs. strategy, Robert Allan Schwartz, 07/06/2005
Archive powered by MHonArc 2.6.16.