ChargingParameters

Charging information of an electric engine.

Constructors

Link copied to clipboard
constructor(batteryCurve: Map<Energy, Power>, chargingConnectors: List<ChargingConnector>, chargingTimeOffset: Duration = 180.seconds)

Creates new ChargingParameters with the specified battery curve and charging connectors.

Properties

Link copied to clipboard

The battery curve as a piecewise constant function. The curve maps the battery level to the charging power that can be applied at this level. From each energy level, the vehicle can be charged with the given power up to the next energy level. The power for the first energy level is used from 0 energy if no point at 0 energy is provided.

Link copied to clipboard

The list of connectors supported by the electric vehicle.

Link copied to clipboard

Additional time for plugging and unplugging which is added to the raw charging time.

Functions

Link copied to clipboard
operator fun component1(): Map<Energy, Power>
Link copied to clipboard
Link copied to clipboard
operator fun component3(): Duration
Link copied to clipboard
fun copy(batteryCurve: Map<Energy, Power> = this.batteryCurve, chargingConnectors: List<ChargingConnector> = this.chargingConnectors, chargingTimeOffset: Duration = this.chargingTimeOffset): ChargingParameters
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String