Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
 public FSMContext(FSMContext parent)
 {
     this.parent = parent;
 }