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:

    During those years in Stamps, I met and fell in love with William Shakespeare. He was my first white love.... it was Shakespeare who said, “When in disgrace with fortune and men’s eyes.” It was a state of mind with which I found myself most familiar. I pacified myself about his whiteness by saying that after all he had been dead so long it couldn’t matter to anyone any more.
    Maya Angelou (b. 1928)

    It was her stern necessity: all things
    Are of one pattern made; bird, beast, and flower,
    Deceive us, seeming to be many things,
    And are but one. Beheld far off, they differ
    As God and devil; bring them to the mind,
    They dull its edge with their monotony.
    Ralph Waldo Emerson (1803–1882)