# State-Local Behavior

> The ability to attach behavior to each state so an object acts according to its current state.

Record: `lexicon:state-local-behavior`
Kind: capability
Layer: [Design Patterns Core](https://banes-lab.com/records/layer/design-patterns-core.md)
Canonical: https://banes-lab.com/ontology/lexicon#lexicon-state-local-behavior

Listed in [Lexicon terms](https://banes-lab.com/api/records/lexicon.md), after [Snapshot/Restore](https://banes-lab.com/records/lexicon/snapshot-restore.md) and before [Structure-Agnostic Iteration](https://banes-lab.com/records/lexicon/structure-agnostic-iteration.md).

## Category

- [Behavioral Patterns](https://banes-lab.com/records/lexicon-category/behavioral-patterns.md)

## Enabled by

- [State Pattern](https://banes-lab.com/records/architecture/state-pattern.md)

## Linked from

- [Behavioral Patterns](https://banes-lab.com/ontology/principles/architecture-category-behavioral-patterns.md)
