link.java
来自「The Java Network Simulator is a Java imp」· Java 代码 · 共 38 行
JAVA
38 行
package jns.element;
public abstract class Link extends Element
{
/**
Set the status of this link, either 'up' or 'down'. Use the integer
constants provided in jns.util.Status.
@param status the new status of the link
*/
public abstract void setStatus(int status);
/**
Return the status of this link, either 'up' or 'down'. Returns one of
the constans provided in jns.util.Status.
@return Status.UP or Status.DOWN.
*/
public abstract int getStatus();
/**
Return the bandwidth of this link in bits per second (bps);
*/
public abstract int getBandwidth();
/**
Return the delay of this link in seconds (This will normally be a
fraction though).
*/
public abstract double getDelay();
public abstract Interface getIncomingInterface();
public abstract Interface getOutgoingInterface();
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?