Package adams.event
Class PublicationEvent
- java.lang.Object
-
- java.util.EventObject
-
- adams.event.PublicationEvent
-
- All Implemented Interfaces:
Serializable
public class PublicationEvent extends EventObject
Event when data gets published throughPublishSubscribeHandler.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Objectm_DataSourcethe data source.protected Objectm_PublishedDatathe published data.-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description PublicationEvent(PublishSubscribeHandler handler, Object dataSource, Object publishedData)Initializes the event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetDataSource()Returns the object that generated the data.PublishSubscribeHandlergetHandler()Returns the handler.ObjectgetPublishedData()Returns the published the data.-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Constructor Detail
-
PublicationEvent
public PublicationEvent(PublishSubscribeHandler handler, Object dataSource, Object publishedData)
Initializes the event.- Parameters:
handler- the handler of the subscriptionsdataSource- the source of the datapublishedData- the published data
-
-
Method Detail
-
getHandler
public PublishSubscribeHandler getHandler()
Returns the handler.- Returns:
- the handler
-
getDataSource
public Object getDataSource()
Returns the object that generated the data.- Returns:
- the data source
-
getPublishedData
public Object getPublishedData()
Returns the published the data.- Returns:
- the data
-
-