Exemplo n.º 1
0
        }//End Constructor.

        /***************************************************************************************
         * ExecuteEvent removes the entity from the IVR's entity list, takes a number waiting in
         * queue sample for the statistics handler, and returns an end wait in queue event code.
         **************************************************************************************/
        public override int?ExecuteEvent()
        {
            //Set the entities begin wait value.
            DateTime entityBeginWait = new DateTime
                                           (calendar.SimClock.Year, calendar.SimClock.Month, calendar.SimClock.Day, calendar.SimClock.Hour, calendar.SimClock.Minute, calendar.SimClock.Second);

            eventEntity.BeginWait = entityBeginWait;

            //Remove the entity from the IVR's entity list.
            ivr.RemoveEntity(eventEntity);

            //Take sample of entities waiting in queue.
            stats.TakeNumberWaitingSample(EventEntity.ProductType, queue.EntitiesInQueue.Count());

            //Return a end wait in queue event code.
            return(EventCode.EndWaitInQueue);
        }//End ExecuteEvent.