link mingle home | logged in as: guest | login/register| help


  Home
 
State Design Pattern
The state pattern is a behavioral software design pattern, also known as the objects for states pattern. This pattern is used in computer programming to represent the state of an object. This is a clean way for an object to partially change its type at runtime

created by syam1224 on 2008-05-11 21:21:54

19
Votes
GoF State Design Patter
Allow an object to alter its behavior when its internal state changes. The object will appear to change its class.
http://www.dofactory.com/Patterns/PatternState.asp
created by syam1224 on 2008-05-11 21:25:55
The State Design Pattern
Objects are often discussed in terms of having a "state" that describes their exact conditions in a given time, based upon the values of their properties. The particular values of the properties affect the object's behavior. For instance, one can say that the exact behavior of an object's getColor() method is different if the "color" property of the given object is set to "blue" instead of "red" because getColor() returns a different value in the two situations.
http://exciton.cs.rice.edu/JavaResources/DesignPat
created by syam1224 on 2008-05-11 21:25:04
State Pattern from Wikipedia
A drawing program, in which there could be an abstract interface representing a tool, then concrete instances of that class could each represent a kind of tool. When the user selects a different tool, the appropriate tool would be instantiated.
http://en.wikipedia.org/wiki/State_pattern
created by syam1224 on 2008-05-11 21:22:41
 



Enter the string above
 
 
Home
Thumbnails by Thumbshots.net