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 protected
StandardProfileCollectionImpl(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.PointFeatureCollectionIterator
getPointFeatureCollectionIterator()
boolean
hasNext()
Use the internal iterator to check if there is another ProfileFeature in the iteration.Iterator<ProfileFeature>
iterator()
ProfileFeature
next()
Use the internal iterator to get the next ProfileFeature in the iteration.void
resetIteration()
Reset the internal iterator for another iteration over the ProfileFeatures in this Collection.ProfileFeatureCollection
subset(LatLonRect boundingBox)
Subset this collection by boundingBoxProfileFeatureCollection
subset(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:ProfileFeatureCollection
Subset this collection by boundingBox- Specified by:
subset
in 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:
subset
in interfaceProfileFeatureCollection
-
iterator
public Iterator<ProfileFeature> iterator()
- Specified by:
iterator
in interfaceIterable<ProfileFeature>
-
getCollectionIterator
public IOIterator<PointFeatureCollection> getCollectionIterator() throws IOException
Description copied from interface:PointFeatureCC
General way to handle iterations on all classes that implement this interface. Generally, one uses class specific foreach- Specified by:
getCollectionIterator
in interfacePointFeatureCC
- Returns:
- Iterator over PointFeatureCollection which may throw an IOException
- Throws:
IOException
-
getPointFeatureCollectionIterator
public PointFeatureCollectionIterator getPointFeatureCollectionIterator() throws IOException
- Specified by:
getPointFeatureCollectionIterator
in interfaceProfileFeatureCollection
- Throws:
IOException
-
hasNext
public boolean hasNext() throws IOException
Description copied from interface:ProfileFeatureCollection
Use the internal iterator to check if there is another ProfileFeature in the iteration.- Specified by:
hasNext
in interfaceProfileFeatureCollection
- Returns:
- true is there is another ProfileFeature in the iteration.
- Throws:
IOException
- on read error
-
next
public ProfileFeature next()
Description copied from interface:ProfileFeatureCollection
Use the internal iterator to get the next ProfileFeature in the iteration. You must call hasNext() before you call this.- Specified by:
next
in interfaceProfileFeatureCollection
- Returns:
- the next ProfileFeature in the iteration
-
resetIteration
public void resetIteration() throws IOException
Description copied from interface:ProfileFeatureCollection
Reset the internal iterator for another iteration over the ProfileFeatures in this Collection.- Specified by:
resetIteration
in interfaceProfileFeatureCollection
- Throws:
IOException
- on read error
-
-