public int GetPreStateName()
 {
     return(fsm.GetPreStateName());
 }