Minor fix for liftmonitor
This commit is contained in:
parent
2c50014eaf
commit
1a89549de6
1 changed files with 2 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue