• Post Reply Bookmark Topic Watch Topic
  • New Topic

UML state machine implementation  RSS feed

 
Peter Szabados
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was looking for an easily usable state machine implementations for Java. I searched the net, but anything I found was either too heavyweight for me, was counter-intuitive to use or was poorly documented.

By being easily usable, the most important things for me is to not require any preprocessing (such as code generation) and to be able to put the transition table in one place so anyone looking at the code can immediately see what the state machine does.

Because I didn't find any that would be good for me, I decided to create my own. It is called JUmlStateMachine and can be found on Sourceforge here. There is also a tutorial on the wiki and a Javadoc on the project home page.

Currently this project is in a functional prototype phase but it still has a lot of features. However, to improve it further I need to rethink the design. Most importantly, separate state machine creation from operation (such as with a Builder class) and separate the public interface from the internals somewhat more.

Please, comment. Do you think it's a good way to go?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!