Пример #1
0
        public FSMachine(FSMContext globalContext)
        {
            this.events = new LinkedList <FSMEvent>();
            if (globalContext == null)
            {
                globalContext = new FSMContext();
            }
            this.globalContext = globalContext;

            time = new FSMTime();
            globalContext.AddParameter(typeof(FSMTime), TimeVarName);
            globalContext.SetParameter(TimeVarName, time);

            globalContext.AddParameter(typeof(FSMEvent), EventVarName);
        }
Пример #2
0
 public FSMContext(FSMContext parent)
 {
     this.parent = parent;
 }