public class GeoEvent
extends java.util.EventObject
Constructor and Description |
---|
GeoEvent(java.lang.Object eventSource,
Location loc)
Instantiates a new geographic event.
|
GeoEvent(java.lang.Object eventSource,
Location loc,
TimeSpan span,
java.lang.String data)
Instantiates a new geographic event with a time span and event data.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getEventData()
Retrieves the event data.
|
Location |
getLocation()
Gets the location associated with the event
|
TimeSpan |
getTimeSpan()
Gets the time span for the event
|
public GeoEvent(java.lang.Object eventSource, Location loc)
eventSource
- the source object generating the eventloc
- the geographic Locationpublic GeoEvent(java.lang.Object eventSource, Location loc, TimeSpan span, java.lang.String data)
eventSource
- the source object generating the eventloc
- the geographic Locationspan
- The time span for the geographic Eventdata
- the Event datapublic java.lang.String getEventData()
public Location getLocation()
public TimeSpan getTimeSpan()