Package ucar.nc2.ft.point
Class SectionFeatureImpl
- java.lang.Object
-
- ucar.nc2.ft.point.DsgCollectionImpl
-
- ucar.nc2.ft.point.PointFeatureCCImpl
-
- ucar.nc2.ft.point.SectionFeatureImpl
-
- All Implemented Interfaces:
Iterable<ProfileFeature>
,DsgFeatureCollection
,PointFeatureCC
,TrajectoryProfileFeature
public abstract class SectionFeatureImpl extends PointFeatureCCImpl implements TrajectoryProfileFeature
Abstract superclass for implementations of SectionFeature. Subclass must implement getPointFeatureCollectionIterator();- Since:
- Oct 22, 2009
-
-
Field Summary
Fields Modifier and Type Field Description protected PointFeatureCollectionIterator
localIterator
-
Fields inherited from class ucar.nc2.ft.point.PointFeatureCCImpl
collectionFeatureType
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SectionFeatureImpl(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 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 ProfileFeature in this Collection.-
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
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface ucar.nc2.ft.PointFeatureCC
getCollectionIterator
-
Methods inherited from interface ucar.nc2.ft.TrajectoryProfileFeature
getFeatureData, getPointFeatureCollectionIterator, size
-
-
-
-
Field Detail
-
localIterator
protected PointFeatureCollectionIterator localIterator
-
-
Constructor Detail
-
SectionFeatureImpl
protected SectionFeatureImpl(String name, CalendarDateUnit timeUnit, String altUnits)
-
-
Method Detail
-
iterator
public Iterator<ProfileFeature> iterator()
- Specified by:
iterator
in interfaceIterable<ProfileFeature>
-
hasNext
public boolean hasNext() throws IOException
Description copied from interface:TrajectoryProfileFeature
Use the internal iterator to check if there is another ProfileFeature in the iteration.- Specified by:
hasNext
in interfaceTrajectoryProfileFeature
- Returns:
- true is there is another Section in the iteration.
- Throws:
IOException
- on read error
-
next
public ProfileFeature next() throws IOException
Description copied from interface:TrajectoryProfileFeature
Use the internal iterator to get the next ProfileFeature in the iteration. You must call hasNext() before you call this.- Specified by:
next
in interfaceTrajectoryProfileFeature
- Returns:
- the next ProfileFeature in the iteration
- Throws:
IOException
- on read error
-
resetIteration
public void resetIteration() throws IOException
Description copied from interface:TrajectoryProfileFeature
Reset the internal iterator for another iteration over the ProfileFeature in this Collection.- Specified by:
resetIteration
in interfaceTrajectoryProfileFeature
- Throws:
IOException
- on read error
-
-