Skip to Content.
Sympa Menu

patterns-discussion - [patterns-discussion] RE:Are strategy classes stateful?

patterns-discussion AT lists.cs.illinois.edu

Subject: General talk about software patterns

List archive

[patterns-discussion] RE:Are strategy classes stateful?


Chronological Thread 
  • From: <somasundram.balakrushnan AT wipro.com>
  • To: <patterns-discussion AT cs.uiuc.edu>
  • Subject: [patterns-discussion] RE:Are strategy classes stateful?
  • Date: Sat, 22 Apr 2006 10:41:44 +0530
  • List-archive: <http://lists.cs.uiuc.edu/pipermail/patterns-discussion>
  • List-id: General talk about software patterns <patterns-discussion.cs.uiuc.edu>



As far as I understand, Strategy classes are generally stateful but
they don't impose any such limitation; an implementor is free to choose
to have the Strategy class either stateful or stateless as applicable.
The context used in Strategy carries information on which the varying
algorithms can act upon. So if the state would be required for the
algorithms, then the context could include the state information as part
of it.

Just my 2 cents :-)

Thanks, Soms.

Message: 1
Date: Fri, 21 Apr 2006 03:47:02 -0700 (PDT)
From: Nikolay Atanasov
<nikolay_a AT yahoo.com>
Subject: [patterns-discussion] Are strategy classes stateful?
To:
patterns-discussion AT cs.uiuc.edu
Message-ID:
<20060421104702.78984.qmail AT web50215.mail.yahoo.com>
Content-Type: text/plain; charset=iso-8859-1

To All!

Hello

I have a question about strategy pattern. Can strategy
classes be stateful or they are generally stateless?

Nikolay


The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain proprietary, confidential or privileged information. If you are not
the intended recipient, you should not disseminate, distribute or copy this
e-mail. Please notify the sender immediately and destroy all copies of this
message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should
check this email and any attachments for the presence of viruses. The company
accepts no liability for any damage caused by any virus transmitted by this
email.

www.wipro.com




  • [patterns-discussion] RE:Are strategy classes stateful?, somasundram.balakrushnan, 04/22/2006

Archive powered by MHonArc 2.6.16.

Top of Page