public class HecIntParam
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
HecIntParam(java.lang.String paramName)
This constuctor uses the default values.
|
HecIntParam(java.lang.String paramName,
int value,
java.lang.String unitSystem,
int unit)
This constuctor uses the parameter name, value, unit system, and the unit to initialize the object
|
| Modifier and Type | Method and Description |
|---|---|
double |
getMax()
getMax() returns the maxminum value of the parameter
|
double |
getMin()
getMin() returns the minimum value of the parameter
|
java.lang.String |
getParamName()
getParamName() returns the name of the parameter.
|
double |
getRecMax()
getRecMax() returns the recommended maximum value of the parameter
|
double |
getRecMin()
getRecMin() returns the recommended minimum value of the parameter
|
int |
getUnit() |
java.lang.String |
getUnitSystem() |
int |
getValue() |
int |
getValue(java.lang.String s)
get the value in a specific unit system without changing the internal unit representation.
|
int |
isInRange()
isInRange() returns an integer
|
void |
setUnit(int pu)
set the parameter unit
|
void |
setValue(int v)
set the value
|
void |
setValue(int v,
java.lang.String unitSystem,
int unit)
set the parameter
public void setParam(HecDoubleParamData d)
{
_data = d;
}
|
void |
setValue(java.lang.String s,
int v,
java.lang.String unitSystem,
int unit) |
java.lang.String |
toString() |
public HecIntParam(java.lang.String paramName)
public HecIntParam(java.lang.String paramName,
int value,
java.lang.String unitSystem,
int unit)
public int isInRange()
public double getMin()
public double getMax()
public double getRecMin()
public double getRecMax()
public java.lang.String getParamName()
public void setValue(int v,
java.lang.String unitSystem,
int unit)
public void setValue(java.lang.String s,
int v,
java.lang.String unitSystem,
int unit)
public void setValue(int v)
public void setUnit(int pu)
_unitpublic int getValue(java.lang.String s)
"ENGLISH" - the returned value will be in English system"SI" - the returned value will be in metric systempublic int getValue()
public java.lang.String getUnitSystem()
public int getUnit()
public java.lang.String toString()
toString in class java.lang.Object