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
,StationFeatureCollection
,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 class
StationProfileCollectionImpl.NestedCollectionIOIteratorAdapter<T>
-
Field Summary
Fields Modifier and Type Field Description protected PointFeatureCCIterator
localIterator
-
Fields inherited from class ucar.nc2.ft.point.PointFeatureCCCImpl
collectionFeatureType
-
-
Constructor Summary
Constructors Constructor Description StationProfileCollectionImpl(String name, List<CoordinateAxis> coordVars)
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
getAltName, getAltUnits, 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, getCalendarDateRange, getCollectionFeatureType, getCoordinateVariables, getExtraVariables, getName, getTimeName, 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)
-
StationProfileCollectionImpl
public StationProfileCollectionImpl(String name, List<CoordinateAxis> coordVars)
-
-
Method Detail
-
getStationHelper
protected StationHelper getStationHelper()
-
createStationHelper
protected abstract StationHelper createStationHelper() throws IOException
- Throws:
IOException
-
getBoundingBox
public LatLonRect getBoundingBox()
Description copied from interface:DsgFeatureCollection
The boundingBox for the FeatureCollection. May not be known until after iterating through the collection.- Specified by:
getBoundingBox
in interfaceDsgFeatureCollection
- Overrides:
getBoundingBox
in classDsgCollectionImpl
- Returns:
- the lat/lon boundingBox for the entire collection, or null if unknown.
-
getStationFeatures
public List<StationFeature> getStationFeatures()
- Specified by:
getStationFeatures
in interfaceStationFeatureCollection
-
getStationFeatures
public List<StationFeature> getStationFeatures(List<String> stnNames)
- Specified by:
getStationFeatures
in interfaceStationFeatureCollection
-
getStationFeatures
public List<StationFeature> getStationFeatures(LatLonRect boundingBox)
- Specified by:
getStationFeatures
in interfaceStationFeatureCollection
-
findStationFeature
public StationFeature findStationFeature(String name)
- Specified by:
findStationFeature
in interfaceStationFeatureCollection
-
getStationProfileFeature
public StationProfileFeature getStationProfileFeature(StationFeature s)
- Specified by:
getStationProfileFeature
in interfaceStationProfileFeatureCollection
-
subset
public StationProfileCollectionImpl subset(List<StationFeature> stations)
- Specified by:
subset
in interfaceStationProfileFeatureCollection
-
subset
public StationProfileCollectionImpl subset(LatLonRect boundingBox)
- Specified by:
subset
in interfaceStationProfileFeatureCollection
-
subset
public StationProfileFeatureCollection subset(LatLonRect boundingBox, CalendarDateRange dateRange)
- Specified by:
subset
in interfaceStationProfileFeatureCollection
-
subset
public StationProfileCollectionImpl subset(List<StationFeature> stnsWanted, CalendarDateRange dateRange)
- Specified by:
subset
in interfaceStationProfileFeatureCollection
-
compareTo
public int compareTo(Station so)
-
iterator
public Iterator<StationProfileFeature> iterator()
- Specified by:
iterator
in interfaceIterable<StationProfileFeature>
-
hasNext
public boolean hasNext() throws IOException
Description copied from interface:StationProfileFeatureCollection
Use the internal iterator to check if there is another StationProfileFeature in the iteration.- Specified by:
hasNext
in 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:StationProfileFeatureCollection
Use the internal iterator to get the next StationProfileFeature in the iteration. You must call hasNext() before you call this.- Specified by:
next
in interfaceStationProfileFeatureCollection
- Returns:
- the next StationProfileFeature in the iteration
- Throws:
IOException
- on read error
-
resetIteration
public void resetIteration() throws IOException
Description copied from interface:StationProfileFeatureCollection
Reset the internal iterator for another iteration over the StationProfileFeature in this Collection.- Specified by:
resetIteration
in interfaceStationProfileFeatureCollection
- Throws:
IOException
- on read error
-
-