Interface EquationTerm<V extends Enum<V> & Quantity,​E extends Enum<E> & Quantity>

    • Method Detail

      • setEquation

        void setEquation​(Equation<V,​E> equation)
      • isActive

        boolean isActive()
      • setActive

        void setActive​(boolean active)
      • getElementNum

        int getElementNum()
      • getVariables

        List<Variable<V>> getVariables()
        Get the list of variable this equation term depends on.
        Returns:
        the list of variable this equation term depends on.
      • setStateVector

        void setStateVector​(StateVector sv)
        Set state vector to use for term evaluation.
        Parameters:
        sv - the state vector
      • eval

        double eval()
        Evaluate equation term.
        Specified by:
        eval in interface Evaluable
        Returns:
        value of the equation term
      • der

        double der​(Variable<V> variable)
        Get partial derivative.
        Parameters:
        variable - the variable the partial derivative is with respect to
        Returns:
        value of the partial derivative
      • hasRhs

        boolean hasRhs()
        Check rhs() can return a value different from zero.
        Returns:
        true if rhs() can return a value different from zero, false otherwise
      • rhs

        double rhs()
        Get part of the partial derivative that has to be moved to right hand side.
        Returns:
        value of part of the partial derivative that has to be moved to right hand side
      • calculateSensi

        double calculateSensi​(com.powsybl.math.matrix.DenseMatrix x,
                              int column)