ucar.nc2.ft.point
Class ProfileFeatureImpl
java.lang.Object
ucar.nc2.ft.point.PointCollectionImpl
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProfileFeatureImpl
public ProfileFeatureImpl(java.lang.String name,
LatLonPoint latlonPoint,
int npts)
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)