State Machine(3)Java Implementation on MAC

State Machine(3)Java Implementation on MAC
Long time ago. I changed my laptop from window7 to MAC system. But I still need to work with SMC in my company.

Almost the same steps in my previous blogs:
http://sillycat.iteye.com/blog/702817
http://sillycat.iteye.com/blog/702818


I can build the picture with command line:
>java -jar Smc.jar -graph -glevel 1 MyProcessor.sm

I can get the picture file with name MyProcessor_sm.dot

How to open this file on MAC. Download the software here:
http://www.graphviz.org/

If I want to build the SM file to java source codes. I will do like this:
>java -jar ./Smc.jar -java MyProcessor.sm

I found it really useful to have SMC to deal with the processors. Maybe I will try my lovely scala groovy in the future.

references:
http://sillycat.iteye.com/blog/702817
http://sillycat.iteye.com/blog/702818

http://smc.sourceforge.net/SmcManual.htm
http://www.graphviz.org/



你可能感兴趣的:(java)