Esempio n. 1
0
        public IEDoorEachMonitorEnterState Run(
            EDoorCenterData centerData,
            EDoorEachMonitorEnterData eachData)
        {
            Trace.Assert(eachData.LiveOrder != null);

            if (eachData.LiveOrder.IsCompleteGotOrderNumber())
            {
                centerData.RemoveSweepStateOrder(eachData.LiveOrder);
                logger.Info("Change State Entering to Rebalance {0}",
                    eachData.EI.Name);
                RebalanceState next = new RebalanceState(_parent); 
                return next;
            }
            return this;
        }