Пример #1
0
        public override string postEvent(FSMEvent evt)
        {
            string ret = "";

            if (actionMap_.ContainsKey(evt.msg))
            {
                ret = actionMap_[evt.msg](evt);
            }
            return(ret);
        }
Пример #2
0
 public void postEvent(FSMEvent evt)
 {
     for (int i = 0; i < this.currState_.Count; ++i)
     {
         State  state     = this.currState_[i] as State;
         string stateName = state.postEvent(evt) as string;
         if (stateName != "")
         {
             this.translation(stateName);
             break;
         }
     }
 }