Class AbstractAllowedChargeDischargeHandler<ESS extends SymmetricEss>

    • Field Detail

      • DISCHARGE_EFFICIENCY_FACTOR

        public static final float DISCHARGE_EFFICIENCY_FACTOR
        See Also:
        Constant Field Values
      • MAX_INCREASE_PERCENTAGE

        public static final float MAX_INCREASE_PERCENTAGE
        Allow a maximum increase per second.

        5 % of possible allowed charge/discharge power

        See Also:
        Constant Field Values
      • lastBatteryAllowedChargePower

        protected float lastBatteryAllowedChargePower
      • lastBatteryAllowedDischargePower

        protected float lastBatteryAllowedDischargePower
    • Constructor Detail

      • AbstractAllowedChargeDischargeHandler

        public AbstractAllowedChargeDischargeHandler​(ESS parent)
    • Method Detail

      • calculateAllowedChargeDischargePower

        protected void calculateAllowedChargeDischargePower​(ClockProvider clockProvider,
                                                            Battery battery)
        Calculates Allowed-Charge-Power and Allowed-Discharge Power from the given parameters. Result is stored in 'lastBatteryAllowedChargePower' and 'lastBatteryAllowedDischargePower' variables - both as positive values!
        Parameters:
        clockProvider - the ClockProvider
        battery - the Battery
      • calculateAllowedChargeDischargePower

        protected void calculateAllowedChargeDischargePower​(ClockProvider clockProvider,
                                                            boolean isStarted,
                                                            java.lang.Integer chargeMaxCurrent,
                                                            java.lang.Integer dischargeMaxCurrent,
                                                            java.lang.Integer voltage)
        Calculates Allowed-Charge-Power and Allowed-Discharge Power from the given parameters. Result is stored in 'allowedChargePower' and 'allowedDischargePower' variables - both as positive values!
        Parameters:
        clockProvider - the ClockProvider
        isStarted - is the ESS started?
        chargeMaxCurrent - the Battery.ChannelId.CHARGE_MAX_CURRENT
        dischargeMaxCurrent - the Battery.ChannelId#DISHARGE_MAX_CURRENT
        voltage - the Battery.ChannelId.VOLTAGE