Class Data


  • public class Data
    extends java.lang.Object
    • Constructor Detail

      • Data

        public Data()
    • Method Detail

      • onStaticConstraintsFailed

        public void onStaticConstraintsFailed​(java.util.function.Consumer<java.lang.Boolean> onStaticConstraintsFailed)
        Adds a callback for onStaticConstraintsFailed event.
        Parameters:
        onStaticConstraintsFailed - the Callback
      • setSymmetricMode

        public void setSymmetricMode​(boolean symmetricMode)
        Activates Symmetric-Mode.
        Parameters:
        symmetricMode - Symmetric-Mode enabled?
      • initializeCycle

        protected void initializeCycle()
      • getInverters

        protected java.util.List<Inverter> getInverters()
      • addConstraint

        protected void addConstraint​(Constraint constraint)
      • removeConstraint

        protected void removeConstraint​(Constraint constraint)
      • addSimpleConstraint

        public void addSimpleConstraint​(java.lang.String description,
                                        java.lang.String essId,
                                        Phase phase,
                                        Pwr pwr,
                                        Relationship relationship,
                                        double value)
                                 throws OpenemsException
        Adds a simple Constraint with only one Coefficient.
        Parameters:
        description - a description for the Constraint
        essId - the component Id of a ManagedSymmetricEss
        phase - the Phase
        pwr - the Pwr
        relationship - the Relationship
        value - the value
        Throws:
        OpenemsException - on error
      • getCoefficients

        public Coefficients getCoefficients()
        Get the Coefficients of the linear solver.
        Returns:
        the Coefficients
      • getConstraintsForAllInverters

        public java.util.List<Constraint> getConstraintsForAllInverters()
                                                                 throws OpenemsException
        Gets Constraints for all Inverters.
        Returns:
        List of Constraints
        Throws:
        OpenemsException - on error
      • getConstraintsForInverters

        public java.util.List<Constraint> getConstraintsForInverters​(java.util.Collection<Inverter> enabledInverters)
                                                              throws OpenemsException
        Gets Constraints with the 'enabledInverters' only.
        Parameters:
        enabledInverters - Collection of enabled Inverters
        Returns:
        List of Constraints
        Throws:
        OpenemsException - on error
      • getConstraintsWithoutDisabledInverters

        public java.util.List<Constraint> getConstraintsWithoutDisabledInverters​(java.util.Collection<Inverter> disabledInverters)
                                                                          throws OpenemsException
        Gets Constraints without the 'disabledInverters'.
        Parameters:
        disabledInverters - Collection of disabled inverters
        Returns:
        List of Constraints
        Throws:
        OpenemsException - on error