Class SimpleEventSource

    • Field Detail

      • hasNextBeenCalled

        public boolean hasNextBeenCalled
    • Constructor Detail

      • SimpleEventSource

        public SimpleEventSource​(org.w3c.dom.Element config,
                                 java.lang.String defaultName,
                                 int defaultRetries)
      • SimpleEventSource

        public SimpleEventSource​(org.w3c.dom.Element config,
                                 java.lang.String defaultName)
      • SimpleEventSource

        public SimpleEventSource​(java.lang.String name,
                                 int retries)
      • SimpleEventSource

        public SimpleEventSource​(java.lang.String name)
    • Method Detail

      • getEvents

        public abstract edu.sc.seis.fissuresUtil.cache.CacheEvent[] getEvents()
      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface EventSource
        Returns:
        - false when this event source will return no new events from calls to next
      • next

        public edu.sc.seis.fissuresUtil.cache.CacheEvent[] next()
        Specified by:
        next in interface EventSource
        Returns:
        - the next set of events. Events can be returned from this method multiple times
      • getWaitBeforeNext

        public edu.iris.Fissures.model.TimeInterval getWaitBeforeNext()
        Description copied from interface: EventSource
        If the source needs to wait for more events to arrive, it should return the amount of time it wants to wait with this method.
        Specified by:
        getWaitBeforeNext in interface EventSource
      • getEventTimeRange

        public edu.sc.seis.fissuresUtil.time.MicroSecondTimeRange getEventTimeRange()
        Specified by:
        getEventTimeRange in interface EventSource
        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.
      • extractBeginTime

        public edu.iris.Fissures.model.MicroSecondDate extractBeginTime​(edu.sc.seis.fissuresUtil.cache.CacheEvent ev)