Class RaobDataSource

All Implemented Interfaces:
Sharable, DataSource, DataSourceFactory, XmlPersistable

public final class RaobDataSource extends DataSourceImpl
DataSource for RAOB soundings.
Version:
$Revision: 1.27 $ $Date: 2007/04/16 20:34:57 $
Author:
MetApps Development Team
  • Field Details

    • useDriverTime

      public boolean useDriverTime
      _more_
  • Constructor Details

    • RaobDataSource

      public RaobDataSource()
      Constructs from nothing. This is necessary for use of this class as a JavaBean.
    • RaobDataSource

      public RaobDataSource(DataSourceDescriptor descriptor, RaobDataSet rds, Hashtable properties) throws VisADException
      Constructs from a specification of the data-source.
      Parameters:
      descriptor - A description of the data-source.
      rds - Radar datasource
      properties - A map of associated attributes.
      Throws:
      VisADException - if a VisAD failure occurs.
    • RaobDataSource

      public RaobDataSource(DataSourceDescriptor descriptor, String file, Hashtable properties) throws VisADException
      Constructs from a specification of the data-source.
      Parameters:
      descriptor - A description of the data-source.
      file - File or url
      properties - A map of associated attributes.
      Throws:
      VisADException - if a VisAD failure occurs.
  • Method Details

    • equals

      public boolean equals(Object object)
      Check for equality
      Overrides:
      equals in class DataSourceImpl
      Parameters:
      object - the object in question
      Returns:
      true if they are equal
    • getDataPaths

      public List getDataPaths()
      Get the list of urls from the remote server
      Specified by:
      getDataPaths in interface DataSource
      Overrides:
      getDataPaths in class DataSourceImpl
      Returns:
      List of urls
    • initAfterUnpersistence

      public void initAfterUnpersistence()
      Override the init method for when this data source is unpersisted. We simply check the imageList to see if this object came from a legacy bundle.
      Specified by:
      initAfterUnpersistence in interface DataSource
      Overrides:
      initAfterUnpersistence in class DataSourceImpl
    • saveDataToLocalDisk

      protected List saveDataToLocalDisk(String prefix, Object loadId, boolean changeLinks) throws Exception
      _Save the remote data to local disk
      Overrides:
      saveDataToLocalDisk in class DataSourceImpl
      Parameters:
      prefix - Where to write the files to
      loadId - For the JobManager dialog
      changeLinks - Should we change the internal data references
      Returns:
      List of files we wrote
      Throws:
      Exception - On badness
    • canSaveDataToLocalDisk

      public boolean canSaveDataToLocalDisk()
      Is this data source capable of saving its data to local disk
      Specified by:
      canSaveDataToLocalDisk in interface DataSource
      Overrides:
      canSaveDataToLocalDisk in class DataSourceImpl
      Returns:
      Can save to local disk
    • doMakeDataChoices

      protected void doMakeDataChoices()
      Adds the DataChoices of the current input data via DataSourceImpl.addDataChoice(DataChoice).
      Overrides:
      doMakeDataChoices in class DataSourceImpl
    • getDataInner

      protected Data getDataInner(DataChoice dataChoice, DataCategory category, DataSelection dataSelection, Hashtable requestProperties) throws VisADException, RemoteException
      Get the VisAD Data object orresponding to DataChoice, DataCategory, and DataSelection criteria.
      Overrides:
      getDataInner in class DataSourceImpl
      Parameters:
      dataChoice - choice of data.
      category - specific category of data (currently ignored).
      dataSelection - additional selection criteria.
      requestProperties - extra request properties
      Returns:
      corresponding Data object. extra request properties
      Throws:
      VisADException - if unable to create Data object.
      RemoteException - (some kind of remote error.
    • doMakeDateTimes

      protected List doMakeDateTimes()
      Make the list of times associated with this DataSource for DataSelection.
      Overrides:
      doMakeDateTimes in class DataSourceImpl
      Returns:
      DateTimes as a list.
    • getTimeMatchingSoundingObs

      protected List<SoundingOb> getTimeMatchingSoundingObs(List<DateTime> dTimes)
      _more_
      Parameters:
      dTimes - _more_
      Returns:
      _more_
    • getTimeMatchingDataChoices

      protected List<DataChoice> getTimeMatchingDataChoices(List<SoundingOb> soundingObs)
      _more_
      Parameters:
      soundingObs - _more_
      Returns:
      _more_
    • getAllTimesForTimeDriver

      public List getAllTimesForTimeDriver(DataChoice dataChoice, DataSelection selection, List<DateTime> timeDriverTimes)
      _more_
      Overrides:
      getAllTimesForTimeDriver in class DataSourceImpl
      Parameters:
      dataChoice - _more_
      selection - _more_
      timeDriverTimes - _more_
      Returns:
      _more_
    • getRDS

      public RaobDataSet getRDS()
      Dynamically create the rds if needed and return it
      Returns:
      the rds
    • getRaobDataSet

      public RaobDataSet getRaobDataSet()
      Get the RaobDataSet for this data source
      Returns:
      the RaobDataSet for this data source
    • setRaobDataSet

      public void setRaobDataSet(RaobDataSet newRds)
      Set the RaobDataSet for this data source
      Parameters:
      newRds - the RaobDataSet for this data source
    • setFile

      public void setFile(String value)
      Set the File property.
      Parameters:
      value - The new value for File
    • getFile

      public String getFile()
      Get the File property.
      Returns:
      The File