thredds.dqc
Class SelectFromRange

java.lang.Object
  extended by thredds.dqc.Selector
      extended by thredds.dqc.SelectFromRange

public class SelectFromRange
extends Selector

A description User: edavis Date: Jan 22, 2004 Time: 8:40:05 PM


Field Summary
protected  double allowedRangeMax
           
protected  double allowedRangeMin
           
protected  boolean modulo
           
protected  double moduloValue
           
protected  java.lang.String template
           
protected  java.lang.String units
           
 
Fields inherited from class thredds.dqc.Selector
description, id, multiple, required, title
 
Constructor Summary
SelectFromRange()
          Public constructor.
 
Method Summary
 double getAllowedRangeMax()
           
 double getAllowedRangeMin()
           
 java.lang.String getTemplate()
          Get the template of this selector.
 java.lang.String getUnits()
           
 boolean isModulo()
           
 void setAllowedRange(double min, double max)
          Set the allowed range.
 void setModulo(boolean modulo)
           
 void setTemplate(java.lang.String template)
          Set the template of this selector.
 void setUnits(java.lang.String units)
           
 Selection validateSelection(Selection selection)
           
 
Methods inherited from class thredds.dqc.Selector
getDescription, getId, getTitle, isMultiple, isRequired, setDescription, setId, setMultiple, setRequired, setTitle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

allowedRangeMin

protected double allowedRangeMin

allowedRangeMax

protected double allowedRangeMax

units

protected java.lang.String units

template

protected java.lang.String template

modulo

protected boolean modulo

moduloValue

protected double moduloValue
Constructor Detail

SelectFromRange

public SelectFromRange()
Public constructor.

Method Detail

getAllowedRangeMin

public double getAllowedRangeMin()

getAllowedRangeMax

public double getAllowedRangeMax()

setAllowedRange

public void setAllowedRange(double min,
                            double max)
Set the allowed range.

Parameters:
min - - minimum point in the allowed range.
max - - maximum point in the allowed range.
Throws:
java.lang.IllegalArgumentException - if min is greater than max.

getUnits

public java.lang.String getUnits()

setUnits

public void setUnits(java.lang.String units)

getTemplate

public java.lang.String getTemplate()
Description copied from class: Selector
Get the template of this selector.

Overrides:
getTemplate in class Selector

setTemplate

public void setTemplate(java.lang.String template)
Description copied from class: Selector
Set the template of this selector.

Overrides:
setTemplate in class Selector

isModulo

public boolean isModulo()

setModulo

public void setModulo(boolean modulo)

validateSelection

public Selection validateSelection(Selection selection)
Specified by:
validateSelection in class Selector