ucar.nc2.ft.point
Class PointFeatureImpl

java.lang.Object
  extended by ucar.nc2.ft.point.PointFeatureImpl
All Implemented Interfaces:
Comparable<PointFeature>, PointFeature

public abstract class PointFeatureImpl
extends Object
implements PointFeature, Comparable<PointFeature>

Abstract superclass for implementations of PointFeature. Concrete subclass must implement getData();

Since:
Feb 29, 2008
Author:
caron

Field Summary
protected  EarthLocation location
           
protected  double nomTime
           
protected  double obsTime
           
protected  DateUnit timeUnit
           
 
Constructor Summary
PointFeatureImpl(DateUnit timeUnit)
           
PointFeatureImpl(EarthLocation location, double obsTime, double nomTime, DateUnit timeUnit)
           
 
Method Summary
 int compareTo(PointFeature other)
           
 String getDescription()
           
 EarthLocation getLocation()
          Location of this observation
 double getNominalTime()
          Nominal time of this observation.
 Date getNominalTimeAsDate()
          Nominal time of this observation, as a Date.
 double getObservationTime()
          Actual time of this observation.
 Date getObservationTimeAsDate()
          Actual time of this observation, as a Date.
 DateUnit getTimeUnit()
          Get the time unit of the time coordinate.
 String getZcoordUnits()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface ucar.nc2.ft.PointFeature
getData
 

Field Detail

location

protected EarthLocation location

obsTime

protected double obsTime

nomTime

protected double nomTime

timeUnit

protected DateUnit timeUnit
Constructor Detail

PointFeatureImpl

public PointFeatureImpl(DateUnit timeUnit)

PointFeatureImpl

public PointFeatureImpl(EarthLocation location,
                        double obsTime,
                        double nomTime,
                        DateUnit timeUnit)
Method Detail

getLocation

public EarthLocation getLocation()
Description copied from interface: PointFeature
Location of this observation

Specified by:
getLocation in interface PointFeature
Returns:
the location of this observation

getNominalTime

public double getNominalTime()
Description copied from interface: PointFeature
Nominal time of this observation. Convert to Date with getTimeUnit().makeDate(). When the nominal time is not given in the data, it is usually set to the observational time.

Specified by:
getNominalTime in interface PointFeature
Returns:
Nominal time of this observation.

getObservationTime

public double getObservationTime()
Description copied from interface: PointFeature
Actual time of this observation. Convert to Date with getTimeUnit().makeDate()

Specified by:
getObservationTime in interface PointFeature
Returns:
actual time of this observation.

getZcoordUnits

public String getZcoordUnits()

getDescription

public String getDescription()

getObservationTimeAsDate

public Date getObservationTimeAsDate()
Description copied from interface: PointFeature
Actual time of this observation, as a Date.

Specified by:
getObservationTimeAsDate in interface PointFeature
Returns:
actual time of this observation, as a Date.

getNominalTimeAsDate

public Date getNominalTimeAsDate()
Description copied from interface: PointFeature
Nominal time of this observation, as a Date.

Specified by:
getNominalTimeAsDate in interface PointFeature
Returns:
Nominal time of this observation, as a Date.

getTimeUnit

public DateUnit getTimeUnit()
Description copied from interface: PointFeature
Get the time unit of the time coordinate.

Specified by:
getTimeUnit in interface PointFeature
Returns:
time unit of the time coordinate

compareTo

public int compareTo(PointFeature other)
Specified by:
compareTo in interface Comparable<PointFeature>

toString

public String toString()
Overrides:
toString in class Object


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.