Erlang: Implementing a Finite State Machine using gen_fsm
Asked Answered
A

2

6

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

Atticism answered 18/8, 2010 at 23:4 Comment(0)
C
8

I found this tutorial really helpful -

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

Concordia answered 19/8, 2010 at 2:50 Comment(0)
C
5

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

Crossley answered 12/7, 2012 at 8:31 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.