Class ExpressionRoot
java.lang.Object
java.util.AbstractMap<String,Object>
net.solarnetwork.domain.datum.DatumSamplesExpressionRoot
net.solarnetwork.node.domain.ExpressionRoot
net.solarnetwork.node.control.datumreactor.ExpressionRoot
- All Implemented Interfaces:
Map<String,,Object> net.solarnetwork.domain.datum.DatumExpressionRoot,net.solarnetwork.domain.datum.DatumMathFunctions
public class ExpressionRoot
extends net.solarnetwork.node.domain.ExpressionRoot
Load balancer expression root object.
- Version:
- 1.0
- Author:
- matt
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionExpressionRoot(net.solarnetwork.node.domain.datum.NodeDatum datum, net.solarnetwork.node.service.DatumService datumService, net.solarnetwork.node.service.OperationalModesService opModesService, Map<String, ?> parameters) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic ExpressionRootof(net.solarnetwork.node.domain.datum.NodeDatum datum, net.solarnetwork.node.service.DatumService datumService, net.solarnetwork.node.service.OperationalModesService opModesService, Number minValue, Number maxValue, Map<String, ?> parameters) Create a new instance.Methods inherited from class net.solarnetwork.node.domain.ExpressionRoot
getMeta, getSourceId, getTimestamp, hasLatest, hasLatestMatching, hasLatestOthersMatching, hasMeta, hasMeta, hasOffset, hasOffset, hasOffset, isOpMode, latest, latestMatching, latestOthersMatching, meta, metaMatching, offset, offset, offset, selfAndLatestMatching, toStringMethods inherited from class net.solarnetwork.domain.datum.DatumSamplesExpressionRoot
containsKey, entrySet, get, getData, getDatum, getParameters, getProps, getSamples, group, hasMethods inherited from class java.util.AbstractMap
clear, clone, containsValue, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, valuesMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.solarnetwork.domain.datum.DatumMathFunctions
and, 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, xorMethods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsValue, equals, forEach, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Field Details
-
PARAM_MIN_VALUE
The parameter name for a number minimum value.- See Also:
-
PARAM_MAX_VALUE
The parameter name for a number maximum value.- See Also:
-
-
Constructor Details
-
ExpressionRoot
public ExpressionRoot(net.solarnetwork.node.domain.datum.NodeDatum datum, net.solarnetwork.node.service.DatumService datumService, net.solarnetwork.node.service.OperationalModesService opModesService, Map<String, ?> parameters) Constructor.- Parameters:
datum- the datumdatumService- the optional datum serviceopModesService- the optional operational modes serviceparameters- the parameters
-
-
Method Details
-
of
public static ExpressionRoot of(net.solarnetwork.node.domain.datum.NodeDatum datum, net.solarnetwork.node.service.DatumService datumService, net.solarnetwork.node.service.OperationalModesService opModesService, Number minValue, Number maxValue, Map<String, ?> parameters) Create a new instance.- Parameters:
datum- the datumdatumService- the optional datum serviceopModesService- the operational modes serviceminValue- the minimum desired value, will be configured as the parameterPARAM_MIN_VALUEmaxValue- the maximum desired value, will be configured as the parameterPARAM_MAX_VALUEparameters- optional additional parameters to use with the expression- Returns:
- the new instance
-