Package ucar.nc2.ft.point
Class SectionCollectionImpl
- java.lang.Object
-
- ucar.nc2.ft.point.DsgCollectionImpl
-
- ucar.nc2.ft.point.PointFeatureCCCImpl
-
- ucar.nc2.ft.point.SectionCollectionImpl
-
- All Implemented Interfaces:
Iterable<TrajectoryProfileFeature>
,DsgFeatureCollection
,PointFeatureCCC
,TrajectoryProfileFeatureCollection
- Direct Known Subclasses:
StandardSectionCollectionImpl
public abstract class SectionCollectionImpl extends PointFeatureCCCImpl implements TrajectoryProfileFeatureCollection
Superclass for implementations of SectionFeatureCollection: series of profiles along a trajectory Concrete subclass must implement getNestedPointFeatureCollectionIterator();- Since:
- Oct 22, 2009
-
-
Field Summary
Fields Modifier and Type Field Description protected PointFeatureCCIterator
localIterator
-
Fields inherited from class ucar.nc2.ft.point.PointFeatureCCCImpl
collectionFeatureType
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SectionCollectionImpl(String name, List<CoordinateAxis> coords)
protected
SectionCollectionImpl(String name, CalendarDateUnit timeUnit, String altUnits)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
Use the internal iterator to check if there is another SectionFeature in the iteration.TrajectoryProfileFeature
next()
Use the internal iterator to get the next SectionFeature in the iteration.void
resetIteration()
Reset the internal iterator for another iteration over the SectionFeatures in this Collection.-
Methods inherited from class ucar.nc2.ft.point.PointFeatureCCCImpl
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, iterator, spliterator
-
Methods inherited from interface ucar.nc2.ft.PointFeatureCCC
getCollectionIterator
-
Methods inherited from interface ucar.nc2.ft.TrajectoryProfileFeatureCollection
getNestedPointFeatureCollectionIterator
-
-
-
-
Field Detail
-
localIterator
protected PointFeatureCCIterator localIterator
-
-
Constructor Detail
-
SectionCollectionImpl
protected SectionCollectionImpl(String name, CalendarDateUnit timeUnit, String altUnits)
-
SectionCollectionImpl
protected SectionCollectionImpl(String name, List<CoordinateAxis> coords)
-
-
Method Detail
-
hasNext
public boolean hasNext() throws IOException
Description copied from interface:TrajectoryProfileFeatureCollection
Use the internal iterator to check if there is another SectionFeature in the iteration.- Specified by:
hasNext
in interfaceTrajectoryProfileFeatureCollection
- Returns:
- true is there is another SectionFeature in the iteration.
- Throws:
IOException
- on read error
-
next
public TrajectoryProfileFeature next() throws IOException
Description copied from interface:TrajectoryProfileFeatureCollection
Use the internal iterator to get the next SectionFeature in the iteration. You must call hasNext() before you call this.- Specified by:
next
in interfaceTrajectoryProfileFeatureCollection
- Returns:
- the next SectionFeature in the iteration
- Throws:
IOException
- on read error
-
resetIteration
public void resetIteration() throws IOException
Description copied from interface:TrajectoryProfileFeatureCollection
Reset the internal iterator for another iteration over the SectionFeatures in this Collection.- Specified by:
resetIteration
in interfaceTrajectoryProfileFeatureCollection
- Throws:
IOException
- on read error
-
-