stopcommand.java
来自「The Java Network Simulator is a Java imp」· Java 代码 · 共 26 行
JAVA
26 行
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 + =
减小字号Ctrl + -
显示快捷键?