public class DoubleParameter extends Parameter<java.lang.Number>
Parameter
,
leaving only construction and type definition to the
subclasses.
DoubleMonitor
for an example
of this usage.
valueProperty
Constructor and Description |
---|
DoubleParameter(double value,
java.lang.String name)
Creates a new instance of this class, assuming the parameter
is not critical.
|
DoubleParameter(double value,
java.lang.String name,
boolean critical)
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Double |
get() |
void |
validate(java.lang.Number newValue)
This is a callback method which gets called whenever changes
to parameters (not only its own instance) are made.
|
getStatus, isCritical, isMonitor, set, toString, valueProperty
public DoubleParameter(double value, java.lang.String name)
value
- the initial value for this parameter.name
- the name of this parameter, for GUI display.public DoubleParameter(double value, java.lang.String name, boolean critical)
value
- the initial value for this parameter.name
- the name of this parameter, for GUI display.critical
- true if the parameter is critical.public java.lang.Double get()
public void validate(java.lang.Number newValue)
Parameter
status
field according to the
new value, so that the user can be informed if any parameters
are currently set to invalid values.