Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FSM

Implementation of a simple finite state automata. Simple FSM is implemented generic. The user can specify a custom class as type for state-nodes and another custom class as type for event-nodes. The choosen classes must only be usable as keys in a hashmap - this is: They mus implement equals() and hashCode() meaningful. Enums are suggested types for states and events as long as no custom logic is needed. The user can register listeners to fire custom actins whenever the automata changes its state.

The implementation is really easy to use - look at the tests (DefaultFsmTest and DefaultAutomataFactoryTest.java) for a "howto".

About

Implementation of a simple finite state automata.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages