elementupdatecommand.java.svn-base
来自「网络模拟器」· SVN-BASE 代码 · 共 29 行
SVN-BASE
29 行
package jns.command;
import jns.element.Element;
/**
ElementUpdateCommand is a command class that can be used genericly to
schedule a call to any element's update() function at a specific time.
*/
public class ElementUpdateCommand extends Command
{
private Element m_element;
public ElementUpdateCommand(Element element, double time)
{
super("ElementUpdate", time);
m_element = element;
}
/**
Call the update function of the element.
*/
public void execute()
{
m_element.update();
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?