Example project: Coding an elevator state machine with Akka FSM

170 views
Skip to first unread message

Tom Bray

unread,
Jul 30, 2014, 1:06:35 AM7/30/14
to akka...@googlegroups.com
Hi folks,

I really fell in love with Akka when I discovered the Finite State Machine DSL and thought I'd share the love with an example project that demonstrates how to build an elevator state machine using TDD. 

Here's the elevator FSM:  https://github.com/tombray/akka-fsm-examples/blob/master/src/main/scala/com/tombray/examples/akka/ElevatorActor.scala
Please let me know if you have any suggestions for improvements or ideas for future examples.

Cheers,

Tom

09goral

unread,
Jul 30, 2014, 3:09:05 AM7/30/14
to akka...@googlegroups.com
Thanks for that. I will definetly take a closer look. I've been looking for some nice example projects of FSM recently. 

Martynas Mickevičius

unread,
Jul 30, 2014, 9:46:32 AM7/30/14
to akka...@googlegroups.com
Hi Tom,

really nice example. Very easy to go through and grok the inner workings of the elevator. I have added couple of comments on commits in GitHub.


--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+...@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.



--
Martynas Mickevičius
TypesafeReactive Apps on the JVM

Tom Bray

unread,
Jul 30, 2014, 1:49:47 PM7/30/14
to akka...@googlegroups.com
Thanks, Martynas! TestFSMRef will make my life a lot easier.
Reply all
Reply to author
Forward
0 new messages