cfa.vo.iris.events
Class GenericEvent<SourceClass,ListenerClass extends IListener<SourceClass,PayloadClass>,PayloadClass>

java.lang.Object
  extended by cfa.vo.iris.events.GenericEvent<SourceClass,ListenerClass,PayloadClass>
All Implemented Interfaces:
IEvent<SourceClass,ListenerClass,PayloadClass>
Direct Known Subclasses:
LogEvent, MultipleSegmentEvent, PluginJarEvent, PointEvent, SedEvent, SegmentEvent, XSedEvent, XSegmentEvent

public abstract class GenericEvent<SourceClass,ListenerClass extends IListener<SourceClass,PayloadClass>,PayloadClass>
extends Object
implements IEvent<SourceClass,ListenerClass,PayloadClass>

Author:
olaurino

Constructor Summary
GenericEvent()
           
 
Method Summary
 void add(ListenerClass listener)
          This method adds a new listener to the event.
 void fire(SourceClass source, PayloadClass payload)
          This method can be invoked to fire the EventCommand command for the source object.
 void remove(ListenerClass listener)
          This method removes a listener from the event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericEvent

public GenericEvent()
Method Detail

add

public void add(ListenerClass listener)
Description copied from interface: IEvent
This method adds a new listener to the event.

Specified by:
add in interface IEvent<SourceClass,ListenerClass extends IListener<SourceClass,PayloadClass>,PayloadClass>

remove

public void remove(ListenerClass listener)
Description copied from interface: IEvent
This method removes a listener from the event.

Specified by:
remove in interface IEvent<SourceClass,ListenerClass extends IListener<SourceClass,PayloadClass>,PayloadClass>

fire

public void fire(SourceClass source,
                 PayloadClass payload)
Description copied from interface: IEvent
This method can be invoked to fire the EventCommand command for the source object.

Specified by:
fire in interface IEvent<SourceClass,ListenerClass extends IListener<SourceClass,PayloadClass>,PayloadClass>
Parameters:
source - The object for which the event is being fired.
payload - The semantic content of the event, in a payload object.


Copyright © 2013. All rights reserved.