Minor fix for liftmonitor

This commit is contained in:
Imbus 2024-09-26 01:03:10 +02:00
parent 2c50014eaf
commit 1a89549de6

View file

@ -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;