Other
The purpose of each class is explained in turn, in order to help you read and understand the existing code.
ElevatorController: This class contains the information about the simulation world, runs the simulation, moves the elevator to a given floor, and loads/unloads people into/from the elevator. Important pieces about the simulation world include the number of people waiting on each floor, the capacity of the elevator, the total number of people in the simulation, the algorithm used to control the elevator, a list of people in the elevator, and the number of elapsed clock ticks. You may ignore (and should ignore) all code that operates the simulation. This code is marked as such in the Java file. You are welcome to add more methods to this class to help create good elevator algorithms. Do not remove any code having to do with clock increments since some actions do take time. If you add elevator methods to the class that do take time (unloading people, loading people, mo
java
算法
电梯
No comment