gov.nasa.gsfc.hessi.jidl.prep.server.Parameter
Class PrepParameter

java.lang.Object
  extended by gov.nasa.gsfc.hessi.jidl.prep.server.Parameter.PrepParameter

public class PrepParameter
extends java.lang.Object

This class is the entity that holds pairs of parameters and values. Each PrepParameter has a parameter name and value which will be used directly in Preprocessor.preprocess()

Since:
Revision 19
Author:
Laszlo Istvan Etesi

Field Summary
private  java.lang.String name
          The name of the parameter.
private  java.lang.Object[] value
          This member holds the value assigned to this parameter.
 
Constructor Summary
PrepParameter()
          Empty default constructor
PrepParameter(java.lang.String name)
          Default constructor
 
Method Summary
 java.lang.String getName()
          Accessor method for the parameter name
 java.lang.Object[] getValue()
          Accessor method to retrieve the parameter's value
 void setName(java.lang.String name)
          Mutator method for the parameter name
 void setValue(java.lang.Object[] value)
          Mutator method to set the parameter's value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

private java.lang.String name
The name of the parameter. Has to be the real name used by the preprocessing routine for the given instrument


value

private java.lang.Object[] value
This member holds the value assigned to this parameter. Even if it is a single value, to stay flexible and being able to deal with arrays, it is always an array.

Constructor Detail

PrepParameter

public PrepParameter()
Empty default constructor


PrepParameter

public PrepParameter(java.lang.String name)
Default constructor

Parameters:
name - that is the actual name for this parameter
Method Detail

getName

public java.lang.String getName()
Accessor method for the parameter name

Returns:
the parameter name, lower-cased in order to prevent conflicts

setName

public void setName(java.lang.String name)
Mutator method for the parameter name

Parameters:
name - of the parameter

setValue

public void setValue(java.lang.Object[] value)
Mutator method to set the parameter's value

Parameters:
value - is the parameter's value

getValue

public java.lang.Object[] getValue()
Accessor method to retrieve the parameter's value

Returns:
the parameter's value in form of a generic Object[]