Generate a state machine
- Create a txt file and write code
- Change the suffix .txt into .sm
- Download SMC
- Command Line:
java -jar Smc.jar -java Seminar.sm
, a new java file ‘SeminarContext.java’ created - Command Line:
java -jar Smc.jar -graph Seminar.sm
, a new dot file ‘Seminar_sm.dot’ created - Download Graphviz and do configuration
- Command Line:
dot -Tpng Seminar_sm.dot -o Seminar.png
, a new png file ‘Seminar.png’ created