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

Quick Search    Search Deep

mobile.protocol
Class FrameQueue  view FrameQueue download FrameQueue.java

java.lang.Object
  extended bymobile.protocol.FrameQueue

public class FrameQueue
extends java.lang.Object

The FrameQueue class implements a queue of Frame objects. It provides the queue interface, which is not available in the MIDP.


Field Summary
private  Frame head
           The head of the cyclic linked list containing the queue
private  int size
           Number of frames contained in the queue
 
Constructor Summary
FrameQueue()
           
 
Method Summary
 void add(Frame newFrame)
           Adds a new Frame at the end of the queue
 boolean empty()
           Checks if the queue is empty
 Frame get()
           Gets a Frame from the head of the queue but does not remove it from the queue
 void print()
          Prints the ids of messages contained in this queue.
 Frame remove()
           Gets a Frame from the head of the queue and removes it from the queue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

head

private Frame head

The head of the cyclic linked list containing the queue


size

private int size

Number of frames contained in the queue

Constructor Detail

FrameQueue

public FrameQueue()
Method Detail

empty

public boolean empty()

Checks if the queue is empty


add

public void add(Frame newFrame)

Adds a new Frame at the end of the queue


get

public Frame get()

Gets a Frame from the head of the queue but does not remove it from the queue


remove

public Frame remove()

Gets a Frame from the head of the queue and removes it from the queue


print

public void print()
Prints the ids of messages contained in this queue. Used for debugging.