ucar.nc2.ft.point
Class PointIteratorAbstract

java.lang.Object
  extended by ucar.nc2.ft.point.PointIteratorAbstract
All Implemented Interfaces:
PointFeatureIterator
Direct Known Subclasses:
PointIteratorEmpty, PointIteratorFiltered, PointIteratorFlatten, PointIteratorFromStructureData, RemotePointFeatureIterator

public abstract class PointIteratorAbstract
extends Object
implements PointFeatureIterator

Abstract superclass for PointFeatureIterator. Mostly implements the bounds calculations.

Since:
May 11, 2009
Author:
caron

Nested Class Summary
static class PointIteratorAbstract.Filter
           
 
Field Summary
protected  boolean calcBounds
           
protected  PointFeatureCollection collection
           
 
Constructor Summary
protected PointIteratorAbstract()
           
 
Method Summary
protected  void calcBounds(PointFeature pf)
           
protected  void finishCalcBounds()
           
 LatLonRect getBoundingBox()
          Get BoundingBox after iteration is finished, if calcBounds was set true
 int getCount()
          Get number of points after the iteration is finished, if calcBounds was set true
 DateRange getDateRange()
          Get DateRange of observation time after iteration is finished, if calcBounds was set true
 void setCalculateBounds(PointFeatureCollection collection)
          If this is set, then the iterator will calculate the bounding box, time range, and size, and make it available through getBoundingBox(), getDateRange(), and getSize().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ucar.nc2.ft.PointFeatureIterator
finish, hasNext, next, setBufferSize
 

Field Detail

calcBounds

protected boolean calcBounds

collection

protected PointFeatureCollection collection
Constructor Detail

PointIteratorAbstract

protected PointIteratorAbstract()
Method Detail

setCalculateBounds

public void setCalculateBounds(PointFeatureCollection collection)
Description copied from interface: PointFeatureIterator
If this is set, then the iterator will calculate the bounding box, time range, and size, and make it available through getBoundingBox(), getDateRange(), and getSize().

Specified by:
setCalculateBounds in interface PointFeatureIterator
Parameters:
collection - if not null, on complete iteration set the results into the collection.

calcBounds

protected void calcBounds(PointFeature pf)

finishCalcBounds

protected void finishCalcBounds()

getBoundingBox

public LatLonRect getBoundingBox()
Description copied from interface: PointFeatureIterator
Get BoundingBox after iteration is finished, if calcBounds was set true

Specified by:
getBoundingBox in interface PointFeatureIterator
Returns:
BoundingBox of all returned points

getDateRange

public DateRange getDateRange()
Description copied from interface: PointFeatureIterator
Get DateRange of observation time after iteration is finished, if calcBounds was set true

Specified by:
getDateRange in interface PointFeatureIterator
Returns:
DateRange of all returned points

getCount

public int getCount()
Description copied from interface: PointFeatureIterator
Get number of points after the iteration is finished, if calcBounds was set true

Specified by:
getCount in interface PointFeatureIterator
Returns:
number of points in the iteration


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.