returns an array of the passengers requesting to go up to floor i and modifies an array list of integers given the destination floors we want to go to concode_field_sep int floorID concode_elem_sep int[] passengerRequests concode_elem_sep int[] totalDestinationRequests concode_elem_sep int[] arrivedPassengers concode_elem_sep int approachingElevator concode_field_sep int arraySum concode_elem_sep boolean passengersRequestingUp concode_elem_sep void acceptRequest concode_elem_sep int getApproachingElevator concode_elem_sep boolean hasNoElevatorApproaching concode_elem_sep int getNumWaitingPassengers concode_elem_sep boolean passengersRequestingDown concode_elem_sep int getTotalNumRequests concode_elem_sep String directionToDestination concode_elem_sep int getTotalNumArrivals concode_elem_sep MetaQueueItem checkState concode_elem_sep void printState concode_elem_sep void setApproachingElevator concode_elem_sep int[] getSumDownRequests concode_elem_sep void unsetApproachingElevator concode_elem_sep void unloadPassengers concode_elem_sep void processRequest
int [ ] function ( ArrayList < Integer > arg0 ) { int [ ] loc0 = new int [ 5 ] ; for ( int loc1 = 0 ; loc1 < 5 ; loc1 ++ ) { if ( loc1 <= floorID ) loc0 [ loc1 ] = 0 ; else { loc0 [ loc1 ] = passengerRequests [ loc1 ] ; if ( passengerRequests [ loc1 ] > 0 ) arg0 . add ( loc1 ) ; } } return loc0 ; }