EnergyEvseTrait.ChargingTargetStruct

class EnergyEvseTrait.ChargingTargetStruct


A single user-specified charging target for an electric vehicle.

Summary

Public constructors

ChargingTargetStruct(
    targetTimeMinutesPastMidnight: UShort,
    targetSoC: OptionalValue<UByte>,
    addedEnergy: OptionalValue<Long>
)

Creates the ChargingTargetStruct class.

Public properties

OptionalValue<Long>

The amount of energy, in milliwatt hours, that the user would like to have added to the vehicle before the targetTimeMinutesPastMidnight is reached.

OptionalValue<UByte>

The target SoC, in percentage, that the vehicle should be charged to before the targetTimeMinutesPastMidnight is reached.

UShort

The desired charging completion time of the associated day, where the time is represented by a 16-bit unsigned integer to designate the minutes past midnight.

Public constructors

ChargingTargetStruct

ChargingTargetStruct(
    targetTimeMinutesPastMidnight: UShort,
    targetSoC: OptionalValue<UByte> = OptionalValue.absent(),
    addedEnergy: OptionalValue<Long> = OptionalValue.absent()
)

Creates the ChargingTargetStruct class.

Public properties

addedEnergy

val addedEnergyOptionalValue<Long>

The amount of energy, in milliwatt hours, that the user would like to have added to the vehicle before the targetTimeMinutesPastMidnight is reached.

targetSoC

val targetSoCOptionalValue<UByte>

The target SoC, in percentage, that the vehicle should be charged to before the targetTimeMinutesPastMidnight is reached.

targetTimeMinutesPastMidnight

val targetTimeMinutesPastMidnightUShort

The desired charging completion time of the associated day, where the time is represented by a 16-bit unsigned integer to designate the minutes past midnight. For example, 6 a.m. is represented by 360 minutes past midnight.