Exemple #1
0
        public void CheckStateOfCharge(float soc)
        {
            CheckBatteryLevel(soc, Constants.minStateOfCharge, Constants.maxStateOfCharge);
            BatteryStates batteryChargeState = BatteryCondition.CheckBatteryCondition(soc, Constants.minStateOfCharge, Constants.maxStateOfCharge);

            BatteryMessages.DisplayBatteryStatus("State of charge", batteryChargeState);
        }
Exemple #2
0
        public void CheckChargeRate(float chargeRate)
        {
            CheckBatteryLevel(chargeRate, Constants.minChargeRate, Constants.maxChargeRate);
            BatteryStates batteryChargeRate = BatteryCondition.CheckBatteryCondition(chargeRate, Constants.minChargeRate, Constants.maxChargeRate);

            BatteryMessages.DisplayBatteryStatus("Charge Rate", batteryChargeRate);
        }
Exemple #3
0
        public void CheckTemperature(float temperature)
        {
            CheckBatteryLevel(temperature, Constants.minTemperature, Constants.maxTemperature);
            BatteryStates batteryTemperature = BatteryCondition.CheckBatteryCondition(temperature, Constants.minTemperature, Constants.maxTemperature);

            BatteryMessages.DisplayBatteryStatus("Temperature", batteryTemperature);
        }
Exemple #4
0
        public void CheckMaxBreachLevel(float chargeLevel, float actualValue, float maxValue)
        {
            float chargeRate = maxValue - chargeLevel;

            if (chargeRate <= actualValue && actualValue <= maxValue)
            {
                Warnings.ChargePeak = Constants.PeakDischarge;
                BatteryMessages.DisplayWarningMessage(Warnings.ChargePeak, _reporter);
            }
        }
Exemple #5
0
        public void CheckMinBreachLevel(float chargeLevel, float ActualValue, float minValue)
        {
            float chargeRate = chargeLevel + minValue;

            if (minValue <= ActualValue && ActualValue <= chargeRate)
            {
                Warnings.Discharge = Constants.LowDischarge;
                BatteryMessages.DisplayWarningMessage(Warnings.Discharge, _reporter);
            }
        }