|
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
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 | |
protected int |
capacity
|
static java.lang.String |
EVENT_QLEN
|
protected VSFIFOQueue |
q
|
protected Port |
qLenPort
|
protected int |
ready
Time ready to transmit next packet. |
| Fields inherited from class drcl.inet.core.QueueNI |
byteMode |
| Fields inherited from class drcl.inet.core.NI |
bw, downPort, linkEmulation, mtu, propDelay, pullPort |
| 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 |
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. |
protected void |
process(java.lang.Object data_,
Port inPort_)
The main callback method of a component. |
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, transmit |
| 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, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected int ready
public static final java.lang.String EVENT_QLEN
protected Port qLenPort
protected VSFIFOQueue q
protected int capacity
| Constructor Detail |
public DropTailPointopointNI()
public DropTailPointopointNI(java.lang.String id_)
| Method Detail |
protected void process(java.lang.Object data_,
Port inPort_)
Component
process in class Componentdata_ - the arrival data.inPort_ - the port where the data arrives.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 QueueNI
|
J-Sim v1.2.1-p7 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||