コード例 #1
0
ファイル: Store.cs プロジェクト: patpaquette/StoreSimulation
        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
ファイル: Store.cs プロジェクト: patpaquette/StoreSimulation
        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);
        }