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

📄 stopcommand.java

📁 网络模拟器
💻 JAVA
字号:
package jns.command;

import jns.Simulator;

/**
 A StopCommand can be schedule at any time to forcefully interrupt the
 simulator. Some simulations can go on forever so this is quite useful.
 */
public class StopCommand extends Command
{

    public StopCommand(double time)
    {
        super("Stop", time);
    }

    /**
     Just set the finished flag in the simulator.
     */
    public void execute()
    {
        Simulator.getInstance().setFinished();
    }

}

⌨️ 快捷键说明

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