Package ucar.nc2.ft.point.standard
Class StandardProfileCollectionImpl
- java.lang.Object
-
- ucar.nc2.ft.point.DsgCollectionImpl
-
- ucar.nc2.ft.point.PointFeatureCCImpl
-
- ucar.nc2.ft.point.standard.StandardProfileCollectionImpl
-
- All Implemented Interfaces:
Iterable<ProfileFeature>,DsgFeatureCollection,PointFeatureCC,ProfileFeatureCollection
public class StandardProfileCollectionImpl extends PointFeatureCCImpl implements ProfileFeatureCollection
Nested Table implementation of ProfileCollection- Since:
- Jan 20, 2009
-
-
Field Summary
-
Fields inherited from class ucar.nc2.ft.point.PointFeatureCCImpl
collectionFeatureType
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedStandardProfileCollectionImpl(String name, CalendarDateUnit timeUnit, String altUnits)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IOIterator<PointFeatureCollection>getCollectionIterator()General way to handle iterations on all classes that implement this interface.PointFeatureCollectionIteratorgetPointFeatureCollectionIterator()booleanhasNext()Use the internal iterator to check if there is another ProfileFeature in the iteration.Iterator<ProfileFeature>iterator()ProfileFeaturenext()Use the internal iterator to get the next ProfileFeature in the iteration.voidresetIteration()Reset the internal iterator for another iteration over the ProfileFeatures in this Collection.ProfileFeatureCollectionsubset(LatLonRect boundingBox)Subset this collection by boundingBoxProfileFeatureCollectionsubset(LatLonRect boundingBox, CalendarDateRange dateRange)-
Methods inherited from class ucar.nc2.ft.point.PointFeatureCCImpl
getCollectionFeatureType
-
Methods inherited from class ucar.nc2.ft.point.DsgCollectionImpl
getAltName, getAltUnits, getBoundingBox, getCalendarDateRange, getCoordinateVariables, getExtraVariables, getInfo, getName, getNobs, getTimeName, getTimeUnit, size
-
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.DsgFeatureCollection
getAltName, getAltUnits, getBoundingBox, getCalendarDateRange, getCollectionFeatureType, getCoordinateVariables, getExtraVariables, getName, getTimeName, getTimeUnit, size
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
StandardProfileCollectionImpl
protected StandardProfileCollectionImpl(String name, CalendarDateUnit timeUnit, String altUnits)
-
-
Method Detail
-
subset
public ProfileFeatureCollection subset(LatLonRect boundingBox)
Description copied from interface:ProfileFeatureCollectionSubset this collection by boundingBox- Specified by:
subsetin interfaceProfileFeatureCollection- Parameters:
boundingBox- want only profiles in this lat/lon bounding box.- Returns:
- subsetted collection, may be null if empty
-
subset
public ProfileFeatureCollection subset(LatLonRect boundingBox, CalendarDateRange dateRange)
- Specified by:
subsetin interfaceProfileFeatureCollection
-
iterator
public Iterator<ProfileFeature> iterator()
- Specified by:
iteratorin interfaceIterable<ProfileFeature>
-
getCollectionIterator
public IOIterator<PointFeatureCollection> getCollectionIterator() throws IOException
Description copied from interface:PointFeatureCCGeneral way to handle iterations on all classes that implement this interface. Generally, one uses class specific foreach- Specified by:
getCollectionIteratorin interfacePointFeatureCC- Returns:
- Iterator over PointFeatureCollection which may throw an IOException
- Throws:
IOException
-
getPointFeatureCollectionIterator
public PointFeatureCollectionIterator getPointFeatureCollectionIterator() throws IOException
- Specified by:
getPointFeatureCollectionIteratorin interfaceProfileFeatureCollection- Throws:
IOException
-
hasNext
public boolean hasNext() throws IOExceptionDescription copied from interface:ProfileFeatureCollectionUse the internal iterator to check if there is another ProfileFeature in the iteration.- Specified by:
hasNextin interfaceProfileFeatureCollection- Returns:
- true is there is another ProfileFeature in the iteration.
- Throws:
IOException- on read error
-
next
public ProfileFeature next()
Description copied from interface:ProfileFeatureCollectionUse the internal iterator to get the next ProfileFeature in the iteration. You must call hasNext() before you call this.- Specified by:
nextin interfaceProfileFeatureCollection- Returns:
- the next ProfileFeature in the iteration
-
resetIteration
public void resetIteration() throws IOExceptionDescription copied from interface:ProfileFeatureCollectionReset the internal iterator for another iteration over the ProfileFeatures in this Collection.- Specified by:
resetIterationin interfaceProfileFeatureCollection- Throws:
IOException- on read error
-
-