Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.synchrona.jred.irlap
Class IrLAPSendQueue  view IrLAPSendQueue download IrLAPSendQueue.java

java.lang.Object
  extended bycom.synchrona.jred.irlap.IrLAPSendQueue

class IrLAPSendQueue
extends java.lang.Object


Field Summary
private  java.util.LinkedList m_list
           
 
Constructor Summary
IrLAPSendQueue()
           
 
Method Summary
 void addFrame(IrLAPFrame frame)
           
 IrLAPFrame get(int nIndex)
          Returns the nIndex'th frame in the queue without removing it, because IrLAP frames have to be acknowledged or resent.
 IrLAPFrame getNext()
          Returns the first frame in the queue without removing it, because IrLAP data-carrying frames have to be acknowledged or resent.
 boolean pendingDataRequests()
          Returns true if the list is nonempty, implying there are outstanding send requests.
 void remove(int nIndex)
          Remove a frame from the queue.
 void remove(IrLAPFrame frame)
           
 void removeFirst()
          Remove the first frame from the queue.
 int size()
          Returns the number of frames in the send queue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_list

private java.util.LinkedList m_list
Constructor Detail

IrLAPSendQueue

public IrLAPSendQueue()
Method Detail

addFrame

public void addFrame(IrLAPFrame frame)

get

public IrLAPFrame get(int nIndex)
Returns the nIndex'th frame in the queue without removing it, because IrLAP frames have to be acknowledged or resent.


getNext

public IrLAPFrame getNext()
Returns the first frame in the queue without removing it, because IrLAP data-carrying frames have to be acknowledged or resent.


pendingDataRequests

public boolean pendingDataRequests()
Returns true if the list is nonempty, implying there are outstanding send requests.


remove

public void remove(int nIndex)
Remove a frame from the queue. Unnumbered and supervisory frames should always be removed from the queue upon being sent. Information frames should remain in the queue until they are acknowledged.


remove

public void remove(IrLAPFrame frame)

removeFirst

public void removeFirst()
Remove the first frame from the queue. Unnumbered and supervisory frames should always be removed from the queue upon being sent. Information frames should remain in the queue until they are acknowledged.


size

public int size()
Returns the number of frames in the send queue.