|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdatabionics.modules.Parameter
databionics.modules.FloatParameter
public class FloatParameter
Parameter with floating point number argument.
Field Summary | |
---|---|
protected java.lang.Float |
def
default value |
protected static org.apache.log4j.Logger |
log
log4j logging |
protected java.lang.Float |
max
maximum value |
protected java.lang.Float |
min
minimum value |
protected java.lang.Float |
value
parameter value |
Fields inherited from class databionics.modules.Parameter |
---|
constant, description, longName, name, optional |
Constructor Summary | |
---|---|
FloatParameter()
|
Method Summary | |
---|---|
java.lang.Object |
clone()
Creates and returns a copy of this object. |
java.lang.Float |
getDefault()
Get the default value |
java.lang.Float |
getMax()
Get the maximum value |
java.lang.Float |
getMin()
Get the minimum value |
java.lang.Float |
getValue()
Get the value or, if value is not defined, the default value |
java.lang.String |
getValueAsString()
String representation of value. |
void |
setDefault(float var)
Set the default value |
void |
setDefault(java.lang.Float var)
Set the default value |
void |
setMax(float i)
Set the maximum value |
void |
setMax(java.lang.Float i)
Set the maximum value |
void |
setMin(float i)
Set the minimum value |
void |
setMin(java.lang.Float i)
Set the minimum value |
void |
setValue(float var)
Set the value. |
void |
setValue(java.lang.Float var)
Set the value. |
void |
setValue(java.lang.String var)
Set the value as a string If var is less than the minimum, set the minimum instead and throw LessThanMinException to issue a warning. |
java.lang.String |
toString()
String representation with name and value as needed for starting a tool. |
java.lang.String |
toXml()
XML representation |
static FloatParameter |
valueOf(org.w3c.dom.Element el)
Create a FloatParameter from an XML tag |
Methods inherited from class databionics.modules.Parameter |
---|
getDescription, getLongName, getName, isConstant, isOptional, setConstant, setDescription, setLongName, setName, setOptional |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static org.apache.log4j.Logger log
protected java.lang.Float value
protected java.lang.Float def
protected java.lang.Float min
protected java.lang.Float max
Constructor Detail |
---|
public FloatParameter()
Method Detail |
---|
public java.lang.Float getValue()
public java.lang.String getValueAsString()
getValueAsString
in class Parameter
public void setValue(float var) throws LessThanMinException, GreaterThanMaxException
var
- new value
LessThanMinException
GreaterThanMaxException
public void setValue(java.lang.Float var) throws LessThanMinException, GreaterThanMaxException
LessThanMinException
GreaterThanMaxException
public void setValue(java.lang.String var) throws java.lang.NumberFormatException, LessThanMinException, GreaterThanMaxException
java.lang.NumberFormatException
LessThanMinException
GreaterThanMaxException
public java.lang.Float getDefault()
public java.lang.Float getMin()
public java.lang.Float getMax()
public void setDefault(float var)
public void setDefault(java.lang.Float var)
public void setMin(float i)
public void setMin(java.lang.Float i)
public void setMax(float i)
public void setMax(java.lang.Float i)
public java.lang.Object clone()
clone
in class Parameter
public java.lang.String toString()
toString
in class Parameter
public static FloatParameter valueOf(org.w3c.dom.Element el)
public java.lang.String toXml()
toXml
in class Parameter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |