edu.sc.seis.sod.source.event
Class NowFakeEventSource

java.lang.Object
  extended by edu.sc.seis.sod.source.event.PeriodicFakeEventSource
      extended by edu.sc.seis.sod.source.event.NowFakeEventSource
All Implemented Interfaces:
SodElement, EventSource

public class NowFakeEventSource
extends PeriodicFakeEventSource


Constructor Summary
NowFakeEventSource(org.w3c.dom.Element config)
           
 
Method Summary
 java.lang.String getDescription()
           
 MicroSecondTimeRange getEventTimeRange()
           
 CacheEvent[] next()
           
 
Methods inherited from class edu.sc.seis.sod.source.event.PeriodicFakeEventSource
getWaitBeforeNext, hasNext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NowFakeEventSource

public NowFakeEventSource(org.w3c.dom.Element config)
                   throws ConfigurationException
Throws:
ConfigurationException
Method Detail

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface EventSource
Overrides:
getDescription in class PeriodicFakeEventSource

getEventTimeRange

public MicroSecondTimeRange getEventTimeRange()
Specified by:
getEventTimeRange in interface EventSource
Overrides:
getEventTimeRange in class PeriodicFakeEventSource
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 CacheEvent[] next()
Specified by:
next in interface EventSource
Overrides:
next in class PeriodicFakeEventSource
Returns:
- the next set of events. Events can be returned from this method multiple times