ucar.nc2.ft.point
Class TrajectoryFeatureImpl

java.lang.Object
  extended by ucar.nc2.ft.point.PointCollectionImpl
      extended by ucar.nc2.ft.point.TrajectoryFeatureImpl
All Implemented Interfaces:
FeatureCollection, PointFeatureCollection, TrajectoryFeature

public abstract class TrajectoryFeatureImpl
extends PointCollectionImpl
implements TrajectoryFeature

Since:
Mar 26, 2008
Author:
caron

Field Summary
 
Fields inherited from class ucar.nc2.ft.point.PointCollectionImpl
boundingBox, dateRange, localIterator, name
 
Constructor Summary
TrajectoryFeatureImpl(java.lang.String name, int npts)
           
 
Method Summary
 FeatureType getCollectionFeatureType()
          All features in this collection have this feature type
 int size()
          The number of points in the collection.
 
Methods inherited from class ucar.nc2.ft.point.PointCollectionImpl
getName, hasNext, next, resetIteration, setSize, subset
 
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.TrajectoryFeature
getBoundingBox, getDateRange
 
Methods inherited from interface ucar.nc2.ft.PointFeatureCollection
getPointFeatureIterator, hasNext, next, resetIteration, subset
 
Methods inherited from interface ucar.nc2.ft.FeatureCollection
getName
 

Constructor Detail

TrajectoryFeatureImpl

public TrajectoryFeatureImpl(java.lang.String name,
                             int npts)
Method Detail

getCollectionFeatureType

public FeatureType getCollectionFeatureType()
Description copied from interface: FeatureCollection
All features in this collection have this feature type

Specified by:
getCollectionFeatureType in interface FeatureCollection
Overrides:
getCollectionFeatureType in class PointCollectionImpl
Returns:
the feature type

size

public int size()
Description copied from interface: PointFeatureCollection
The number of points in the collection. May not be known until after iterating through the collection.

Specified by:
size in interface PointFeatureCollection
Specified by:
size in interface TrajectoryFeature
Overrides:
size in class PointCollectionImpl
Returns:
number of points in the collection, or -1 if not known.