Class ChunkCollector

java.lang.Object
noaa.coastwatch.util.chunk.ChunkCollector
All Implemented Interfaces:
Iterable<ChunkProducer>
Direct Known Subclasses:
CompositeMapApplicationCollector

public class ChunkCollector extends Object implements Iterable<ChunkProducer>
The ChunkCollector class assembles chunks from a list of producers and allows them to be accessed in one operation.
Since:
3.4.0
Author:
Peter Hollemans
  • Field Details

    • producerList

      protected List<ChunkProducer> producerList
      The list of chunk producers.
  • Constructor Details

    • ChunkCollector

      public ChunkCollector()
  • Method Details

    • addProducer

      public void addProducer(ChunkProducer producer)
      Adds a producer to the list of chunks to assemble.
      Parameters:
      producer - the producer to add to the list.
    • getChunks

      public List<DataChunk> getChunks(ChunkPosition pos)
      Assembles a set of chunks from the producers.
      Parameters:
      pos - the chunk position to get.
      Returns:
      the list of chunks assembled.
    • iterator

      public Iterator<ChunkProducer> iterator()
      Specified by:
      iterator in interface Iterable<ChunkProducer>