Package noaa.coastwatch.util.chunk
Class ChunkCollector
java.lang.Object
noaa.coastwatch.util.chunk.ChunkCollector
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addProducer
(ChunkProducer producer) Adds a producer to the list of chunks to assemble.getChunks
(ChunkPosition pos) Assembles a set of chunks from the producers.
-
Constructor Details
-
ChunkCollector
public ChunkCollector()
-
-
Method Details
-
addProducer
Adds a producer to the list of chunks to assemble.- Parameters:
producer
- the producer to add to the list.
-
getChunks
Assembles a set of chunks from the producers.- Parameters:
pos
- the chunk position to get.- Returns:
- the list of chunks assembled.
-