public abstract class RangeCollector<S extends Splittable<S>> extends Object implements SplitCollector<S,Range[]>
accumulate method should be implemented
to submit values to an N-element array of ranges.
On completion, the mergeRanges(uk.ac.starlink.ttools.plot.Range[], uk.ac.starlink.ttools.plot.Range[]) method may be used
to update a supplied Range array with the collected result.
| Modifier | Constructor and Description |
|---|---|
protected |
RangeCollector(int ndim)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Range[] |
combine(Range[] ranges1,
Range[] ranges2)
Combines the content of two accumulators.
|
Range[] |
createAccumulator()
Returns a new accumulator into which results can be collected.
|
void |
mergeRanges(Range[] ranges0,
Range[] ranges1)
Merges the content of the second range into the first one.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaccumulateprotected RangeCollector(int ndim)
ndim - number of range objects (data dimensions)public Range[] createAccumulator()
SplitCollectorcreateAccumulator in interface SplitCollector<S extends Splittable<S>,Range[]>public Range[] combine(Range[] ranges1, Range[] ranges2)
SplitCollectorcombine in interface SplitCollector<S extends Splittable<S>,Range[]>ranges1 - one input accumulatorranges2 - other input accumulatorCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.