📄 stopcommand.java.svn-base
字号:
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 + -