Class BatterySystem

Class Documentation

class BatterySystem

Public Functions

double nominal_voltage() const

Get the nominal voltage of this battery system.

double capacity() const

Get the capacity of this battery system.

double charging_current() const

Get the charging current of this battery system.

Public Static Functions

static std::optional<BatterySystem> make(double nominal_voltage, double capacity, double charging_current)

Returns a BatterySystem object if valid values were supplied for the various fields else returns std::nullopt. Here valid implies that the values are greater than zero.

  • nominal_voltage[in] The nominal voltage of the battery in Volts

  • capacity[in] The nominal capacity of the battery in Ampere-hours

  • charging_current[in] The rated current in Amperes for charging the battery