Publication View

State Design Pattern (2008)

Abstract
Many real-life systems change the way they behave as they change states. It is desirable for object models of such systems to be able to change their behaviors as if they are changing types dynamically. The state design pattern is a design solution for this problem of dynamic reclassification. The key element is to abstract the state dependent behavior of the system in question as an abstract class and encapsulate each concrete variant behavior as a concrete subclass.

Publication details
Download http://cnx.org/content/m17225/1.3
Repository Connexions (United States)
Keywords state, reclassification, pattern, dynamic, design
Language English