⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 elevatorcontroller.java

📁 Nachos 5 java version
💻 JAVA
字号:
package nachos.threads;import nachos.machine.*;/** * A controller for all the elevators in an elevator bank. The controller * accesses the elevator bank through an instance of <tt>ElevatorControls</tt>. */public class ElevatorController implements ElevatorControllerInterface {    /**     * Allocate a new elevator controller.     */    public ElevatorController() {    }        /**     * Initialize this elevator controller. The controller will access the     * elevator bank through <i>controls</i>. This constructor should return     * immediately after this controller is initialized, but not until the     * interupt handler is set. The controller will start receiving events     * after this method returns, but potentially before <tt>run()</tt> is     * called.     *     * @param	controls	the controller's interface to the elevator     *				bank. The controler must not attempt to access     *				the elevator bank in <i>any</i> other way.     */    public void initialize(ElevatorControls controls) {    }    /**     * Cause the controller to use the provided controls to receive and process     * requests from riders. This method should not return, but instead should     * call <tt>controls.finish()</tt> when the controller is finished.     */    public void run() {    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -