ucar.unidata.data
Class DerivedNeed

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

public class DerivedNeed
extends Object

This class holds the specification of the "" tag in the derived.xml file.

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

Field Summary
protected  String categories
          the categories
 
Constructor Summary
DerivedNeed(DerivedDataDescriptor ddd, List params, String categories)
          This is the constructor that takes a set of parameters.
DerivedNeed(DerivedDataDescriptor ddd, String categories)
          ctor
DerivedNeed(DerivedDataDescriptor ddd, String groupName, String categories)
          This is the constructor that takes a parameter group name.
 
Method Summary
 void clearAfterSearch()
          Clear out the hashtable of used parameters after searching
 boolean equals(Object other)
          See if the Object in question is equal to this.
 String getCategories()
          Get the Categories property.
 List getDataChoices(Hashtable choicesSoFar)
          Get the list of DataChoices that are needed for this.
 String getGroupName()
          Get the group name for this.
 List getParamSets()
          Get the parameter sets
 void initForSearch()
          Initialize for searching.
protected  void reInitialize()
          If we use DataGroups then reinitialize the paramSets list
 void setCategories(String value)
          Set the Categories property.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

categories

protected String categories
the categories

Constructor Detail

DerivedNeed

public DerivedNeed(DerivedDataDescriptor ddd,
                   String categories)
ctor

Parameters:
ddd - my ddd
categories - categories string

DerivedNeed

public DerivedNeed(DerivedDataDescriptor ddd,
                   String groupName,
                   String categories)
This is the constructor that takes a parameter group name.

Parameters:
ddd - my ddd
groupName - the DataGroup name
categories - other categories

DerivedNeed

public DerivedNeed(DerivedDataDescriptor ddd,
                   List params,
                   String categories)
This is the constructor that takes a set of parameters.

Parameters:
ddd - my ddd
params - parameters
categories - other categories
Method Detail

reInitialize

protected void reInitialize()
If we use DataGroups then reinitialize the paramSets list


getGroupName

public String getGroupName()
Get the group name for this.

Returns:
the group name (or null)

getParamSets

public List getParamSets()
Get the parameter sets

Returns:
parameter sets

equals

public boolean equals(Object other)
See if the Object in question is equal to this.

Overrides:
equals in class Object
Parameters:
other - Object in question
Returns:
true if they are equal

getDataChoices

public List getDataChoices(Hashtable choicesSoFar)
Get the list of DataChoices that are needed for this.

Parameters:
choicesSoFar - choices seen so far
Returns:
List of needed DataChoices

initForSearch

public void initForSearch()
Initialize for searching. Clear out the seen params hashtable.


clearAfterSearch

public void clearAfterSearch()
Clear out the hashtable of used parameters after searching


setCategories

public void setCategories(String value)
Set the Categories property.

Parameters:
value - The new value for Categories

getCategories

public String getCategories()
Get the Categories property.

Returns:
The Categories