background preloader

State Machine

Facebook Twitter

Automaton implementation in Java. This post will address the problem of implementing finite states machines into java.

Automaton implementation in Java

If you don’t know what FSM are or where can be used you may be keen on reading this, this and this. If you ever found yourself in the situation of using a FSM on your design you have probably started to write classes for every state which implemented the same interface. Design patterns - How to implement a FSM - Finite State Machine in Java. Using an enum to build a State machine. C# - More .net approach for dynamic state machine.