livespace.services
Class EntityQueue

java.lang.Object
  extended by dsto.dfc.databeans.AbstractDataObject
      extended by dsto.dfc.databeans.SimpleDataObject
          extended by dsto.dfc.databeans.FancyDataObject
              extended by livespace.services.EntityList
                  extended by livespace.services.EntityQueue
All Implemented Interfaces:
IDataObject, IDataObjectChildListener, Cloneable

public class EntityQueue
extends EntityList

A first-in-first-out queue of entities. This extends EntityList with operations that allow the list to be treated as a queue.

Author:
Steven Johnson Created on 17/05/2006

Nested Class Summary
 
Nested classes/interfaces inherited from class livespace.services.EntityList
EntityList.ListEntity
 
Field Summary
 
Fields inherited from class livespace.services.EntityList
endIndex, entities, startIndex
 
Fields inherited from class dsto.dfc.databeans.AbstractDataObject
listeners
 
Fields inherited from interface dsto.dfc.databeans.IDataObject
OVERRIDE, PERSISTENT, PERSISTENT_OVERRIDE, TRANSIENT, TRANSIENT_OVERRIDE
 
Constructor Summary
EntityQueue()
           
 
Method Summary
 void add(Entity e)
          Adds the specified entity to the end of the list.
 Entity peek()
           
 Entity remove()
           
 
Methods inherited from class livespace.services.EntityList
add, clear, get, isEmpty, iterator, remove, remove, remove, size, snapshot
 
Methods inherited from class dsto.dfc.databeans.FancyDataObject
childPropertyChanged, getValue, isTransient, propertyIterator, setValue, shallowClone
 
Methods inherited from class dsto.dfc.databeans.SimpleDataObject
getFieldNames, getTypeInfo, setValue
 
Methods inherited from class dsto.dfc.databeans.AbstractDataObject
addFirstPropertyListener, addPropertyListener, firePropertyChangedEvent, firePropertyChangedEvent, firePropertyChangedEvent, firePropertyChangedEvent, firePropertyChangedEvent, firePropertyChangedEvent, getBeanValue, getBooleanValue, getBooleanValue, getCharValue, getCharValue, getDoubleValue, getDoubleValue, getFloatValue, getFloatValue, getIntValue, getIntValue, getLongValue, getLongValue, getObjectValue, getPropertyListeners, getShortValue, getStringValue, registerValue, removePropertyListener, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, toString, unregisterValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EntityQueue

public EntityQueue()
Method Detail

peek

public Entity peek()
            throws IllegalStateException
Throws:
IllegalStateException

remove

public Entity remove()
              throws IllegalStateException
Throws:
IllegalStateException

add

public void add(Entity e)
Description copied from class: EntityList
Adds the specified entity to the end of the list.

Overrides:
add in class EntityList
Parameters:
e - the Entity to add to the end of the list.


Copyright © 2008 Commonwealth of Australia