简单的有限状态机
摘要:
package com.smart.fsm.phonebank;public class FSM { static State[][] transTable=new State[State.values().length][10]; static{ transTable[State.start.ordinal()][1]=State.chinese; transTable[State.start.ordinal()][2]=State.english; transTable[State.chinese.ordinal()][0]=S... 阅读全文
posted @ 2012-10-14 19:56 雨渐渐 阅读(183) 评论(0) 推荐(0) 编辑