EasyFsm
EasyFSM is a tool for generate finite state machine code quickly
EasyFSM is aimed to automatically generate code for finite state machine, especially for the NPC behavior programming in games. Using this tool, you just need to edit a .fsm file to describe the state machince concisely. It will generate the Java code for you according the .fsm file. Also, a .gv file for GraphiZ can be created for visualizing the finte state machine.