Package ucar.nc2.ft.point
Class StationProfileCollectionImpl
- java.lang.Object
-
- ucar.nc2.ft.point.DsgCollectionImpl
-
- ucar.nc2.ft.point.PointFeatureCCCImpl
-
- ucar.nc2.ft.point.StationProfileCollectionImpl
-
- All Implemented Interfaces:
Iterable<StationProfileFeature>,DsgFeatureCollection,PointFeatureCCC,StationProfileFeatureCollection
- Direct Known Subclasses:
StandardStationProfileCollectionImpl
public abstract class StationProfileCollectionImpl extends PointFeatureCCCImpl implements StationProfileFeatureCollection
Abstract superclass for StationProfileFeatureCollection Subclasses must implement getNestedPointFeatureCollection- Since:
- Mar 20, 2008
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStationProfileCollectionImpl.NestedCollectionIOIteratorAdapter<T>
-
Field Summary
Fields Modifier and Type Field Description protected PointFeatureCCIteratorlocalIterator-
Fields inherited from class ucar.nc2.ft.point.PointFeatureCCCImpl
collectionFeatureType
-
-
Constructor Summary
Constructors Constructor Description StationProfileCollectionImpl(String name, CalendarDateUnit timeUnit, String altUnits)
-
Method Summary
-
Methods inherited from class ucar.nc2.ft.point.PointFeatureCCCImpl
getCollectionFeatureType
-
Methods inherited from class ucar.nc2.ft.point.DsgCollectionImpl
getAltUnits, getCalendarDateRange, getExtraVariables, getInfo, getName, getNobs, 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
getAltUnits, getCalendarDateRange, getCollectionFeatureType, getExtraVariables, getName, getTimeUnit, size
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface ucar.nc2.ft.PointFeatureCCC
getCollectionIterator
-
Methods inherited from interface ucar.nc2.ft.StationProfileFeatureCollection
getNestedPointFeatureCollectionIterator
-
-
-
-
Field Detail
-
localIterator
protected PointFeatureCCIterator localIterator
-
-
Constructor Detail
-
StationProfileCollectionImpl
public StationProfileCollectionImpl(String name, CalendarDateUnit timeUnit, String altUnits)
-
-
Method Detail
-
getStationHelper
protected StationHelper getStationHelper()
-
createStationHelper
protected abstract StationHelper createStationHelper() throws IOException
- Throws:
IOException
-
getBoundingBox
public LatLonRect getBoundingBox()
Description copied from interface:DsgFeatureCollectionThe boundingBox for the FeatureCollection. May not be known until after iterating through the collection.- Specified by:
getBoundingBoxin interfaceDsgFeatureCollection- Overrides:
getBoundingBoxin classDsgCollectionImpl- Returns:
- the lat/lon boundingBox for the entire collection, or null if unknown.
-
getStationFeatures
public List<StationFeature> getStationFeatures()
- Specified by:
getStationFeaturesin interfaceStationProfileFeatureCollection
-
getStationFeatures
public List<StationFeature> getStationFeatures(List<String> stnNames)
- Specified by:
getStationFeaturesin interfaceStationProfileFeatureCollection
-
getStationFeatures
public List<StationFeature> getStationFeatures(LatLonRect boundingBox)
- Specified by:
getStationFeaturesin interfaceStationProfileFeatureCollection
-
findStationFeature
public StationFeature findStationFeature(String name)
- Specified by:
findStationFeaturein interfaceStationProfileFeatureCollection
-
getStationProfileFeature
public StationProfileFeature getStationProfileFeature(StationFeature s)
- Specified by:
getStationProfileFeaturein interfaceStationProfileFeatureCollection
-
subset
public StationProfileCollectionImpl subset(List<StationFeature> stations)
- Specified by:
subsetin interfaceStationProfileFeatureCollection
-
subset
public StationProfileCollectionImpl subset(LatLonRect boundingBox)
- Specified by:
subsetin interfaceStationProfileFeatureCollection
-
subset
public StationProfileFeatureCollection subset(LatLonRect boundingBox, CalendarDateRange dateRange)
- Specified by:
subsetin interfaceStationProfileFeatureCollection
-
subset
public StationProfileCollectionImpl subset(List<StationFeature> stnsWanted, CalendarDateRange dateRange)
- Specified by:
subsetin interfaceStationProfileFeatureCollection
-
compareTo
public int compareTo(Station so)
-
iterator
public Iterator<StationProfileFeature> iterator()
- Specified by:
iteratorin interfaceIterable<StationProfileFeature>
-
hasNext
public boolean hasNext() throws IOExceptionDescription copied from interface:StationProfileFeatureCollectionUse the internal iterator to check if there is another StationProfileFeature in the iteration.- Specified by:
hasNextin interfaceStationProfileFeatureCollection- Returns:
- true is there is another StationProfileFeature in the iteration.
- Throws:
IOException- on read error
-
next
public StationProfileFeature next() throws IOException
Description copied from interface:StationProfileFeatureCollectionUse the internal iterator to get the next StationProfileFeature in the iteration. You must call hasNext() before you call this.- Specified by:
nextin interfaceStationProfileFeatureCollection- Returns:
- the next StationProfileFeature in the iteration
- Throws:
IOException- on read error
-
resetIteration
public void resetIteration() throws IOExceptionDescription copied from interface:StationProfileFeatureCollectionReset the internal iterator for another iteration over the StationProfileFeature in this Collection.- Specified by:
resetIterationin interfaceStationProfileFeatureCollection- Throws:
IOException- on read error
-
-