ChargingParameters
constructor(batteryCurve: Map<Energy, Power>, chargingConnectors: List<ChargingConnector>, chargingTimeOffset: Duration = 180.seconds)
Creates new ChargingParameters with the specified battery curve and charging connectors.
Parameters
batteryCurve
The battery curve as a piecewise constant function. See ChargingParameters.batteryCurve.
chargingConnectors
The list of charging connectors supported by the vehicle.
chargingTimeOffset
Additional time for plugging and unplugging which is added to the raw charging time.
Throws
If the charging connectors are empty or have overlapping applicability.