org.mitre.jdas.event
Interface EventGenerator

All Known Subinterfaces:
AudioBroker
All Known Implementing Classes:
Controller

public interface EventGenerator

The ControllerGenerator interface is used by Controller to fix its standard methods for managing subscribers and notifying them of events.


Method Summary
 void addEventListener(java.util.EventListener l)
          Adds the specified ControllerListener to the collection of current listeners.
 void notifySubscribers(java.lang.Object source, java.util.EventObject event)
          Provides a way for events to be generated and sent to subscribers
 void removeEventListener(java.util.EventListener l)
          Removes the specified ControllerListener from the collection of current listeners.
 

Method Detail

addEventListener

public void addEventListener(java.util.EventListener l)
Adds the specified ControllerListener to the collection of current listeners.

removeEventListener

public void removeEventListener(java.util.EventListener l)
Removes the specified ControllerListener from the collection of current listeners.

notifySubscribers

public void notifySubscribers(java.lang.Object source,
                              java.util.EventObject event)
Provides a way for events to be generated and sent to subscribers