|
J-Sim v1.2.1-p7 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectdrcl.DrclObj
drcl.comp.Component
drcl.inet.core.NI
Base class for modeling network interface card.
| Nested Class Summary |
| Nested classes inherited from class drcl.comp.Component |
Component.Locks |
| Field Summary | |
protected double |
bw
Bandwidth of this network interface. |
protected Port |
downPort
Port to send out packets. |
protected boolean |
linkEmulation
Link emulation is enabled? |
protected int |
mtu
Maximum transmission unit. |
protected double |
propDelay
The propagation delay of the emulated link. |
protected Port |
pullPort
Port to pull data from data source (buffer). |
| Fields inherited from interface drcl.inet.core.InetCoreConstants |
CONFIG_PORT_ID, PULL_PORT_ID |
| Constructor Summary | |
NI()
|
|
NI(java.lang.String id_)
|
|
| Method Summary | |
void |
duplicate(java.lang.Object source_)
Duplicates the content of source_, including ID, name, child components and connections among them, to this component. |
double |
getBandwidth()
Returns the bandwidth of this network interface. |
int |
getMTU()
Returns the MTU, not including packet header, of this network interface. |
double |
getPropDelay()
Returns the propagation delay of the emulated link. |
java.lang.String |
info()
Returns information regarding this component. |
boolean |
isLinkEmulationEnabled()
|
abstract boolean |
isReady()
Returns true if the interface is ready to transmit more packets. |
void |
reset()
Resets the component for being used anew. |
void |
setBandwidth(double bw_)
Sets the bandwidth of this network interface. |
void |
setLinkEmulationEnabled(boolean v_)
|
void |
setMTU(int mtu_)
Sets the MTU, not including packet header, of this network interface. |
void |
setPropDelay(double delay_)
Enables link emulation and sets the propagation delay of the emulated link. |
| Methods inherited from class drcl.DrclObj |
clone |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected Port pullPort
protected Port downPort
protected double propDelay
protected boolean linkEmulation
protected double bw
protected int mtu
| Constructor Detail |
public NI()
public NI(java.lang.String id_)
| Method Detail |
public void duplicate(java.lang.Object source_)
Component
duplicate in interface ObjectDuplicableduplicate in class Componentpublic void reset()
Component
reset in class Componentpublic java.lang.String info()
Component
info in class Componentpublic double getBandwidth()
public void setBandwidth(double bw_)
public int getMTU()
public void setMTU(int mtu_)
public abstract boolean isReady()
public void setLinkEmulationEnabled(boolean v_)
public boolean isLinkEmulationEnabled()
public double getPropDelay()
public void setPropDelay(double delay_)
|
J-Sim v1.2.1-p7 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||