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>

    Nested classes/interfaces inherited from interface java.util.Map

    Map.Entry<K,V>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The parameter name for a number maximum value.
    static final String
    The parameter name for a number minimum value.

    Fields inherited from class net.solarnetwork.domain.datum.DatumSamplesExpressionRoot

    INTERNAL_PARAM_PREFIX
  • Constructor Summary

    Constructors
    Constructor
    Description
    ExpressionRoot(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 Type
    Method
    Description
    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.

    Methods inherited from class net.solarnetwork.node.domain.ExpressionRoot

    copyWith, copyWith, getAndSaveLocalState, getInfo, getLocalStateDao, getMeta, getPropertyInfo, getPropertyInfoKeys, getTags, getTariffScheduleProviders, hasLatest, hasLatestMatching, hasLatestOthersMatching, hasMeta, hasMeta, hasOffset, hasOffset, hasOffset, hasUnfilteredLatest, hasUnfilteredLatestMatching, hasUnfilteredLatestOthersMatching, hasUnfilteredOffset, hasUnfilteredOffset, hasUnfilteredOffset, isOpMode, latest, latestMatching, latestOthersMatching, localState, locMeta, meta, metadata, metadataAtPath, metadataAtPath, metaMatching, offset, offset, offset, saveLocalState, saveLocalState, selfAndLatestMatching, selfAndUnfilteredLatestMatching, setLocalStateDao, setTariffScheduleProviders, slice, slice, sort, sort, toString, unfilteredLatest, unfilteredLatestMatching, unfilteredLatestOthersMatching, unfilteredOffset, unfilteredOffset, unfilteredOffset, unfilteredSlice, unfilteredSlice

    Methods inherited from class net.solarnetwork.domain.datum.DatumSamplesExpressionRoot

    containsKey, entrySet, get, getData, getDatum, getParameters, getProps, getSamples, group, has

    Methods inherited from class java.util.AbstractMap

    clear, clone, containsValue, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, values

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods 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, yearsBetween

    Methods inherited from interface net.solarnetwork.domain.datum.DatumExpressionRoot

    getLocId, getNodeId, getSourceId, getTimestamp

    Methods 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, xor

    Methods 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, isEmpty

    Methods inherited from interface net.solarnetwork.node.domain.LocalStateOperations

    changeLocalState, changeLocalState, changeLocalState, getAndSaveLocalState, getAndSaveLocalState, hasLocalState, localState, saveLocalState, saveLocalState, saveLocalState, saveLocalState

    Methods inherited from interface net.solarnetwork.node.domain.TariffScheduleProvidersOperations

    tariffSchedule, tariffScheduleGroup
  • Field Details

    • PARAM_MIN_VALUE

      public static final String PARAM_MIN_VALUE
      The parameter name for a number minimum value.
      See Also:
    • PARAM_MAX_VALUE

      public static final String 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 datum
      datumService - the optional datum service
      opModesService - the optional operational modes service
      parameters - 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 datum
      datumService - the optional datum service
      opModesService - the operational modes service
      minValue - the minimum desired value, will be configured as the parameter PARAM_MIN_VALUE
      maxValue - the maximum desired value, will be configured as the parameter PARAM_MAX_VALUE
      parameters - optional additional parameters to use with the expression
      Returns:
      the new instance