cgl.hhms
Class Queue

java.lang.Object
  extended bycgl.hhms.Queue

public class Queue
extends java.lang.Object

Queue is a generic LinkedList which is used for storing outgoing message for hhms or building DataStructure for hhfr.

Title: Queue

Copyright: Copyright (c) 2004

Company: CommunityGrids Labs at Indiana University


Constructor Summary
Queue()
           
 
Method Summary
 void add(java.lang.Object data)
           
 java.lang.Object get()
           
 boolean isEmpty()
           
 java.lang.Object peek(int n)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Queue

public Queue()
Method Detail

isEmpty

public boolean isEmpty()

size

public int size()

add

public void add(java.lang.Object data)

get

public java.lang.Object get()
                     throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

peek

public java.lang.Object peek(int n)