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
  • 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