ucar.unidata.data
Class AddeUtil

java.lang.Object
  extended by ucar.unidata.data.AddeUtil

public final class AddeUtil
extends Object

A class for holding some Adde related constants and static methods

Version:
$Revision: 1.5 $
Author:
IDV Development Team

Field Summary
static String LATLON_BOX
          The latlon bounding box time indicator
static String LEVEL
          The level indicator
static String MISC_KEYWORDS
          Property for miscellaneous keywords
static String NUM_RELATIVE_TIMES
          Property for the number of relative times
static String RELATIVE_TIME
          The relative time indicator
static String RELATIVE_TIME_INCREMENT
          Property for the time increment
static String RELATIVE_TIME_RANGE
          The relative time range indicator
 
Constructor Summary
AddeUtil()
           
 
Method Summary
static List generateTimeUrls(DataSourceImpl datasource, String url)
          Generate a list of URLs, expanding any time macros
static void main(String[] args)
          Main method for testing
static String[] makeRelativeTimes(int[] timeIndices, float timeInc)
          Make the relative times
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RELATIVE_TIME

public static final String RELATIVE_TIME
The relative time indicator

See Also:
Constant Field Values

RELATIVE_TIME_RANGE

public static final String RELATIVE_TIME_RANGE
The relative time range indicator

See Also:
Constant Field Values

LATLON_BOX

public static final String LATLON_BOX
The latlon bounding box time indicator

See Also:
Constant Field Values

LEVEL

public static final String LEVEL
The level indicator

See Also:
Constant Field Values

NUM_RELATIVE_TIMES

public static String NUM_RELATIVE_TIMES
Property for the number of relative times


RELATIVE_TIME_INCREMENT

public static String RELATIVE_TIME_INCREMENT
Property for the time increment


MISC_KEYWORDS

public static final String MISC_KEYWORDS
Property for miscellaneous keywords

See Also:
Constant Field Values
Constructor Detail

AddeUtil

public AddeUtil()
Method Detail

generateTimeUrls

public static List generateTimeUrls(DataSourceImpl datasource,
                                    String url)
Generate a list of URLs, expanding any time macros

Parameters:
datasource - DataSource that holds relevant properties
url - original source URL
Returns:
List of expanded time urls

makeRelativeTimes

public static String[] makeRelativeTimes(int[] timeIndices,
                                         float timeInc)
Make the relative times

Parameters:
timeIndices - array of time indices
timeInc - time increment (hours)
Returns:
ADDE time select clause

main

public static void main(String[] args)
Main method for testing

Parameters:
args - not used