cz.cuni.amis.pogamut.ut2004.communication.translator
Class IWorldEventQueue.Queue

java.lang.Object
  extended by cz.cuni.amis.pogamut.ut2004.communication.translator.IWorldEventQueue.Queue
All Implemented Interfaces:
IWorldEventQueue
Enclosing interface:
IWorldEventQueue

public static class IWorldEventQueue.Queue
extends java.lang.Object
implements IWorldEventQueue


Nested Class Summary
 
Nested classes/interfaces inherited from interface cz.cuni.amis.pogamut.ut2004.communication.translator.IWorldEventQueue
IWorldEventQueue.Queue
 
Constructor Summary
IWorldEventQueue.Queue()
           
 
Method Summary
 IWorldChangeEvent[] popEvents()
          Returns all events in the queue + removes them from the queue.
 void pushEvent(IWorldChangeEvent event)
          Add event to the queue.
 void pushEvent(IWorldChangeEvent[] events)
          Add events to the queue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IWorldEventQueue.Queue

public IWorldEventQueue.Queue()
Method Detail

popEvents

public IWorldChangeEvent[] popEvents()
Description copied from interface: IWorldEventQueue
Returns all events in the queue + removes them from the queue.

If there are no event this must return an empty array.

Specified by:
popEvents in interface IWorldEventQueue
Returns:

pushEvent

public void pushEvent(IWorldChangeEvent event)
Description copied from interface: IWorldEventQueue
Add event to the queue.

Specified by:
pushEvent in interface IWorldEventQueue

pushEvent

public void pushEvent(IWorldChangeEvent[] events)
Description copied from interface: IWorldEventQueue
Add events to the queue.

Specified by:
pushEvent in interface IWorldEventQueue