Esempio n. 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);
        }
Esempio n. 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);
        }
Esempio n. 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);
        }
 public static void CheckBatteryCondition(float temperature, float soc, float chargeRate)
 {
     BatteryCondition.CheckTemperature(temperature);
     BatteryCondition.CheckChargeState(soc);
     BatteryCondition.CheckChargeRate(chargeRate);
 }