ChargingParameters
public struct ChargingParameters
Describes connector information of an electric engine.
-
Creates an instance of
ChargingParameters
.Throws
VehicleError.invalidVehicleSnapshot
if the state of charge is less than zero.Throws
VehicleError.invalidVehicleSnapshot
if maximum power is less or equal to zero.Declaration
Swift
public init( batteryCurve: [Measurement<UnitEnergy>: Measurement<UnitPower>], chargingConnectors: [ChargingConnector], chargingTimeOffset: Measurement<UnitDuration>? = nil ) throws
Parameters
batteryCurve
Specifies the battery curve. Each entry describes a battery point, that consists of a state of charge and maximum power. Important remarks:
chargingConnectors
Specifies the available charging connector types.
chargingTimeOffset
Specifies the duration of charging time offset. If not specified the default value of 60s applies. Must be larger than or equal to zero.
-
Specifies the battery curve.
Declaration
Swift
public let batteryCurve: [Measurement<UnitEnergy> : Measurement<UnitPower>]
-
Specifies the available charging connector types.
Declaration
Swift
public let chargingConnectors: [ChargingConnector]
-
Specifies the charging time offset.
Declaration
Swift
public let chargingTimeOffset: Measurement<UnitDuration>?