/// <summary> /// Constructor for ExitQueue /// </summary> /// <param name="pHouse"></param> /// <param name="l1"></param> public ExitQueue(ParkingHouse pHouse, Label l1) { this.pHouse = pHouse; this.l1 = l1; currentInQueue = 0; rnd = new Random(); carQueue = new Queue <Car>(); }
/// <summary> /// Method used to create all objects /// </summary> public void CreateObj() { nEntryQueue = new EntryQueue(sizeOfQueue, northQ); sEntryQueue = new EntryQueue(sizeOfQueue, southQ); eEntryQueue = new EntryQueue(sizeOfQueue, eastQ); wEntryQueue = new EntryQueue(sizeOfQueue, westQ); pHouse = new ParkingHouse(200, nEntryQueue, sEntryQueue, eEntryQueue,wEntryQueue, pHouseStatus, parkingQStatus); cReception = new CarReception(open, 500, nEntryQueue, sEntryQueue, eEntryQueue, wEntryQueue); nExitQueue = new ExitQueue(pHouse, northE); sExitQueue = new ExitQueue(pHouse, southExit); eExitQueue = new ExitQueue(pHouse, eastExit); wExitQueue = new ExitQueue(pHouse, westExit); }