called when a passenger on the floor wants to wait for the elevator . calling this adds the passenger to a list of passengers waiting to go up or down depending on the destination floor of the passenger relative to the floor number . when a passenger is waiting for the elevator on a floor , they are no longer considered a resident of the floor . concode_field_sep List<Passenger> residents concode_elem_sep List<Passenger> waitingUp concode_elem_sep List<Passenger> waitingDown concode_elem_sep int floorNumber concode_field_sep void enterGroundFloor concode_elem_sep boolean isResident
void function ( Passenger arg0 , int arg1 ) { arg0 . waitForElevator ( arg1 ) ; residents . remove ( arg0 ) ; if ( arg1 > floorNumber ) waitingUp . add ( arg0 ) ; if ( arg1 < floorNumber ) waitingDown . add ( arg0 ) ; }