Class InitializerState

    • Constructor Detail

      • InitializerState

        public InitializerState​(int segmentsCount)
    • Method Detail

      • getSegmentsCount

        public int getSegmentsCount()
        Getter for the segments count.
        Returns:
        The number of segments of the state
      • isFinished

        public boolean isFinished()
        Return true just if computation is entirely finished (all segments are true)
      • getProgressIndicator

        public int getProgressIndicator()
        Return indication of progress - changes upon progress
      • getSegmentsToLoad

        public List<Integer> getSegmentsToLoad​(int segmentToLoad,
                                               int maxSegmentCount)
        Return next un-finished segments in the next row of segments.
        Parameters:
        segmentToLoad - The segment we are loading
        maxSegmentCount - The max segment to load
        Returns:
        The list of segments to work on this step
      • markSegmentFinished

        public void markSegmentFinished​(int index)