State Pattern

Kind: pattern

Layer: Design Patterns Core

Record: architecture:state-pattern

Severity: recommended

Scope: behavior, state machine, lifecycle

Canonical: Ontology

A design pattern that gives each state of an object its own class, so behavior and legal transitions change with the state.

Listed in Architecture principles, after Command Pattern and before Chain of Responsibility Pattern.

Requires

Reinforces

Enables

Conflicts with

In tension with

Tensions

Contracts

Violated by

Severity

Category

Reinforced by

Linked from