edu.cmu.cs.able.probebus
Interface IProbeBus

All Known Implementing Classes:
SienaProbeBus

public interface IProbeBus

George Fairbanks 19 Nov 01


Method Summary
 boolean publishEvent(IProbeEvent e)
          Publishes an Event (ISienaProbeEvent) on the Siena Event Bus This means the client of this method has the job of creating the Notification
 void registerForEvent(IProbeEvent e, IProbeConsumer c)
          An object that wants to get notified when event occurs must register using this method.
 

Method Detail

registerForEvent

public void registerForEvent(IProbeEvent e,
                             IProbeConsumer c)
An object that wants to get notified when event occurs must register using this method. When that event occurs, the interested object, (the IProbeConsumer parameter) will be notified with an "onProbeEvent( e )" callback.
Parameters:
e - The event (specifically the ProbeID) that you're interested in
c - The object that will be getting the callback notification

publishEvent

public boolean publishEvent(IProbeEvent e)
Publishes an Event (ISienaProbeEvent) on the Siena Event Bus This means the client of this method has the job of creating the Notification
Parameters:
notice - The ISienaProbeEvent to be published
Returns:
"true" indicates success