|
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
Base class for implementing a combo component that combines the functioins of both a buffer and a network interface card.
| Nested Class Summary |
| Nested classes inherited from class drcl.comp.Component |
Component.Locks |
| Field Summary |
| Fields inherited from interface drcl.inet.core.InetCoreConstants |
CONFIG_PORT_ID, PULL_PORT_ID |
| Constructor Summary | |
QueueNI()
|
|
QueueNI(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. |
abstract int |
getCapacity()
Returns the capacity of the queue. |
java.lang.String |
getMode()
|
abstract int |
getSize()
Returns the current size of the queue. |
java.lang.String |
info()
Returns information regarding this component. |
abstract void |
setCapacity(int capacity_)
Sets the capacity of the queue. |
void |
setMode(java.lang.String mode_)
Sets the operation mode. |
| Methods inherited from class drcl.inet.core.NI |
getBandwidth, getMTU, getPropDelay, isLinkEmulationEnabled, isReady, reset, 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 |
| Constructor Detail |
public QueueNI()
public QueueNI(java.lang.String id_)
| Method Detail |
public void duplicate(java.lang.Object source_)
Component
duplicate in interface ObjectDuplicableduplicate in class NIpublic java.lang.String info()
Component
info in class NIpublic void setMode(java.lang.String mode_)
mode_ - either "packet" or "byte".public java.lang.String getMode()
public abstract void setCapacity(int capacity_)
public abstract int getCapacity()
public abstract int getSize()
|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||