diff --git a/lift/src/lift/LiftMonitor.java b/lift/src/lift/LiftMonitor.java index 9c87a8d..8bdf464 100644 --- a/lift/src/lift/LiftMonitor.java +++ b/lift/src/lift/LiftMonitor.java @@ -18,9 +18,9 @@ public class LiftMonitor { /** Current direction of the lift */ private Direction direction; /** number of passengers waiting to enter the lift at the various floors */ - // private int[] waitEntry; + private PassengerQueue waitEntry; /** number of passengers (in lift) waiting to leave at the various floors */ - // private int[] waitExit; + private PassengerQueue waitExit; /** number of passengers currently in the lift */ private int load; /** view object passed from main */ @@ -32,9 +32,6 @@ public class LiftMonitor { /** Counter of number of passengers currently exiting the elevator */ private int passengersExiting; - private PassengerQueue waitEntry; - private PassengerQueue waitExit; - /** Create new LiftMonitor */ public LiftMonitor(LiftView v, int floors) { floor = 0;