Package io.openems.edge.ess.core.power
Interface PowerComponent
-
- All Superinterfaces:
org.osgi.service.event.EventHandler
,OpenemsComponent
,Power
- All Known Implementing Classes:
PowerComponentImpl
public interface PowerComponent extends OpenemsComponent, org.osgi.service.event.EventHandler, Power
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
PowerComponent.ChannelId
-
Field Summary
Fields Modifier and Type Field Description static boolean
DEFAULT_DEBUG_MODE
static SolverStrategy
DEFAULT_SOLVER_STRATEGY
static boolean
DEFAULT_SYMMETRIC_MODE
static java.lang.String
SINGLETON_COMPONENT_ID
static java.lang.String
SINGLETON_SERVICE_PID
-
Fields inherited from interface io.openems.edge.ess.power.api.Power
log, NO_CONSTRAINTS
-
-
Method Summary
-
Methods inherited from interface io.openems.edge.common.component.OpenemsComponent
_channel, _getChannelAs, alias, channel, channel, channels, debugLog, getComponentContext, getState, getStateChannel, hasFaults, id, isEnabled, serviceFactoryPid, servicePid
-
Methods inherited from interface io.openems.edge.ess.power.api.Power
addConstraint, addConstraintAndValidate, createSimpleConstraint, fitValueIntoMinMaxPower, fitValueToMaxPower, fitValueToMinPower, getCoefficient, getMaxPower, getMinPower, getPidFilter, isPidEnabled, removeConstraint
-
-
-
-
Field Detail
-
SINGLETON_SERVICE_PID
static final java.lang.String SINGLETON_SERVICE_PID
- See Also:
- Constant Field Values
-
SINGLETON_COMPONENT_ID
static final java.lang.String SINGLETON_COMPONENT_ID
- See Also:
- Constant Field Values
-
DEFAULT_SYMMETRIC_MODE
static final boolean DEFAULT_SYMMETRIC_MODE
- See Also:
- Constant Field Values
-
DEFAULT_DEBUG_MODE
static final boolean DEFAULT_DEBUG_MODE
- See Also:
- Constant Field Values
-
DEFAULT_SOLVER_STRATEGY
static final SolverStrategy DEFAULT_SOLVER_STRATEGY
-
-
Method Detail
-
getNotSolvedChannel
default StateChannel getNotSolvedChannel()
Gets the Channel forPowerComponent.ChannelId.NOT_SOLVED
.- Returns:
- the Channel
-
_setNotSolved
default void _setNotSolved(boolean value)
Internal method to set the 'nextValue' onPowerComponent.ChannelId.NOT_SOLVED
Channel.- Parameters:
value
- the next value
-
getSolveDurationChannel
default IntegerReadChannel getSolveDurationChannel()
Gets the Channel forPowerComponent.ChannelId.SOLVE_DURATION
.- Returns:
- the Channel
-
_setSolveDuration
default void _setSolveDuration(int value)
Internal method to set the 'nextValue' onPowerComponent.ChannelId.SOLVE_DURATION
Channel.- Parameters:
value
- the next value
-
getSolveStrategyChannel
default EnumReadChannel getSolveStrategyChannel()
Gets the Channel forPowerComponent.ChannelId.SOLVE_STRATEGY
.- Returns:
- the Channel
-
_setSolveStrategy
default void _setSolveStrategy(SolverStrategy value)
Internal method to set the 'nextValue' onPowerComponent.ChannelId.SOLVE_STRATEGY
Channel.- Parameters:
value
- the next value
-
getStaticConstraintsFailedChannel
default StateChannel getStaticConstraintsFailedChannel()
Gets the Channel forPowerComponent.ChannelId.STATIC_CONSTRAINTS_FAILED
.- Returns:
- the Channel
-
_setStaticConstraintsFailed
default void _setStaticConstraintsFailed(boolean value)
Internal method to set the 'nextValue' onPowerComponent.ChannelId.STATIC_CONSTRAINTS_FAILED
Channel.- Parameters:
value
- the next value
-
-