Class DoradeDataSource

All Implemented Interfaces:
Sharable, DataSource, DataSourceFactory, RadarConstants, XmlPersistable

public class DoradeDataSource extends RadarDataSource
A data source for DORADE radar data
Version:
$Revision: 1.12 $
Author:
IDV Development Team @ ATD
  • Constructor Details

    • DoradeDataSource

      public DoradeDataSource()
      Zero-argument constructor for construction via unpersistence.
    • DoradeDataSource

      public DoradeDataSource(DataSourceDescriptor descriptor, String fileName, Hashtable properties) throws VisADException
      Construct a new DORADE data source.
      Parameters:
      descriptor - descriptor for this DataSource
      fileName - name of the DORADE file to read
      properties - hashtable of properties
      Throws:
      VisADException - problem creating data
    • DoradeDataSource

      public DoradeDataSource(DataSourceDescriptor descriptor, List sources, Hashtable properties) throws VisADException
      Construct a new DORADE data source.
      Parameters:
      descriptor - descriptor for this DataSource
      sources - List of filenames
      properties - hashtable of properties
      Throws:
      VisADException - problem creating data
  • Method Details

    • doMakeDataChoices

      public void doMakeDataChoices()
      Make and insert the DataChoice-s for this DataSource.
      Overrides:
      doMakeDataChoices in class DataSourceImpl
    • makeRadarAdapter

      protected RadarAdapter makeRadarAdapter(String source) throws Exception
      Make the RadarAdapter for this class
      Specified by:
      makeRadarAdapter in class RadarDataSource
      Parameters:
      source - source of the data
      Returns:
      corresponding adapter
      Throws:
      Exception - problem opening the file or creating the data
    • equals

      public boolean equals(Object o)
      Check to see if this DoradeDataSource is equal to the object in question.
      Overrides:
      equals in class FilesDataSource
      Parameters:
      o - object in question
      Returns:
      true if they are the same or equivalent objects
    • hashCode

      public int hashCode()
      Get the hash code for this object.
      Overrides:
      hashCode in class Object
      Returns:
      hash code.
    • main

      public static void main(String[] args)
      Test program
      Parameters:
      args - file name