void function ( Passenger arg0 ) { if ( passengers . size ( ) + 1 > Elevator . CAPACITY ) throw new ElevatorFullException ( ) ; else { arg0 . boardElevator ( ) ; passengers . add ( arg0 ) ; } }
adds 1 passenger to the elevator with a specified destination floor . concode_field_sep Set<Passenger> passengers concode_elem_sep int CAPACITY concode_elem_sep int currentFloor concode_elem_sep Building building concode_elem_sep Direction direction concode_field_sep void move concode_elem_sep Set<Passenger> passengers concode_elem_sep boolean goingUp concode_elem_sep boolean goingDown concode_elem_sep int currentFloor