ucar.unidata.data.point
Class PointDataInstance

java.lang.Object
  extended by ucar.unidata.data.DataInstance
      extended by ucar.unidata.data.point.PointDataInstance

public class PointDataInstance
extends DataInstance

Utility class to wrap a Point Data Choice


Field Summary
 FieldImpl pointObs
          point observations
 
Fields inherited from class ucar.unidata.data.DataInstance
dataChoice, dataSelection, haveBeenInitialized, inError, log_, myRequestProperties
 
Constructor Summary
PointDataInstance(DataChoice choice, DataSelection selection, Hashtable requestProperties)
          Create a new PointDataInstance from the parameters
 
Method Summary
 FieldImpl getPointObs()
          Get the data
 FieldImpl getPointObs(LinearLatLonSet bounds)
          Get the data, using only points inside the bounding box
 FieldImpl getTimeSequence()
          Get the data as a time sequence
 FieldImpl getTimeSequence(LinearLatLonSet bounds)
          Get the data as a time sequence.
protected  void init()
          Initialize the class and populate the fields
 void reInitialize()
          Reinitializae this GridDataInstance
 
Methods inherited from class ucar.unidata.data.DataInstance
checkInit, dataOk, getData, getData, getData, getDataChoice, getDataSelection, getNextId, getParamName, needsInitialization, setData, setDataSelection, setTheData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pointObs

public FieldImpl pointObs
point observations

Constructor Detail

PointDataInstance

public PointDataInstance(DataChoice choice,
                         DataSelection selection,
                         Hashtable requestProperties)
                  throws VisADException,
                         RemoteException
Create a new PointDataInstance from the parameters

Parameters:
choice - data choice describing the data
selection - selection criteria
requestProperties - extra initialization properties
Throws:
RemoteException - Java RMI error
VisADException - VisAD Error
Method Detail

init

protected void init()
             throws VisADException,
                    RemoteException
Initialize the class and populate the fields

Overrides:
init in class DataInstance
Throws:
RemoteException - Java RMI error
VisADException - VisAD Error

reInitialize

public void reInitialize()
                  throws VisADException,
                         RemoteException
Reinitializae this GridDataInstance

Overrides:
reInitialize in class DataInstance
Throws:
RemoteException - Java RMI error
VisADException - VisAD Error

getTimeSequence

public FieldImpl getTimeSequence()
                          throws VisADException,
                                 RemoteException
Get the data as a time sequence

Returns:
time sequence of PointObs
Throws:
RemoteException - Java RMI error
VisADException - VisAD Error

getTimeSequence

public FieldImpl getTimeSequence(LinearLatLonSet bounds)
                          throws VisADException,
                                 RemoteException
Get the data as a time sequence. Only use points inside the bounding box

Parameters:
bounds - lat/lon boundds
Returns:
time sequence of PointObs in the bounds
Throws:
RemoteException - Java RMI error
VisADException - VisAD Error

getPointObs

public FieldImpl getPointObs()
                      throws VisADException,
                             RemoteException
Get the data

Returns:
the data
Throws:
RemoteException - Java RMI error
VisADException - VisAD Error

getPointObs

public FieldImpl getPointObs(LinearLatLonSet bounds)
                      throws VisADException,
                             RemoteException
Get the data, using only points inside the bounding box

Parameters:
bounds - lat/lon boundds
Returns:
PointObs in the bounds
Throws:
RemoteException - Java RMI error
VisADException - VisAD Error