Class CollectionWindow

  • All Implemented Interfaces:

    @Serializable() 
    public final class CollectionWindow
    
                        

    Class that describes a time window. In some cases, it is useful to have a start and end time for collection. The CollectionWindow's startTime and endTime will be modified each collection such that each collection's endTime will be the next collection's startTime. Thus, the window can be treated as either the interval (startTime, endTime] or [startTime, endTime), so long as each collection uses the same convention, there will be no overlaps or missing times. (Note that restarting the adapter instance will reset the time window. In general, this will cause overlap and/or missing times when restarts occur for any reason)

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final Double startTime
      private final Double endTime
    • Constructor Summary

      Constructors 
      Constructor Description
      CollectionWindow(Double startTime, Double endTime)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Double getStartTime() The start of the window.
      final Double getEndTime() The end of the window
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CollectionWindow

        CollectionWindow(Double startTime, Double endTime)
    • Method Detail

      • getStartTime

         final Double getStartTime()

        The start of the window. On the first collection, this will be set to 0.

      • getEndTime

         final Double getEndTime()

        The end of the window