Finite State Machine
Finite State Machine

Reputation: 69

Erlang: Implementing a Finite State Machine using gen_fsm

I'm looking for an example of a simple FSM implemented in Erlang using the gen_fsm from OTP.

Upvotes: 6

Views: 3157

Answers (2)

the_dark_destructor
the_dark_destructor

Reputation: 687

You can also refer to the official erlang documentation.

http://www.erlang.org/doc/design_principles/fsm.html

The locked door example reported in the link is quite easy to understand

Upvotes: 5

spkhaira
spkhaira

Reputation: 819

I found this tutorial really helpful -

http://spawnlink.com/articles/an-introduction-to-gen_fsm-erlybanks-atm/index.html

Upvotes: 8

Related Questions