Class CycleLogInput

    • Method Summary

      Modifier and Type Method Description
      void close()  
      CycleSegment getInputSegment​(int segmentLength)
      Return the next InputSegment available, or null if none were available.
      java.util.Iterator<CycleResultsSegment> iterator()  
      void setFilter​(java.util.function.Predicate<ResultReadable> filter)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Constructor Detail

      • CycleLogInput

        public CycleLogInput​(Activity activity)
      • CycleLogInput

        public CycleLogInput​(java.lang.String filename)
    • Method Detail

      • getInputSegment

        public CycleSegment getInputSegment​(int segmentLength)
        Description copied from interface: Input
        Return the next InputSegment available, or null if none were available. This method is required to be thread safe.

        All implementations of this method are required to be thread-safe.

        Specified by:
        getInputSegment in interface Input
        Parameters:
        segmentLength - The number of cycles (not necessarily contiguous) in the segment.
        Returns:
        a segment, or null if none available.
      • close

        public void close()
                   throws java.lang.Exception
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.lang.Exception