public class RandomGeoFeed extends GeoEventGenerator
| Constructor and Description |
|---|
RandomGeoFeed()
Constructor for a RandomGeoFeed which creates events that are
distributed across the northern and eastern hemisphere.
|
RandomGeoFeed(java.util.Collection<java.lang.String> placeNames)
Constructor for a RandomGeoFeed which creates events randomly from a
list of place names.
|
RandomGeoFeed(GeoCoord center,
double radius)
Constructor for a RandomGeoFeed which creates events that are
distributed radially around a center point, up to a certain distance
away.
|
RandomGeoFeed(GeoFilter filter)
Create a RandomGeoFeed from a Geographic Filter.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args)
Run a random GeoEvent generator.
|
void |
run()
Run method for the RandomGeoFeed.
|
void |
setMaxSleep(int sleepSeconds)
Set the maximum time to sleep between generating random events.
|
addGeoListener, fireGeoEvent, removeGeoListeneractiveCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic RandomGeoFeed()
public RandomGeoFeed(java.util.Collection<java.lang.String> placeNames)
placeNames - The collection of place names.public RandomGeoFeed(GeoCoord center, double radius)
center - The geographic coordinate of the center pointradius - The distance, measured in meters.public RandomGeoFeed(GeoFilter filter)
filter - the filter to use to create the random feedpublic void run()
start().run in interface java.lang.Runnablerun in class java.lang.Threadpublic void setMaxSleep(int sleepSeconds)
sleepSeconds - the maximum sleep time, in seconds.public static void main(java.lang.String[] args)
args - Command line arguments. Ignored