Top "State-pattern" questions

Use this tag for questions relating to the State design pattern, one of the Gang of Four's behavioral design patterns.

How to implement a FSM - Finite State Machine in Java

I have something to do for work and I need your help. We want to implement a FSM - Finite …

java design-patterns state-machine fsm state-pattern
What is the difference between Strategy design pattern and State design pattern?

What are the differences between the Strategy design pattern and the State design pattern? I was going through quite a …

design-patterns strategy-pattern state-pattern
How to use state pattern correctly?

I've encountered a few implementations of state pattern in my programming experience, and done a few. I've seen them used …

oop design-patterns state-pattern
What is the difference between a state machine and the implementation of the state pattern?

I wonder if a state machine is just the state pattern at work or if there is actually a difference …

design-patterns architecture state-machine state-pattern
State Pattern: How the states of an object should transition when they're involved in complex processes?

I have some doubts about the following implementation of the state pattern: I have an Order object. For simplicity, let's …

design-patterns state-pattern