|
DRCL J-Sim 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
drcl.inet.core.QueueNI
drcl.inet.core.ni.DropTailPointopointNI
The class implements the point-to-point network interface and emulates the physical link propagation. It is fully specified by the bandwidth, MTU and propagation delay. As a network interface, only one packet can be transmitted at a time. However as an emulated link, multiple packets may be outstanding, the number of which dependes on the propagation delay, bandwidth and packet size.
| Nested Class Summary |
| Nested classes inherited from class drcl.comp.Component |
Component.Locks |
| Field Summary | |
static java.lang.String |
EVENT_QLEN
|
| Fields inherited from interface drcl.inet.core.InetCoreConstants |
CONFIG_PORT_ID, PULL_PORT_ID |
| Constructor Summary | |
DropTailPointopointNI()
|
|
DropTailPointopointNI(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. |
int |
getCapacity()
Returns the capacity of the queue. |
int |
getMaxLength()
|
int |
getSize()
Returns the current size of the queue. |
java.lang.String |
info()
Returns information regarding this component. |
boolean |
isReady()
Returns true if the interface is ready to transmit more packets. |
void |
reset()
Resets the component for being used anew. |
void |
setCapacity(int capacity_)
Sets the capacity of the queue. |
| Methods inherited from class drcl.inet.core.QueueNI |
getMode, setMode |
| Methods inherited from class drcl.inet.core.NI |
getBandwidth, getMTU, getPropDelay, isLinkEmulationEnabled, setBandwidth, setLinkEmulationEnabled, setMTU, setPropDelay |
| Methods inherited from class drcl.DrclObj |
clone |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.String EVENT_QLEN
| Constructor Detail |
public DropTailPointopointNI()
public DropTailPointopointNI(java.lang.String id_)
| Method Detail |
public void duplicate(java.lang.Object source_)
Component
duplicate in interface ObjectDuplicableduplicate in class QueueNIpublic void reset()
Component
reset in class NIpublic boolean isReady()
isReady in class NIpublic java.lang.String info()
Component
info in class QueueNIpublic void setCapacity(int capacity_)
setCapacity in class QueueNIpublic int getCapacity()
getCapacity in class QueueNIpublic int getSize()
getSize in class QueueNIpublic int getMaxLength()
|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||