|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpamvotis.core.PacketBuffer
public class PacketBuffer
Simulates the hardware packet buffer of a noder
Constructor Summary | |
---|---|
PacketBuffer(int size)
Creates a packet buffer, which is actually called _vPacketQueue |
Method Summary | |
---|---|
void |
dequeue()
Removes the first element of the packet buffer. |
void |
enqueue(java.util.Vector<Packet> newPackets)
Gets all the packets that the source manager polled from each source and adds them to the packet buffer. |
Packet |
firstPacket()
|
boolean |
isEmpty()
Checks if a packet buffer is empty. |
int |
size()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PacketBuffer(int size)
size
- The buffer capacity in packets.Method Detail |
---|
public void enqueue(java.util.Vector<Packet> newPackets)
newPackets
- A vector that contains all the packets polled from sourcespublic Packet firstPacket()
Packet
public void dequeue()
public boolean isEmpty()
public int size()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |