From 1a89549de6faf443bc91377d082991b7dec3266a Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Thu, 26 Sep 2024 01:03:10 +0200 Subject: [PATCH] Minor fix for liftmonitor --- lift/src/lift/LiftMonitor.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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;