Class AbstractLoadModelEquationTerm

All Implemented Interfaces:
EquationTerm<AcVariableType,AcEquationType>, Evaluable
Direct Known Subclasses:
LoadModelActiveFlowEquationTerm, LoadModelReactiveFlowEquationTerm

public abstract class AbstractLoadModelEquationTerm extends AbstractElementEquationTerm<LfBus,AcVariableType,AcEquationType>
Author:
Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com>
  • Field Details

    • loadModel

      protected final LfLoadModel loadModel
    • load

      protected final LfLoad load
  • Constructor Details

  • Method Details

    • getVariables

      public List<Variable<AcVariableType>> getVariables()
      Description copied from interface: EquationTerm
      Get the list of variable this equation term depends on.
      Returns:
      the list of variable this equation term depends on.
    • getExpTerms

      protected abstract Collection<LfLoadModel.ExpTerm> getExpTerms()
    • getTarget

      protected abstract double getTarget()
    • eval

      public double eval()
      Description copied from interface: EquationTerm
      Evaluate equation term.
      Returns:
      value of the equation term
    • der

      public double der(Variable<AcVariableType> variable)
      Description copied from interface: EquationTerm
      Get partial derivative.
      Parameters:
      variable - the variable the partial derivative is with respect to
      Returns:
      value of the partial derivative