public interface Power
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
log |
static Constraint[] |
NO_CONSTRAINTS |
Modifier and Type | Method and Description |
---|---|
Constraint |
addConstraint(Constraint constraint)
Adds a Constraint.
|
Constraint |
addConstraintAndValidate(Constraint constraint)
Adds a Constraint if the problem is still solvable afterwards.
|
Constraint |
createSimpleConstraint(java.lang.String description,
ManagedSymmetricEss ess,
Phase phase,
Pwr pwr,
Relationship relationship,
double value)
Creates a simple constraint
|
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.
|
Coefficient |
getCoefficient(ManagedSymmetricEss ess,
Phase phase,
Pwr pwr)
Gets the Coefficient singleton for a specific combination of ess, phase and
pwr
|
int |
getMaxPower(ManagedSymmetricEss ess,
Phase phase,
Pwr pwr)
Gets the maximum possible Power under the active Constraints.
|
int |
getMinPower(ManagedSymmetricEss ess,
Phase phase,
Pwr pwr)
Gets the minimum possible possible Power under the active Constraints.
|
PidFilter |
getPidFilter()
Gets the PidFilter instance with the configured P, I and D variables.
|
void |
removeConstraint(Constraint constraint)
Removes a Constraint.
|
static final org.slf4j.Logger log
static final Constraint[] NO_CONSTRAINTS
Constraint addConstraint(Constraint constraint)
constraint
- Constraint addConstraintAndValidate(Constraint constraint) throws OpenemsException
constraint
- PowerException
OpenemsException
Constraint createSimpleConstraint(java.lang.String description, ManagedSymmetricEss ess, Phase phase, Pwr pwr, Relationship relationship, double value) throws OpenemsException
description
- ess
- phase
- pwr
- relationship
- value
- OpenemsException
void removeConstraint(Constraint constraint)
constraint
- int getMaxPower(ManagedSymmetricEss ess, Phase phase, Pwr pwr)
int getMinPower(ManagedSymmetricEss ess, Phase phase, Pwr pwr)
Coefficient getCoefficient(ManagedSymmetricEss ess, Phase phase, Pwr pwr) throws OpenemsException
ess
- phase
- pwr
- OpenemsException
default int fitValueIntoMinMaxPower(java.lang.String componentId, ManagedSymmetricEss ess, Phase phase, Pwr pwr, int value)
componentId
- Component-ID of the calling component for the log messagevalue
- the target value