Package io.openems.edge.ess.core.power
Class Data
java.lang.Object
io.openems.edge.ess.core.power.Data
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addConstraint
(Constraint constraint) protected void
Adds aManagedSymmetricEss
.void
addSimpleConstraint
(String description, String essId, Phase phase, Pwr pwr, Relationship relationship, double value) Adds a simple Constraint with only one Coefficient.getCoefficient
(String essId, Phase phase, Pwr pwr) Get the Coefficient of the linear solver for the given parameters.Get the Coefficients of the linear solver.Gets Constraints for all Inverters.getConstraintsForInverters
(Collection<Inverter> enabledInverters) Gets Constraints with the 'enabledInverters' only.getConstraintsWithoutDisabledInverters
(Collection<Inverter> disabledInverters) Gets Constraints without the 'disabledInverters'.protected ManagedSymmetricEss
protected List<ManagedSymmetricEss>
getEsss()
protected void
void
onStaticConstraintsFailed
(Consumer<Boolean> onStaticConstraintsFailed) Adds a callback for onStaticConstraintsFailed event.protected void
removeConstraint
(Constraint constraint) protected void
Removes aManagedSymmetricEss
.void
setSymmetricMode
(boolean symmetricMode) Activates Symmetric-Mode.
-
Constructor Details
-
Data
public Data()
-
-
Method Details
-
onStaticConstraintsFailed
Adds a callback for onStaticConstraintsFailed event.- Parameters:
onStaticConstraintsFailed
- the Callback
-
addEss
Adds aManagedSymmetricEss
. Called byPowerComponentImpl
.- Parameters:
ess
- theManagedSymmetricEss
-
removeEss
Removes aManagedSymmetricEss
. Called byPowerComponentImpl
.- Parameters:
ess
- theManagedSymmetricEss
-
setSymmetricMode
public void setSymmetricMode(boolean symmetricMode) Activates Symmetric-Mode.- Parameters:
symmetricMode
- Symmetric-Mode enabled?
-
initializeCycle
protected void initializeCycle() -
getEsss
-
getInverters
-
addConstraint
-
removeConstraint
-
addSimpleConstraint
public void addSimpleConstraint(String description, 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 ConstraintessId
- the component Id of aManagedSymmetricEss
phase
- thePhase
pwr
- thePwr
relationship
- theRelationship
value
- the value- Throws:
OpenemsException
- on error
-
getCoefficients
Get the Coefficients of the linear solver.- Returns:
- the
Coefficients
-
getCoefficient
Get the Coefficient of the linear solver for the given parameters.- Parameters:
essId
- the Component-ID of aManagedSymmetricEss
phase
- thePhase
pwr
- thePwr
- Returns:
- the
Coefficients
- Throws:
OpenemsException
-
getConstraintsForAllInverters
Gets Constraints for all Inverters.- Returns:
- List of Constraints
- Throws:
OpenemsException
- on error
-
getConstraintsForInverters
public List<Constraint> getConstraintsForInverters(Collection<Inverter> enabledInverters) throws OpenemsException Gets Constraints with the 'enabledInverters' only.- Parameters:
enabledInverters
- Collection of enabledInverter
s- Returns:
- List of
Constraint
s - Throws:
OpenemsException
- on error
-
getConstraintsWithoutDisabledInverters
public List<Constraint> getConstraintsWithoutDisabledInverters(Collection<Inverter> disabledInverters) throws OpenemsException Gets Constraints without the 'disabledInverters'.- Parameters:
disabledInverters
- Collection of disabled inverters- Returns:
- List of Constraints
- Throws:
OpenemsException
- on error
-
getEss
-