Esempio n. 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);
            }*/
        }
Esempio n. 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);
        }