|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.nist.antd.optical.BasicQueue.Info
internal class to store information about the queue of a specific lambda.
| Field Summary | |
private long |
lastTransmitTime
The time of the last transmission |
private int |
pktCount
auxiliary monitoring variable that stores the # of packet sent |
private int |
pktDropCount
auxiliary monitoring variable that stores the # of packet dropped |
private long |
queueingDelay
The current delay in the queue |
| Constructor Summary | |
BasicQueue.Info()
Default constructor |
|
| Method Summary | |
private long |
calibrate()
If we have moved forward in time, recalibrate the accumulated delay so that it remains relative to "now". |
boolean |
enqueue(OpticalFrameHeader msg)
Process the given packet |
long |
getLastTransmitTime()
Get the time of the last transmission |
int |
getPktCount()
Get the total number of packet sent |
int |
getPktDropCount()
Get the total number of packet dropped |
long |
getQueueingDelay()
Get the delay in the queue |
void |
setLastTransmitTime(long value)
Set the delay in the queue |
void |
setQueueingDelay(long value)
Set the delay in the queue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private long queueingDelay
private long lastTransmitTime
private int pktCount
private int pktDropCount
| Constructor Detail |
public BasicQueue.Info()
| Method Detail |
public void setQueueingDelay(long value)
value - The value of the delaypublic void setLastTransmitTime(long value)
value - The value of the delaypublic long getQueueingDelay()
public long getLastTransmitTime()
public int getPktCount()
public int getPktDropCount()
public boolean enqueue(OpticalFrameHeader msg)
msg - The message to enqueue
private long calibrate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||