public class ExpressionRoot
extends net.solarnetwork.node.domain.ExpressionRoot
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PARAM_MAX_VALUE
The parameter name for a number maximum value.
|
static java.lang.String |
PARAM_MIN_VALUE
The parameter name for a number minimum value.
|
| Constructor and Description |
|---|
ExpressionRoot(net.solarnetwork.node.domain.datum.NodeDatum datum,
net.solarnetwork.node.service.DatumService datumService,
net.solarnetwork.node.service.OperationalModesService opModesService,
java.util.Map<java.lang.String,?> parameters)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static ExpressionRoot |
of(net.solarnetwork.node.domain.datum.NodeDatum datum,
net.solarnetwork.node.service.DatumService datumService,
net.solarnetwork.node.service.OperationalModesService opModesService,
java.lang.Number minValue,
java.lang.Number maxValue,
java.util.Map<java.lang.String,?> parameters)
Create a new instance.
|
getMeta, getSourceId, getTimestamp, hasLatest, hasLatestMatching, hasLatestOthersMatching, hasMeta, hasMeta, hasOffset, hasOffset, hasOffset, isOpMode, latest, latestMatching, latestOthersMatching, meta, metaMatching, offset, offset, offset, selfAndLatestMatching, toStringcontainsKey, entrySet, get, getData, getDatum, getParameters, getProps, getSamples, group, hasclear, clone, containsValue, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitand, andNot, avg, ceil, ceil, decimal, down, down, floor, floor, integer, max, max, min, min, mround, narrow, narrow16, narrow32, narrow64, narrow8, not, or, round, round, roundDown, roundUp, shiftLeft, shiftRight, sum, testBit, up, up, xorpublic static final java.lang.String PARAM_MIN_VALUE
public static final java.lang.String PARAM_MAX_VALUE
public ExpressionRoot(net.solarnetwork.node.domain.datum.NodeDatum datum,
net.solarnetwork.node.service.DatumService datumService,
net.solarnetwork.node.service.OperationalModesService opModesService,
java.util.Map<java.lang.String,?> parameters)
datum - the datumdatumService - the optional datum serviceopModesService - the optional operational modes serviceparameters - the parameterspublic static ExpressionRoot of(net.solarnetwork.node.domain.datum.NodeDatum datum, net.solarnetwork.node.service.DatumService datumService, net.solarnetwork.node.service.OperationalModesService opModesService, java.lang.Number minValue, java.lang.Number maxValue, java.util.Map<java.lang.String,?> parameters)
datum - the datumdatumService - the optional datum serviceopModesService - the operational modes serviceminValue - the minimum desired value, will be configured as the parameter
PARAM_MIN_VALUEmaxValue - the maximum desired value, will be configured as the parameter
PARAM_MAX_VALUEparameters - optional additional parameters to use with the expression