State Pattern

The state pattern, which closely resembles Strategy 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.

Famous quotes containing the words state and/or pattern:

    “Such writing is a sort of mental masturbation.... I don’t mean that he is indecent but viciously soliciting his own ideas into a state which is neither poetry nor anything else but a Bedlam vision produced by raw pork and opium.”
    —George Gordon Noel Byron (1788–1824)

    “It is just possible that the tensions in a novel of murder are the simplest and yet most complete pattern of the tensions on which we live in this generation.”
    —Raymond Chandler (1888–1959)