ucar.nc2.dt.point
Class PointObsDatatypeImpl

java.lang.Object
  extended by ucar.nc2.dt.point.PointObsDatatypeImpl
All Implemented Interfaces:
Comparable, PointObsDatatype
Direct Known Subclasses:
DapperDataset.SeqPointObs, RecordDatasetHelper.RecordPointObs, SequenceHelper.SeqPointObs, StationObsDatatypeImpl

public abstract class PointObsDatatypeImpl
extends Object
implements PointObsDatatype, Comparable

Abstract superclass for implemenation of PointObsDatatype. Concrete subclass must implement getData();

Author:
caron

Field Summary
protected  EarthLocation location
           
protected  double nomTime
           
protected  double obsTime
           
 
Constructor Summary
PointObsDatatypeImpl()
           
PointObsDatatypeImpl(EarthLocation location, double obsTime, double nomTime)
           
 
Method Summary
 int compareTo(Object o)
           
 EarthLocation getLocation()
          Location of the observation
 double getNominalTime()
          Nominal time of the observation.
 double getObservationTime()
          Actual time of the observation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ucar.nc2.dt.PointObsDatatype
getData, getNominalTimeAsDate, getObservationTimeAsDate
 

Field Detail

location

protected EarthLocation location

obsTime

protected double obsTime

nomTime

protected double nomTime
Constructor Detail

PointObsDatatypeImpl

public PointObsDatatypeImpl()

PointObsDatatypeImpl

public PointObsDatatypeImpl(EarthLocation location,
                            double obsTime,
                            double nomTime)
Method Detail

getLocation

public EarthLocation getLocation()
Description copied from interface: PointObsDatatype
Location of the observation

Specified by:
getLocation in interface PointObsDatatype
Returns:
the location of the observation

getNominalTime

public double getNominalTime()
Description copied from interface: PointObsDatatype
Nominal time of the observation. Units are found from getTimeUnits() in the containing dataset.

Specified by:
getNominalTime in interface PointObsDatatype
Returns:
nominal time of the observation in units of getTimeUnits()

getObservationTime

public double getObservationTime()
Description copied from interface: PointObsDatatype
Actual time of the observation. Units are found from getTimeUnits() in the containing dataset.

Specified by:
getObservationTime in interface PointObsDatatype
Returns:
actual time of the observation in units of getTimeUnits()

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable


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