elementupdatecommand.java
来自「The Java Network Simulator is a Java imp」· Java 代码 · 共 29 行
JAVA
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 + -
显示快捷键?