Interface Power

    • Field Detail

      • log

        static final org.slf4j.Logger log
      • NO_CONSTRAINTS

        static final Constraint[] NO_CONSTRAINTS
    • Method Detail

      • removeConstraint

        void removeConstraint​(Constraint constraint)
        Removes a Constraint.
        Parameters:
        constraint - the Constraint
      • fitValueIntoMinMaxPower

        default int fitValueIntoMinMaxPower​(java.lang.String componentId,
                                            ManagedSymmetricEss ess,
                                            Phase phase,
                                            Pwr pwr,
                                            int value)
        Adjusts the given value so that it fits into Min/MaxPower.
        Parameters:
        componentId - Component-ID of the calling component for the log message
        ess - the ManagedSymmetricEss
        phase - the Phase
        pwr - the Pwr
        value - the target value
        Returns:
        a value that fits into Min/MaxPower
      • fitValueToMaxPower

        default int fitValueToMaxPower​(java.lang.String componentId,
                                       ManagedSymmetricEss ess,
                                       Phase phase,
                                       Pwr pwr,
                                       int value)
        Adjusts the given value so that it does not break an existing Max-Power-Constraint.
        Parameters:
        componentId - Component-ID of the calling component for the log message
        ess - the ManagedSymmetricEss
        phase - the Phase
        pwr - the Pwr
        value - the target value
        Returns:
        a value that is compared to existing Max-Power
      • fitValueToMinPower

        default int fitValueToMinPower​(java.lang.String componentId,
                                       ManagedSymmetricEss ess,
                                       Phase phase,
                                       Pwr pwr,
                                       int value)
        Adjusts the given value so that it does not break an existing Min-Power-Constraint.
        Parameters:
        componentId - Component-ID of the calling component for the log message
        ess - the ManagedSymmetricEss
        phase - the Phase
        pwr - the Pwr
        value - the target value
        Returns:
        a value that is compared to existing Min-Power
      • getPidFilter

        PidFilter getPidFilter()
        Gets the PidFilter instance with the configured P, I and D variables.
        Returns:
        an instance of PidFilter
      • isPidEnabled

        boolean isPidEnabled()
        Check if PidFilter is enabled.
        Returns:
        true if PidFilter is enable, otherwise false