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.DatumDateFunctions,net.solarnetwork.domain.datum.DatumExpressionRoot,net.solarnetwork.domain.datum.DatumMathFunctions,net.solarnetwork.domain.datum.DatumMetadataOperations,net.solarnetwork.domain.Differentiable<net.solarnetwork.domain.datum.DatumMetadataOperations>,net.solarnetwork.node.domain.LocalStateOperations,net.solarnetwork.node.domain.TariffScheduleProvidersOperations
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,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe parameter name for a number maximum value.static final StringThe parameter name for a number minimum value.Fields inherited from class net.solarnetwork.domain.datum.DatumSamplesExpressionRoot
INTERNAL_PARAM_PREFIX -
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
copyWith, copyWith, getAndSaveLocalState, getInfo, getLocalStateDao, getMeta, getPropertyInfo, getPropertyInfoKeys, getTags, getTariffScheduleProviders, hasLatest, hasLatestMatching, hasLatestMatching, hasLatestOthersMatching, hasLatestOthersMatching, hasMeta, hasMeta, hasOffset, hasOffset, hasOffset, hasUnfilteredLatest, hasUnfilteredLatestMatching, hasUnfilteredLatestMatching, hasUnfilteredLatestOthersMatching, hasUnfilteredLatestOthersMatching, hasUnfilteredOffset, hasUnfilteredOffset, hasUnfilteredOffset, isOpMode, latest, latestMatching, latestMatching, latestOthersMatching, latestOthersMatching, localState, locMeta, meta, metadata, metadataAtPath, metadataAtPath, metaMatching, offset, offset, offset, saveLocalState, saveLocalState, selfAndLatestMatching, selfAndLatestMatching, selfAndUnfilteredLatestMatching, selfAndUnfilteredLatestMatching, setLocalStateDao, setTariffScheduleProviders, slice, slice, sort, sort, toString, unfilteredLatest, unfilteredLatestMatching, unfilteredLatestMatching, unfilteredLatestOthersMatching, unfilteredLatestOthersMatching, unfilteredOffset, unfilteredOffset, unfilteredOffset, unfilteredSlice, unfilteredSliceMethods 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.DatumDateFunctions
chronoUnit, date, date, date, date, dateFloor, dateFloor, dateFloor, dateFloor, dateFloor, dateFloor, datePlus, datePlus, datePlus, datePlus, dateTruncate, dateTruncate, dateTz, dateTz, dateTz, dateTz, dateTz, dateTz, dateTz, dateTz, dateTz, dateTz, dateTz, dateTz, daysBetween, duration, durationBetween, epoch, epochSecs, formatDate, formatDate, hoursBetween, local, localDate, localTime, minutesBetween, monthsBetween, now, now, now, nowTz, nowTz, nowTz, secondsBetween, startOfDay, startOfDay, startOfDay, time, timestamp, timestamp, timestamp, timestamp, timestamp, timestamp, today, today, today, tz, yearsBetweenMethods inherited from interface net.solarnetwork.domain.datum.DatumExpressionRoot
getLocId, getNodeId, getSourceId, getTimestampMethods inherited from interface net.solarnetwork.domain.datum.DatumMathFunctions
and, andNot, avg, cbrt, ceil, ceil, decimal, down, down, exp, floor, floor, fracPart, fracPart, integer, interp, interp, max, max, min, min, mround, narrow, narrow16, narrow32, narrow64, narrow8, not, or, pow, rms, round, round, roundDown, roundUp, scaled, shiftLeft, shiftRight, sqrt, sum, testBit, up, up, wholePart, xorMethods inherited from interface net.solarnetwork.domain.datum.DatumMetadataOperations
differsFrom, getInfo, getInfoBigDecimal, getInfoBigDecimal, getInfoBigInteger, getInfoBigInteger, getInfoDouble, getInfoDouble, getInfoFloat, getInfoFloat, getInfoInteger, getInfoInteger, getInfoKeys, getInfoLong, getInfoLong, getInfoNumber, getInfoNumber, getInfoShort, getInfoShort, getInfoString, getInfoString, hasInfo, hasInfo, hasMetadataAtPath, hasPropertyInfo, hasTag, isEmptyMethods inherited from interface net.solarnetwork.node.domain.LocalStateOperations
changeLocalState, changeLocalState, changeLocalState, getAndSaveLocalState, getAndSaveLocalState, hasLocalState, localState, saveLocalState, saveLocalState, saveLocalState, saveLocalStateMethods 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, valuesMethods inherited from interface net.solarnetwork.node.domain.TariffScheduleProvidersOperations
tariffSchedule, tariffScheduleGroup
-
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
-