예제 #1
0
        public Store()
        {
            clients = new List<Client>();

            this.queues = new List<StoreQueue>();
            this.mainQueue = new StoreQueueListImpl("MainQueue", Configs.MAX_ITEMS_PER_CLIENT);
            this.queues.Add(this.mainQueue);
            supervisor = new Supervisor(this);
            service_points = new List<ServicePoint>();
            //waitQueue = new List<Client>();
            supervisor = new Supervisor(this);

            /*for (int i = 0; i < this.getServicePoints().Count; i++)
            {
                this.getServicePoints().ElementAt(i).ClientExitCashier += new ServicePoint.ClientExitCashierEventHandler(ClientExitServicePoint);
            }*/
        }
예제 #2
0
        public void init()
        {
            clients = new List<Client>();

            this.queues = new List<StoreQueue>();
            this.mainQueue = new StoreQueueListImpl("MainQueue", Configs.MAX_ITEMS_PER_CLIENT);
            this.queues.Add(this.mainQueue);
            supervisor = new Supervisor(this);
            service_points = new List<ServicePoint>();
            //waitQueue = new List<Client>();
            supervisor = new Supervisor(this);
        }