Question: Building.java public Building (int numFloors) - This constructs a Building that has some number of floors. When you construct the Building, its Elevator should be

Building.java public Building (int numFloors) - This constructs a Building that has some number of floors. When you construct the Building, its Elevator should be at the lobby. . public boolean enterElevatorRequest (Person person, int floor) - This method will handle the request made by a Person to enter this Building and be taken to some floor. This will involve ensuring that the Person's desired floor can be reached by this Building's Elevator. If the Elevator cannot reach the Person's desired floor, return false. If the elevator can reach the person's desired floor, return true. This method should ensure that the Elevator will never process this Person's request if it is not valid. public void startElevator () - This will call a method in this Building's Elevator instance that should process all of its current Jobs. . public void enterFloor (Person person, int floor) - This method should save a reference of a Person in the Floor with the provided floor number
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
