public class ControlPropertyConfig
extends net.solarnetwork.node.service.support.ExpressionConfig
The DatumSamplePropertyConfig.getConfig() value represents the expression.
| Constructor and Description |
|---|
ControlPropertyConfig()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getControlId()
Get the control ID.
|
java.math.BigDecimal |
getMaxValue()
Get a maximum value to limit the output to.
|
java.math.BigDecimal |
getMinValue()
Get a minimum value to limit the output to.
|
boolean |
isValid()
Test if this instance has a valid configuration.
|
static ControlPropertyConfig |
of(java.lang.String controlId)
Create a new configuration instance.
|
void |
setControlId(java.lang.String controlId)
Set the control ID.
|
void |
setMaxValue(java.math.BigDecimal maxValue)
Set a maximum value to limit the output to.
|
void |
setMinValue(java.math.BigDecimal minValue)
Set a minimum value to limit the output to.
|
static java.util.List<net.solarnetwork.settings.SettingSpecifier> |
settings(java.lang.String prefix,
java.lang.Iterable<net.solarnetwork.service.ExpressionService> expressionServices)
Get settings suitable for configuring an instance of this class.
|
expressionReferenceLink, getDatumPropertyType, getDatumPropertyTypeKey, getExpression, getExpression, getExpressionServiceId, getName, setDatumPropertyType, setDatumPropertyTypeKey, setExpression, setExpressionServiceId, setName, settings, toSettingValuespublic static java.util.List<net.solarnetwork.settings.SettingSpecifier> settings(java.lang.String prefix,
java.lang.Iterable<net.solarnetwork.service.ExpressionService> expressionServices)
prefix - a setting key prefix to useexpressionServices - the available expression servicespublic static ControlPropertyConfig of(java.lang.String controlId)
controlId - the control IDpublic boolean isValid()
This method simply verifies the minimum level of configuration is available for the control to be used.
public java.lang.String getControlId()
public void setControlId(java.lang.String controlId)
controlId - the control ID to setpublic java.math.BigDecimal getMinValue()
public void setMinValue(java.math.BigDecimal minValue)
minValue - the minimum value to set, or null for no limitpublic java.math.BigDecimal getMaxValue()
public void setMaxValue(java.math.BigDecimal maxValue)
maxValue - the maximum value to set, or null for no limit