State Machine(3)Java Implementation on MAC

本文介绍了如何在Mac系统上使用StateMachineCreator(SMC)工具进行状态机的构建与Java源代码生成。通过命令行操作可以创建状态机图形并导出为图片文件。此外还提供了将状态机文件转换为Java源代码的方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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/
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值