-
Class Summary
Class |
Description |
Qfsm |
Search "AnotherFSM" string in the input from user and exit the application
after it is entered.
|
SearchStringFsm |
State machine to search hard coded "AnotherFSM" string.
|
SearchStringProcessor |
State machine to search hard coded "AnotherFSM" string.
|
Package net.sourceforge.anotherfsm.examples.qfsm Description
This example re-implements the functionality of First example with
significant help of code generated from Qfsm diagram.
The code searches "AnotherFSM" string in the user input and exits the
application after it is entered. Of course this implementation is an overkill
solution for such simple task, remember it's only a demonstration.
Classes and files
- SearchString.fsm
Qfsm data file, the painted diagram.
- SearchString.xml
Code generator configuration file.
- generate.sh
Shell script to execute code generator and generate the files.
- SearchString.xml.generated
Generated configuration template, no updates.
- SearchStringFsm.java.generated
Generated state machine, no updates.
- SearchStringProcessor.java.generated
Generated listeners template, no updates.
SearchStringFsm
Defines structure of the state machine.
SearchStringProcessor
Defines listeners for the states and transitions.
Qfsm
Defines main() method, passes data to the state machine.
- Author:
- Michal Turek