net.ponder2
Class EventForwarder

java.lang.Object
  extended by net.ponder2.EventForwarder
All Implemented Interfaces:
ManagedObject, EventListener

public class EventForwarder
extends java.lang.Object
implements ManagedObject, EventListener

Forwards event from its attachment point to another part of the proximity event bus in this or another SMC. May also be used to forward events as ordinary messages to Managed Objects, useful for communicating with external event busses.

Version:
$Id:$
Author:
Kevin Twidle

Field Summary
static java.lang.String eventCommand
           
 
Method Summary
 void event(Event event)
          called to deal with an event when one occurs
 P2ManagedObject getId()
          Called to get an ID to keep track of events
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

eventCommand

public static final java.lang.String eventCommand
See Also:
Constant Field Values
Method Detail

event

public void event(Event event)
           throws Ponder2Exception
Description copied from interface: EventListener
called to deal with an event when one occurs

Specified by:
event in interface EventListener
Parameters:
event - the event to be handled
Throws:
Ponder2Exception

getId

public P2ManagedObject getId()
Description copied from interface: EventListener
Called to get an ID to keep track of events

Specified by:
getId in interface EventListener
Returns:
the managed object of the event listener


Copyright © 2008 Imperial College. All Rights Reserved.