Package edu.sc.seis.sod.source.event
Class NowFakeEventSource
java.lang.Object
edu.sc.seis.sod.source.AbstractSource
edu.sc.seis.sod.source.event.PeriodicFakeEventSource
edu.sc.seis.sod.source.event.NowFakeEventSource
- All Implemented Interfaces:
EventSource
,Source
public class NowFakeEventSource extends PeriodicFakeEventSource
-
Field Summary
Fields inherited from class edu.sc.seis.sod.source.AbstractSource
name, NAME_ELEMENT, RETRIES_ELEMENT
-
Constructor Summary
Constructors Constructor Description NowFakeEventSource(org.w3c.dom.Element config)
-
Method Summary
Modifier and Type Method Description java.lang.String
getDescription()
edu.sc.seis.sod.model.common.TimeRange
getEventTimeRange()
edu.sc.seis.sod.model.event.CacheEvent[]
next()
Methods inherited from class edu.sc.seis.sod.source.event.PeriodicFakeEventSource
getWaitBeforeNext, hasNext
Methods inherited from class edu.sc.seis.sod.source.AbstractSource
appendToName, getName, getRetries, getRetryStrategy, setRetryStrategy
-
Constructor Details
-
Method Details
-
getDescription
public java.lang.String getDescription()- Overrides:
getDescription
in classPeriodicFakeEventSource
-
getEventTimeRange
public edu.sc.seis.sod.model.common.TimeRange getEventTimeRange()- Specified by:
getEventTimeRange
in interfaceEventSource
- Overrides:
getEventTimeRange
in classPeriodicFakeEventSource
- Returns:
- - a MicroSecondTimeRange starting at least as early as the earliest event and ending at least as late as the latest event. No event should be returned by this source with an origin before the begin time or after the end time of this range.
-
next
public edu.sc.seis.sod.model.event.CacheEvent[] next()- Specified by:
next
in interfaceEventSource
- Overrides:
next
in classPeriodicFakeEventSource
- Returns:
- - the next set of events. Events can be returned from this method multiple times
-