ChargingPreferences

data class ChargingPreferences @JvmOverloads constructor(var fullChargeThreshold: Float, var chargingThreshold: Float, var reserveThreshold: Float, var batteryMinimumDestinationThreshold: Float, var preferDcChargers: EnforceableAttribute<ParcelableBoolean> = EnforceableAttribute(ParcelableBoolean(false), false), var preferNonstopChargers: EnforceableAttribute<ParcelableBoolean> = EnforceableAttribute(ParcelableBoolean(false), false), var paymentType: EnforceableAttribute<PaymentType> = EnforceableAttribute(PaymentType.Any, false), var chargerAccess: EnforceableAttribute<ChargerAccess> = EnforceableAttribute(ChargerAccess.Any, false), var powerRange: EnforceableAttribute<PowerRange> = EnforceableAttribute(PowerRange(), false), var stationPreferences: List<StationPreferences> = emptyList(), var minimalSocAtChargingStation: Double? = null) : Parcelable

Constructors

Link copied to clipboard
fun ChargingPreferences(fullChargeThreshold: Float, chargingThreshold: Float, reserveThreshold: Float, batteryMinimumDestinationThreshold: Float, preferDcChargers: EnforceableAttribute<ParcelableBoolean> = EnforceableAttribute(ParcelableBoolean(false), false), preferNonstopChargers: EnforceableAttribute<ParcelableBoolean> = EnforceableAttribute(ParcelableBoolean(false), false), paymentType: EnforceableAttribute<PaymentType> = EnforceableAttribute(PaymentType.Any, false), chargerAccess: EnforceableAttribute<ChargerAccess> = EnforceableAttribute(ChargerAccess.Any, false), powerRange: EnforceableAttribute<PowerRange> = EnforceableAttribute(PowerRange(), false), stationPreferences: List<StationPreferences> = emptyList(), minimalSocAtChargingStation: Double? = null)

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)

Properties

Link copied to clipboard

fraction of capacity desired at the destination. interval <0.0, 1.0>

Link copied to clipboard
var chargerAccess: EnforceableAttribute<ChargerAccess>

desired ChargerAccess, may be enforced

Link copied to clipboard

fraction of capacity considered as charging threshold. interval <0.0, 1.0>

Link copied to clipboard

fraction of capacity considered as full charge. interval <0.0, 1.0>

Link copied to clipboard

desired level of battery while arriving to charging station

Link copied to clipboard
var paymentType: EnforceableAttribute<PaymentType>

desired PaymentType, may be enforced

Link copied to clipboard
var powerRange: EnforceableAttribute<PowerRange>

desired PowerRange, may be enforced

Link copied to clipboard
var preferDcChargers: EnforceableAttribute<ParcelableBoolean>

true if DC chargers are preferred, may be enforced

Link copied to clipboard
var preferNonstopChargers: EnforceableAttribute<ParcelableBoolean>

true if non-stop chargers are preferred, may be enforced

Link copied to clipboard

fraction of capacity considered as reserve threshold. interval <0.0, 1.0>

Link copied to clipboard