ucar.nc2.ft.point
Class ProfileFeatureImpl

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

public abstract class ProfileFeatureImpl
extends PointCollectionImpl
implements ProfileFeature

Abstract superclass for implementations of ProfileFeature.

Since:
Feb 29, 2008
Author:
caron

Field Summary
 
Fields inherited from class ucar.nc2.ft.point.PointCollectionImpl
boundingBox, dateRange, localIterator, name
 
Constructor Summary
ProfileFeatureImpl(java.lang.String name, LatLonPoint latlonPoint, int npts)
           
 
Method Summary
 FeatureType getCollectionFeatureType()
          All features in this collection have this feature type
 java.lang.Object getId()
           
 LatLonPoint getLatLon()
          Location of this profile
protected  void setNumberPoints(int npts)
           
 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.PointFeatureCollection
getPointFeatureIterator, hasNext, next, resetIteration, subset
 
Methods inherited from interface ucar.nc2.ft.FeatureCollection
getName
 

Constructor Detail

ProfileFeatureImpl

public ProfileFeatureImpl(java.lang.String name,
                          LatLonPoint latlonPoint,
                          int npts)
Method Detail

getLatLon

public LatLonPoint getLatLon()
Description copied from interface: ProfileFeature
Location of this profile

Specified by:
getLatLon in interface ProfileFeature
Returns:
the location of this observation as a lat/lon point

getId

public java.lang.Object getId()

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 ProfileFeature
Overrides:
size in class PointCollectionImpl
Returns:
number of points in the collection, or -1 if not known.

setNumberPoints

protected void setNumberPoints(int npts)