com.jpeterson.x10
Class GatewayQueue

java.lang.Object
  |
  +--com.jpeterson.x10.GatewayQueue
Direct Known Subclasses:
AWTGatewayQueue, NullGatewayQueue

public abstract class GatewayQueue
extends java.lang.Object

Base abstract queue management class for X10 ControlEvents.


Field Summary
protected  ControlEventDispatcher dispatcher
          Dispatcher to process the queue messages.
 
Constructor Summary
GatewayQueue(ControlEventDispatcher dispatcher)
          Create a new gateway queue for processing control messages.
 
Method Summary
 ControlEventDispatcher getDispatcher()
          Retrieve the assigned ControlEventDispatcher.
abstract  void post(ControlEvent event)
          Put an event on the queue.
 void setDispatcher(ControlEventDispatcher dispatcher)
          Assign a dispatcher.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dispatcher

protected ControlEventDispatcher dispatcher
Dispatcher to process the queue messages.
Constructor Detail

GatewayQueue

public GatewayQueue(ControlEventDispatcher dispatcher)
Create a new gateway queue for processing control messages.
Parameters:
dispatcher - ControlEventDispatcher that will dispatch the control event.
Method Detail

setDispatcher

public void setDispatcher(ControlEventDispatcher dispatcher)
Assign a dispatcher.
Parameters:
dispatcher - ControlEventDispatcher that will dispatch the control event.

getDispatcher

public ControlEventDispatcher getDispatcher()
Retrieve the assigned ControlEventDispatcher.
Returns:
ControlEventDispatcher that will dispatch the control event.

post

public abstract void post(ControlEvent event)
Put an event on the queue. The assigned dispatcher will process the event.
Parameters:
event - ControlEvent to be placed on the queue for subsequent processing.