Class BatterySpecifications
Class BatterySpecifications
- java.lang.Object
-
- com.here.sdk.routing.BatterySpecifications
-
public final class BatterySpecifications extends java.lang.ObjectParameters related to the electric vehicle's battery.
-
-
Field Summary
Fields Modifier and Type Field Description java.util.Map<java.lang.Double,java.lang.Double>chargingCurveFunction curve describing the maximum battery charging rate (in kW) at a given charge level (in kWh).DurationchargingSetupDurationTime in seconds spent after arriving at a charging station, but before actually charging, e.g., time spent for payment processing.java.util.List<ChargingConnectorType>connectorTypesList of available charging connector types.doubleinitialChargeInKilowattHoursCharge level of the vehicle's battery at the start of the route (in kWh).java.lang.DoublemaxChargingCurrentInAmperesMaximum charging current supported by the vehicle's battery in Amperes.java.lang.DoublemaxChargingVoltageInVoltsMaximum charging voltage supported by the vehicle's battery in Volts.java.lang.DoublemaxPowerAtLowVoltageInKilowattsThe maximum power in kilowatts at which a vehicle can charge under given these conditions: The charging station connector's maximum supply voltage is less than 800 V.maxChargingVoltageInVoltsis greater than or equal to 800 V.doubleminChargeAtChargingStationInKilowattHoursMinimum charge when arriving at a charging station in kWh.doubleminChargeAtDestinationInKilowattHoursMinimum charge at the final route destination in kWh.java.lang.DoubleminChargeAtFirstChargingStationInKilowattHoursMinimum charge when arriving at first charging station in kWh.doubletargetChargeInKilowattHoursMaximum charge to which the battery should be charged at a charging station (in kWh).doubletotalCapacityInKilowattHoursTotal capacity of the vehicle's battery (in kWh).
-
Constructor Summary
Constructors Constructor Description BatterySpecifications()Creates a new instance.BatterySpecifications(double totalCapacityInKilowattHours)Creates a new instance.BatterySpecifications(double totalCapacityInKilowattHours, double initialChargeInKilowattHours)Creates a new instance.BatterySpecifications(double totalCapacityInKilowattHours, double initialChargeInKilowattHours, double targetChargeInKilowattHours)Creates a new instance.BatterySpecifications(double totalCapacityInKilowattHours, double initialChargeInKilowattHours, double targetChargeInKilowattHours, java.util.Map<java.lang.Double,java.lang.Double> chargingCurve)Creates a new instance.BatterySpecifications(double totalCapacityInKilowattHours, double initialChargeInKilowattHours, double targetChargeInKilowattHours, java.util.Map<java.lang.Double,java.lang.Double> chargingCurve, java.util.List<ChargingConnectorType> connectorTypes)Creates a new instance.BatterySpecifications(double totalCapacityInKilowattHours, double initialChargeInKilowattHours, double targetChargeInKilowattHours, java.util.Map<java.lang.Double,java.lang.Double> chargingCurve, java.util.List<ChargingConnectorType> connectorTypes, double minChargeAtChargingStationInKilowattHours)Creates a new instance.BatterySpecifications(double totalCapacityInKilowattHours, double initialChargeInKilowattHours, double targetChargeInKilowattHours, java.util.Map<java.lang.Double,java.lang.Double> chargingCurve, java.util.List<ChargingConnectorType> connectorTypes, double minChargeAtChargingStationInKilowattHours, java.lang.Double minChargeAtFirstChargingStationInKilowattHours)Creates a new instance.BatterySpecifications(double totalCapacityInKilowattHours, double initialChargeInKilowattHours, double targetChargeInKilowattHours, java.util.Map<java.lang.Double,java.lang.Double> chargingCurve, java.util.List<ChargingConnectorType> connectorTypes, double minChargeAtChargingStationInKilowattHours, java.lang.Double minChargeAtFirstChargingStationInKilowattHours, double minChargeAtDestinationInKilowattHours)Creates a new instance.BatterySpecifications(double totalCapacityInKilowattHours, double initialChargeInKilowattHours, double targetChargeInKilowattHours, java.util.Map<java.lang.Double,java.lang.Double> chargingCurve, java.util.List<ChargingConnectorType> connectorTypes, double minChargeAtChargingStationInKilowattHours, java.lang.Double minChargeAtFirstChargingStationInKilowattHours, double minChargeAtDestinationInKilowattHours, java.lang.Double maxChargingVoltageInVolts)Creates a new instance.BatterySpecifications(double totalCapacityInKilowattHours, double initialChargeInKilowattHours, double targetChargeInKilowattHours, java.util.Map<java.lang.Double,java.lang.Double> chargingCurve, java.util.List<ChargingConnectorType> connectorTypes, double minChargeAtChargingStationInKilowattHours, java.lang.Double minChargeAtFirstChargingStationInKilowattHours, double minChargeAtDestinationInKilowattHours, java.lang.Double maxChargingVoltageInVolts, java.lang.Double maxChargingCurrentInAmperes)Creates a new instance.BatterySpecifications(double totalCapacityInKilowattHours, double initialChargeInKilowattHours, double targetChargeInKilowattHours, java.util.Map<java.lang.Double,java.lang.Double> chargingCurve, java.util.List<ChargingConnectorType> connectorTypes, double minChargeAtChargingStationInKilowattHours, java.lang.Double minChargeAtFirstChargingStationInKilowattHours, double minChargeAtDestinationInKilowattHours, java.lang.Double maxChargingVoltageInVolts, java.lang.Double maxChargingCurrentInAmperes, Duration chargingSetupDuration)Creates a new instance.BatterySpecifications(double totalCapacityInKilowattHours, double initialChargeInKilowattHours, double targetChargeInKilowattHours, java.util.Map<java.lang.Double,java.lang.Double> chargingCurve, java.util.List<ChargingConnectorType> connectorTypes, double minChargeAtChargingStationInKilowattHours, java.lang.Double minChargeAtFirstChargingStationInKilowattHours, double minChargeAtDestinationInKilowattHours, java.lang.Double maxChargingVoltageInVolts, java.lang.Double maxChargingCurrentInAmperes, Duration chargingSetupDuration, java.lang.Double maxPowerAtLowVoltageInKilowatts)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)inthashCode()
-
-
-
Field Detail
-
totalCapacityInKilowattHours
public double totalCapacityInKilowattHours
Total capacity of the vehicle's battery (in kWh). It must be positive. Defaults to 0. Note: For a user-planned
ChargingStop, this parameter is also required. If not set greater than 0, the route calculation will fail as an invalid parameter error.
-
initialChargeInKilowattHours
public double initialChargeInKilowattHours
Charge level of the vehicle's battery at the start of the route (in kWh). It must be non-negative and less than or equal to the value of
totalCapacityInKilowattHours, otherwise theBatterySpecificationsinstance is considered invalid. Defaults to 0. Note: For a user-plannedChargingStop, this parameter is also required. If not set greater than 0, the route calculation will fail as an an invalid parameter error.
-
targetChargeInKilowattHours
public double targetChargeInKilowattHours
Maximum charge to which the battery should be charged at a charging station (in kWh). It must be positive and less than or equal to the value of
totalCapacityInKilowattHours, otherwise theBatterySpecificationsinstance is considered invalid. Defaults to 0.
-
chargingCurve
@NonNull public java.util.Map<java.lang.Double,java.lang.Double> chargingCurve
Function curve describing the maximum battery charging rate (in kW) at a given charge level (in kWh). Map keys represent charge levels that are non-negative floating point values in units of (kWh). Map values represent charging rate values that are positive floating point values in units of (kW). Given charge levels must cover the entire range of [0,
targetChargeInKilowattHours], otherwise theBatterySpecificationsinstance is considered invalid. The charging curve is considered piecewise constant instead of being interpolated. Defaults to an empty container. Note: For a user-plannedChargingStop, this parameter is also required. If one or more values are not set, the route calculation will fail as an invalid parameter error.
-
connectorTypes
@NonNull public java.util.List<ChargingConnectorType> connectorTypes
List of available charging connector types. It must be at least one charging connector type added, otherwise the
BatterySpecificationsinstance is considered invalid. Defaults to an empty container.
-
minChargeAtChargingStationInKilowattHours
public double minChargeAtChargingStationInKilowattHours
Minimum charge when arriving at a charging station in kWh. It must be non-negative and less than the value of
targetChargeInKilowattHours, otherwise theBatterySpecificationsinstance is considered invalid. Defaults to 0.
-
minChargeAtFirstChargingStationInKilowattHours
@Nullable public java.lang.Double minChargeAtFirstChargingStationInKilowattHours
Minimum charge when arriving at first charging station in kWh. This overrides
minChargeAtChargingStationInKilowattHoursfor the first charging station. If not specified,minChargeAtChargingStationInKilowattHourswill be used for all charging stations, including the first one. Defaults tonull. When initialized, it must be non-negative and less than the value oftargetChargeInKilowattHours, otherwise theBatterySpecificationsinstance is considered invalid. This is usually used when the current charge is too low to reach a charging station withinminChargeAtChargingStationlimits.
-
minChargeAtDestinationInKilowattHours
public double minChargeAtDestinationInKilowattHours
Minimum charge at the final route destination in kWh. It must be non-negative and less than the value of
targetChargeInKilowattHours, otherwise theBatterySpecificationsinstance is considered invalid. Defaults to 0.
-
maxChargingVoltageInVolts
@Nullable public java.lang.Double maxChargingVoltageInVolts
Maximum charging voltage supported by the vehicle's battery in Volts. It must be positive. When omitted, the voltage is determined by the charging station attributes. Defaults to
null.
-
maxChargingCurrentInAmperes
@Nullable public java.lang.Double maxChargingCurrentInAmperes
Maximum charging current supported by the vehicle's battery in Amperes. It must be positive. When omitted, the charging current is determined by the charging station attributes. Defaults to
null.
-
chargingSetupDuration
@NonNull public Duration chargingSetupDuration
Time in seconds spent after arriving at a charging station, but before actually charging, e.g., time spent for payment processing. Defaults to 0 seconds.
-
maxPowerAtLowVoltageInKilowatts
@Nullable public java.lang.Double maxPowerAtLowVoltageInKilowatts
The maximum power in kilowatts at which a vehicle can charge under given these conditions:
- The charging station connector's maximum supply voltage is less than 800 V.
maxChargingVoltageInVoltsis greater than or equal to 800 V. The provided value must be greater than or equal to 0. By default, it is not set. Note: The feature is not supported by theOfflineRoutingEngine.
-
-
Constructor Detail
-
BatterySpecifications
public BatterySpecifications()
Creates a new instance.
-
BatterySpecifications
public BatterySpecifications(double totalCapacityInKilowattHours)
Creates a new instance.
- Parameters:
totalCapacityInKilowattHours-Total capacity of the vehicle's battery (in kWh). It must be positive. Defaults to 0. Note: For a user-planned
ChargingStop, this parameter is also required. If not set greater than 0, the route calculation will fail as an invalid parameter error.
-
BatterySpecifications
public BatterySpecifications(double totalCapacityInKilowattHours, double initialChargeInKilowattHours)Creates a new instance.
- Parameters:
totalCapacityInKilowattHours-Total capacity of the vehicle's battery (in kWh). It must be positive. Defaults to 0. Note: For a user-planned
ChargingStop, this parameter is also required. If not set greater than 0, the route calculation will fail as an invalid parameter error.initialChargeInKilowattHours-Charge level of the vehicle's battery at the start of the route (in kWh). It must be non-negative and less than or equal to the value of
totalCapacityInKilowattHours, otherwise theBatterySpecificationsinstance is considered invalid. Defaults to 0. Note: For a user-plannedChargingStop, this parameter is also required. If not set greater than 0, the route calculation will fail as an an invalid parameter error.
-
BatterySpecifications
public BatterySpecifications(double totalCapacityInKilowattHours, double initialChargeInKilowattHours, double targetChargeInKilowattHours)Creates a new instance.
- Parameters:
totalCapacityInKilowattHours-Total capacity of the vehicle's battery (in kWh). It must be positive. Defaults to 0. Note: For a user-planned
ChargingStop, this parameter is also required. If not set greater than 0, the route calculation will fail as an invalid parameter error.initialChargeInKilowattHours-Charge level of the vehicle's battery at the start of the route (in kWh). It must be non-negative and less than or equal to the value of
totalCapacityInKilowattHours, otherwise theBatterySpecificationsinstance is considered invalid. Defaults to 0. Note: For a user-plannedChargingStop, this parameter is also required. If not set greater than 0, the route calculation will fail as an an invalid parameter error.targetChargeInKilowattHours-Maximum charge to which the battery should be charged at a charging station (in kWh). It must be positive and less than or equal to the value of
totalCapacityInKilowattHours, otherwise theBatterySpecificationsinstance is considered invalid. Defaults to 0.
-
BatterySpecifications
public BatterySpecifications(double totalCapacityInKilowattHours, double initialChargeInKilowattHours, double targetChargeInKilowattHours, @NonNull java.util.Map<java.lang.Double,java.lang.Double> chargingCurve)Creates a new instance.
- Parameters:
totalCapacityInKilowattHours-Total capacity of the vehicle's battery (in kWh). It must be positive. Defaults to 0. Note: For a user-planned
ChargingStop, this parameter is also required. If not set greater than 0, the route calculation will fail as an invalid parameter error.initialChargeInKilowattHours-Charge level of the vehicle's battery at the start of the route (in kWh). It must be non-negative and less than or equal to the value of
totalCapacityInKilowattHours, otherwise theBatterySpecificationsinstance is considered invalid. Defaults to 0. Note: For a user-plannedChargingStop, this parameter is also required. If not set greater than 0, the route calculation will fail as an an invalid parameter error.targetChargeInKilowattHours-Maximum charge to which the battery should be charged at a charging station (in kWh). It must be positive and less than or equal to the value of
totalCapacityInKilowattHours, otherwise theBatterySpecificationsinstance is considered invalid. Defaults to 0.chargingCurve-Function curve describing the maximum battery charging rate (in kW) at a given charge level (in kWh). Map keys represent charge levels that are non-negative floating point values in units of (kWh). Map values represent charging rate values that are positive floating point values in units of (kW). Given charge levels must cover the entire range of [0,
targetChargeInKilowattHours], otherwise theBatterySpecificationsinstance is considered invalid. The charging curve is considered piecewise constant instead of being interpolated. Defaults to an empty container. Note: For a user-plannedChargingStop, this parameter is also required. If one or more values are not set, the route calculation will fail as an invalid parameter error.
-
BatterySpecifications
public BatterySpecifications(double totalCapacityInKilowattHours, double initialChargeInKilowattHours, double targetChargeInKilowattHours, @NonNull java.util.Map<java.lang.Double,java.lang.Double> chargingCurve, @NonNull java.util.List<ChargingConnectorType> connectorTypes)Creates a new instance.
- Parameters:
totalCapacityInKilowattHours-Total capacity of the vehicle's battery (in kWh). It must be positive. Defaults to 0. Note: For a user-planned
ChargingStop, this parameter is also required. If not set greater than 0, the route calculation will fail as an invalid parameter error.initialChargeInKilowattHours-Charge level of the vehicle's battery at the start of the route (in kWh). It must be non-negative and less than or equal to the value of
totalCapacityInKilowattHours, otherwise theBatterySpecificationsinstance is considered invalid. Defaults to 0. Note: For a user-plannedChargingStop, this parameter is also required. If not set greater than 0, the route calculation will fail as an an invalid parameter error.targetChargeInKilowattHours-Maximum charge to which the battery should be charged at a charging station (in kWh). It must be positive and less than or equal to the value of
totalCapacityInKilowattHours, otherwise theBatterySpecificationsinstance is considered invalid. Defaults to 0.chargingCurve-Function curve describing the maximum battery charging rate (in kW) at a given charge level (in kWh). Map keys represent charge levels that are non-negative floating point values in units of (kWh). Map values represent charging rate values that are positive floating point values in units of (kW). Given charge levels must cover the entire range of [0,
targetChargeInKilowattHours], otherwise theBatterySpecificationsinstance is considered invalid. The charging curve is considered piecewise constant instead of being interpolated. Defaults to an empty container. Note: For a user-plannedChargingStop, this parameter is also required. If one or more values are not set, the route calculation will fail as an invalid parameter error.connectorTypes-List of available charging connector types. It must be at least one charging connector type added, otherwise the
BatterySpecificationsinstance is considered invalid. Defaults to an empty container.
-
BatterySpecifications
public BatterySpecifications(double totalCapacityInKilowattHours, double initialChargeInKilowattHours, double targetChargeInKilowattHours, @NonNull java.util.Map<java.lang.Double,java.lang.Double> chargingCurve, @NonNull java.util.List<ChargingConnectorType> connectorTypes, double minChargeAtChargingStationInKilowattHours)Creates a new instance.
- Parameters:
totalCapacityInKilowattHours-Total capacity of the vehicle's battery (in kWh). It must be positive. Defaults to 0. Note: For a user-planned
ChargingStop, this parameter is also required. If not set greater than 0, the route calculation will fail as an invalid parameter error.initialChargeInKilowattHours-Charge level of the vehicle's battery at the start of the route (in kWh). It must be non-negative and less than or equal to the value of
totalCapacityInKilowattHours, otherwise theBatterySpecificationsinstance is considered invalid. Defaults to 0. Note: For a user-plannedChargingStop, this parameter is also required. If not set greater than 0, the route calculation will fail as an an invalid parameter error.targetChargeInKilowattHours-Maximum charge to which the battery should be charged at a charging station (in kWh). It must be positive and less than or equal to the value of
totalCapacityInKilowattHours, otherwise theBatterySpecificationsinstance is considered invalid. Defaults to 0.chargingCurve-Function curve describing the maximum battery charging rate (in kW) at a given charge level (in kWh). Map keys represent charge levels that are non-negative floating point values in units of (kWh). Map values represent charging rate values that are positive floating point values in units of (kW). Given charge levels must cover the entire range of [0,
targetChargeInKilowattHours], otherwise theBatterySpecificationsinstance is considered invalid. The charging curve is considered piecewise constant instead of being interpolated. Defaults to an empty container. Note: For a user-plannedChargingStop, this parameter is also required. If one or more values are not set, the route calculation will fail as an invalid parameter error.connectorTypes-List of available charging connector types. It must be at least one charging connector type added, otherwise the
BatterySpecificationsinstance is considered invalid. Defaults to an empty container.minChargeAtChargingStationInKilowattHours-Minimum charge when arriving at a charging station in kWh. It must be non-negative and less than the value of
targetChargeInKilowattHours, otherwise theBatterySpecificationsinstance is considered invalid. Defaults to 0.
-
BatterySpecifications
public BatterySpecifications(double totalCapacityInKilowattHours, double initialChargeInKilowattHours, double targetChargeInKilowattHours, @NonNull java.util.Map<java.lang.Double,java.lang.Double> chargingCurve, @NonNull java.util.List<ChargingConnectorType> connectorTypes, double minChargeAtChargingStationInKilowattHours, @Nullable java.lang.Double minChargeAtFirstChargingStationInKilowattHours)Creates a new instance.
- Parameters:
totalCapacityInKilowattHours-Total capacity of the vehicle's battery (in kWh). It must be positive. Defaults to 0. Note: For a user-planned
ChargingStop, this parameter is also required. If not set greater than 0, the route calculation will fail as an invalid parameter error.initialChargeInKilowattHours-Charge level of the vehicle's battery at the start of the route (in kWh). It must be non-negative and less than or equal to the value of
totalCapacityInKilowattHours, otherwise theBatterySpecificationsinstance is considered invalid. Defaults to 0. Note: For a user-plannedChargingStop, this parameter is also required. If not set greater than 0, the route calculation will fail as an an invalid parameter error.targetChargeInKilowattHours-Maximum charge to which the battery should be charged at a charging station (in kWh). It must be positive and less than or equal to the value of
totalCapacityInKilowattHours, otherwise theBatterySpecificationsinstance is considered invalid. Defaults to 0.chargingCurve-Function curve describing the maximum battery charging rate (in kW) at a given charge level (in kWh). Map keys represent charge levels that are non-negative floating point values in units of (kWh). Map values represent charging rate values that are positive floating point values in units of (kW). Given charge levels must cover the entire range of [0,
targetChargeInKilowattHours], otherwise theBatterySpecificationsinstance is considered invalid. The charging curve is considered piecewise constant instead of being interpolated. Defaults to an empty container. Note: For a user-plannedChargingStop, this parameter is also required. If one or more values are not set, the route calculation will fail as an invalid parameter error.connectorTypes-List of available charging connector types. It must be at least one charging connector type added, otherwise the
BatterySpecificationsinstance is considered invalid. Defaults to an empty container.minChargeAtChargingStationInKilowattHours-Minimum charge when arriving at a charging station in kWh. It must be non-negative and less than the value of
targetChargeInKilowattHours, otherwise theBatterySpecificationsinstance is considered invalid. Defaults to 0.minChargeAtFirstChargingStationInKilowattHours-Minimum charge when arriving at first charging station in kWh. This overrides
minChargeAtChargingStationInKilowattHoursfor the first charging station. If not specified,minChargeAtChargingStationInKilowattHourswill be used for all charging stations, including the first one. Defaults tonull. When initialized, it must be non-negative and less than the value oftargetChargeInKilowattHours, otherwise theBatterySpecificationsinstance is considered invalid. This is usually used when the current charge is too low to reach a charging station withinminChargeAtChargingStationlimits.
-
BatterySpecifications
public BatterySpecifications(double totalCapacityInKilowattHours, double initialChargeInKilowattHours, double targetChargeInKilowattHours, @NonNull java.util.Map<java.lang.Double,java.lang.Double> chargingCurve, @NonNull java.util.List<ChargingConnectorType> connectorTypes, double minChargeAtChargingStationInKilowattHours, @Nullable java.lang.Double minChargeAtFirstChargingStationInKilowattHours, double minChargeAtDestinationInKilowattHours)Creates a new instance.
- Parameters:
totalCapacityInKilowattHours-Total capacity of the vehicle's battery (in kWh). It must be positive. Defaults to 0. Note: For a user-planned
ChargingStop, this parameter is also required. If not set greater than 0, the route calculation will fail as an invalid parameter error.initialChargeInKilowattHours-Charge level of the vehicle's battery at the start of the route (in kWh). It must be non-negative and less than or equal to the value of
totalCapacityInKilowattHours, otherwise theBatterySpecificationsinstance is considered invalid. Defaults to 0. Note: For a user-plannedChargingStop, this parameter is also required. If not set greater than 0, the route calculation will fail as an an invalid parameter error.targetChargeInKilowattHours-Maximum charge to which the battery should be charged at a charging station (in kWh). It must be positive and less than or equal to the value of
totalCapacityInKilowattHours, otherwise theBatterySpecificationsinstance is considered invalid. Defaults to 0.chargingCurve-Function curve describing the maximum battery charging rate (in kW) at a given charge level (in kWh). Map keys represent charge levels that are non-negative floating point values in units of (kWh). Map values represent charging rate values that are positive floating point values in units of (kW). Given charge levels must cover the entire range of [0,
targetChargeInKilowattHours], otherwise theBatterySpecificationsinstance is considered invalid. The charging curve is considered piecewise constant instead of being interpolated. Defaults to an empty container. Note: For a user-plannedChargingStop, this parameter is also required. If one or more values are not set, the route calculation will fail as an invalid parameter error.connectorTypes-List of available charging connector types. It must be at least one charging connector type added, otherwise the
BatterySpecificationsinstance is considered invalid. Defaults to an empty container.minChargeAtChargingStationInKilowattHours-Minimum charge when arriving at a charging station in kWh. It must be non-negative and less than the value of
targetChargeInKilowattHours, otherwise theBatterySpecificationsinstance is considered invalid. Defaults to 0.minChargeAtFirstChargingStationInKilowattHours-Minimum charge when arriving at first charging station in kWh. This overrides
minChargeAtChargingStationInKilowattHoursfor the first charging station. If not specified,minChargeAtChargingStationInKilowattHourswill be used for all charging stations, including the first one. Defaults tonull. When initialized, it must be non-negative and less than the value oftargetChargeInKilowattHours, otherwise theBatterySpecificationsinstance is considered invalid. This is usually used when the current charge is too low to reach a charging station withinminChargeAtChargingStationlimits.minChargeAtDestinationInKilowattHours-Minimum charge at the final route destination in kWh. It must be non-negative and less than the value of
targetChargeInKilowattHours, otherwise theBatterySpecificationsinstance is considered invalid. Defaults to 0.
-
BatterySpecifications
public BatterySpecifications(double totalCapacityInKilowattHours, double initialChargeInKilowattHours, double targetChargeInKilowattHours, @NonNull java.util.Map<java.lang.Double,java.lang.Double> chargingCurve, @NonNull java.util.List<ChargingConnectorType> connectorTypes, double minChargeAtChargingStationInKilowattHours, @Nullable java.lang.Double minChargeAtFirstChargingStationInKilowattHours, double minChargeAtDestinationInKilowattHours, @Nullable java.lang.Double maxChargingVoltageInVolts)Creates a new instance.
- Parameters:
totalCapacityInKilowattHours-Total capacity of the vehicle's battery (in kWh). It must be positive. Defaults to 0. Note: For a user-planned
ChargingStop, this parameter is also required. If not set greater than 0, the route calculation will fail as an invalid parameter error.initialChargeInKilowattHours-Charge level of the vehicle's battery at the start of the route (in kWh). It must be non-negative and less than or equal to the value of
totalCapacityInKilowattHours, otherwise theBatterySpecificationsinstance is considered invalid. Defaults to 0. Note: For a user-plannedChargingStop, this parameter is also required. If not set greater than 0, the route calculation will fail as an an invalid parameter error.targetChargeInKilowattHours-Maximum charge to which the battery should be charged at a charging station (in kWh). It must be positive and less than or equal to the value of
totalCapacityInKilowattHours, otherwise theBatterySpecificationsinstance is considered invalid. Defaults to 0.chargingCurve-Function curve describing the maximum battery charging rate (in kW) at a given charge level (in kWh). Map keys represent charge levels that are non-negative floating point values in units of (kWh). Map values represent charging rate values that are positive floating point values in units of (kW). Given charge levels must cover the entire range of [0,
targetChargeInKilowattHours], otherwise theBatterySpecificationsinstance is considered invalid. The charging curve is considered piecewise constant instead of being interpolated. Defaults to an empty container. Note: For a user-plannedChargingStop, this parameter is also required. If one or more values are not set, the route calculation will fail as an invalid parameter error.connectorTypes-List of available charging connector types. It must be at least one charging connector type added, otherwise the
BatterySpecificationsinstance is considered invalid. Defaults to an empty container.minChargeAtChargingStationInKilowattHours-Minimum charge when arriving at a charging station in kWh. It must be non-negative and less than the value of
targetChargeInKilowattHours, otherwise theBatterySpecificationsinstance is considered invalid. Defaults to 0.minChargeAtFirstChargingStationInKilowattHours-Minimum charge when arriving at first charging station in kWh. This overrides
minChargeAtChargingStationInKilowattHoursfor the first charging station. If not specified,minChargeAtChargingStationInKilowattHourswill be used for all charging stations, including the first one. Defaults tonull. When initialized, it must be non-negative and less than the value oftargetChargeInKilowattHours, otherwise theBatterySpecificationsinstance is considered invalid. This is usually used when the current charge is too low to reach a charging station withinminChargeAtChargingStationlimits.minChargeAtDestinationInKilowattHours-Minimum charge at the final route destination in kWh. It must be non-negative and less than the value of
targetChargeInKilowattHours, otherwise theBatterySpecificationsinstance is considered invalid. Defaults to 0.maxChargingVoltageInVolts-Maximum charging voltage supported by the vehicle's battery in Volts. It must be positive. When omitted, the voltage is determined by the charging station attributes. Defaults to
null.
-
BatterySpecifications
public BatterySpecifications(double totalCapacityInKilowattHours, double initialChargeInKilowattHours, double targetChargeInKilowattHours, @NonNull java.util.Map<java.lang.Double,java.lang.Double> chargingCurve, @NonNull java.util.List<ChargingConnectorType> connectorTypes, double minChargeAtChargingStationInKilowattHours, @Nullable java.lang.Double minChargeAtFirstChargingStationInKilowattHours, double minChargeAtDestinationInKilowattHours, @Nullable java.lang.Double maxChargingVoltageInVolts, @Nullable java.lang.Double maxChargingCurrentInAmperes)Creates a new instance.
- Parameters:
totalCapacityInKilowattHours-Total capacity of the vehicle's battery (in kWh). It must be positive. Defaults to 0. Note: For a user-planned
ChargingStop, this parameter is also required. If not set greater than 0, the route calculation will fail as an invalid parameter error.initialChargeInKilowattHours-Charge level of the vehicle's battery at the start of the route (in kWh). It must be non-negative and less than or equal to the value of
totalCapacityInKilowattHours, otherwise theBatterySpecificationsinstance is considered invalid. Defaults to 0. Note: For a user-plannedChargingStop, this parameter is also required. If not set greater than 0, the route calculation will fail as an an invalid parameter error.targetChargeInKilowattHours-Maximum charge to which the battery should be charged at a charging station (in kWh). It must be positive and less than or equal to the value of
totalCapacityInKilowattHours, otherwise theBatterySpecificationsinstance is considered invalid. Defaults to 0.chargingCurve-Function curve describing the maximum battery charging rate (in kW) at a given charge level (in kWh). Map keys represent charge levels that are non-negative floating point values in units of (kWh). Map values represent charging rate values that are positive floating point values in units of (kW). Given charge levels must cover the entire range of [0,
targetChargeInKilowattHours], otherwise theBatterySpecificationsinstance is considered invalid. The charging curve is considered piecewise constant instead of being interpolated. Defaults to an empty container. Note: For a user-plannedChargingStop, this parameter is also required. If one or more values are not set, the route calculation will fail as an invalid parameter error.connectorTypes-List of available charging connector types. It must be at least one charging connector type added, otherwise the
BatterySpecificationsinstance is considered invalid. Defaults to an empty container.minChargeAtChargingStationInKilowattHours-Minimum charge when arriving at a charging station in kWh. It must be non-negative and less than the value of
targetChargeInKilowattHours, otherwise theBatterySpecificationsinstance is considered invalid. Defaults to 0.minChargeAtFirstChargingStationInKilowattHours-Minimum charge when arriving at first charging station in kWh. This overrides
minChargeAtChargingStationInKilowattHoursfor the first charging station. If not specified,minChargeAtChargingStationInKilowattHourswill be used for all charging stations, including the first one. Defaults tonull. When initialized, it must be non-negative and less than the value oftargetChargeInKilowattHours, otherwise theBatterySpecificationsinstance is considered invalid. This is usually used when the current charge is too low to reach a charging station withinminChargeAtChargingStationlimits.minChargeAtDestinationInKilowattHours-Minimum charge at the final route destination in kWh. It must be non-negative and less than the value of
targetChargeInKilowattHours, otherwise theBatterySpecificationsinstance is considered invalid. Defaults to 0.maxChargingVoltageInVolts-Maximum charging voltage supported by the vehicle's battery in Volts. It must be positive. When omitted, the voltage is determined by the charging station attributes. Defaults to
null.maxChargingCurrentInAmperes-Maximum charging current supported by the vehicle's battery in Amperes. It must be positive. When omitted, the charging current is determined by the charging station attributes. Defaults to
null.
-
BatterySpecifications
public BatterySpecifications(double totalCapacityInKilowattHours, double initialChargeInKilowattHours, double targetChargeInKilowattHours, @NonNull java.util.Map<java.lang.Double,java.lang.Double> chargingCurve, @NonNull java.util.List<ChargingConnectorType> connectorTypes, double minChargeAtChargingStationInKilowattHours, @Nullable java.lang.Double minChargeAtFirstChargingStationInKilowattHours, double minChargeAtDestinationInKilowattHours, @Nullable java.lang.Double maxChargingVoltageInVolts, @Nullable java.lang.Double maxChargingCurrentInAmperes, @NonNull Duration chargingSetupDuration)Creates a new instance.
- Parameters:
totalCapacityInKilowattHours-Total capacity of the vehicle's battery (in kWh). It must be positive. Defaults to 0. Note: For a user-planned
ChargingStop, this parameter is also required. If not set greater than 0, the route calculation will fail as an invalid parameter error.initialChargeInKilowattHours-Charge level of the vehicle's battery at the start of the route (in kWh). It must be non-negative and less than or equal to the value of
totalCapacityInKilowattHours, otherwise theBatterySpecificationsinstance is considered invalid. Defaults to 0. Note: For a user-plannedChargingStop, this parameter is also required. If not set greater than 0, the route calculation will fail as an an invalid parameter error.targetChargeInKilowattHours-Maximum charge to which the battery should be charged at a charging station (in kWh). It must be positive and less than or equal to the value of
totalCapacityInKilowattHours, otherwise theBatterySpecificationsinstance is considered invalid. Defaults to 0.chargingCurve-Function curve describing the maximum battery charging rate (in kW) at a given charge level (in kWh). Map keys represent charge levels that are non-negative floating point values in units of (kWh). Map values represent charging rate values that are positive floating point values in units of (kW). Given charge levels must cover the entire range of [0,
targetChargeInKilowattHours], otherwise theBatterySpecificationsinstance is considered invalid. The charging curve is considered piecewise constant instead of being interpolated. Defaults to an empty container. Note: For a user-plannedChargingStop, this parameter is also required. If one or more values are not set, the route calculation will fail as an invalid parameter error.connectorTypes-List of available charging connector types. It must be at least one charging connector type added, otherwise the
BatterySpecificationsinstance is considered invalid. Defaults to an empty container.minChargeAtChargingStationInKilowattHours-Minimum charge when arriving at a charging station in kWh. It must be non-negative and less than the value of
targetChargeInKilowattHours, otherwise theBatterySpecificationsinstance is considered invalid. Defaults to 0.minChargeAtFirstChargingStationInKilowattHours-Minimum charge when arriving at first charging station in kWh. This overrides
minChargeAtChargingStationInKilowattHoursfor the first charging station. If not specified,minChargeAtChargingStationInKilowattHourswill be used for all charging stations, including the first one. Defaults tonull. When initialized, it must be non-negative and less than the value oftargetChargeInKilowattHours, otherwise theBatterySpecificationsinstance is considered invalid. This is usually used when the current charge is too low to reach a charging station withinminChargeAtChargingStationlimits.minChargeAtDestinationInKilowattHours-Minimum charge at the final route destination in kWh. It must be non-negative and less than the value of
targetChargeInKilowattHours, otherwise theBatterySpecificationsinstance is considered invalid. Defaults to 0.maxChargingVoltageInVolts-Maximum charging voltage supported by the vehicle's battery in Volts. It must be positive. When omitted, the voltage is determined by the charging station attributes. Defaults to
null.maxChargingCurrentInAmperes-Maximum charging current supported by the vehicle's battery in Amperes. It must be positive. When omitted, the charging current is determined by the charging station attributes. Defaults to
null.chargingSetupDuration-Time in seconds spent after arriving at a charging station, but before actually charging, e.g., time spent for payment processing. Defaults to 0 seconds.
-
BatterySpecifications
public BatterySpecifications(double totalCapacityInKilowattHours, double initialChargeInKilowattHours, double targetChargeInKilowattHours, @NonNull java.util.Map<java.lang.Double,java.lang.Double> chargingCurve, @NonNull java.util.List<ChargingConnectorType> connectorTypes, double minChargeAtChargingStationInKilowattHours, @Nullable java.lang.Double minChargeAtFirstChargingStationInKilowattHours, double minChargeAtDestinationInKilowattHours, @Nullable java.lang.Double maxChargingVoltageInVolts, @Nullable java.lang.Double maxChargingCurrentInAmperes, @NonNull Duration chargingSetupDuration, @Nullable java.lang.Double maxPowerAtLowVoltageInKilowatts)Creates a new instance.
- Parameters:
totalCapacityInKilowattHours-Total capacity of the vehicle's battery (in kWh). It must be positive. Defaults to 0. Note: For a user-planned
ChargingStop, this parameter is also required. If not set greater than 0, the route calculation will fail as an invalid parameter error.initialChargeInKilowattHours-Charge level of the vehicle's battery at the start of the route (in kWh). It must be non-negative and less than or equal to the value of
totalCapacityInKilowattHours, otherwise theBatterySpecificationsinstance is considered invalid. Defaults to 0. Note: For a user-plannedChargingStop, this parameter is also required. If not set greater than 0, the route calculation will fail as an an invalid parameter error.targetChargeInKilowattHours-Maximum charge to which the battery should be charged at a charging station (in kWh). It must be positive and less than or equal to the value of
totalCapacityInKilowattHours, otherwise theBatterySpecificationsinstance is considered invalid. Defaults to 0.chargingCurve-Function curve describing the maximum battery charging rate (in kW) at a given charge level (in kWh). Map keys represent charge levels that are non-negative floating point values in units of (kWh). Map values represent charging rate values that are positive floating point values in units of (kW). Given charge levels must cover the entire range of [0,
targetChargeInKilowattHours], otherwise theBatterySpecificationsinstance is considered invalid. The charging curve is considered piecewise constant instead of being interpolated. Defaults to an empty container. Note: For a user-plannedChargingStop, this parameter is also required. If one or more values are not set, the route calculation will fail as an invalid parameter error.connectorTypes-List of available charging connector types. It must be at least one charging connector type added, otherwise the
BatterySpecificationsinstance is considered invalid. Defaults to an empty container.minChargeAtChargingStationInKilowattHours-Minimum charge when arriving at a charging station in kWh. It must be non-negative and less than the value of
targetChargeInKilowattHours, otherwise theBatterySpecificationsinstance is considered invalid. Defaults to 0.minChargeAtFirstChargingStationInKilowattHours-Minimum charge when arriving at first charging station in kWh. This overrides
minChargeAtChargingStationInKilowattHoursfor the first charging station. If not specified,minChargeAtChargingStationInKilowattHourswill be used for all charging stations, including the first one. Defaults tonull. When initialized, it must be non-negative and less than the value oftargetChargeInKilowattHours, otherwise theBatterySpecificationsinstance is considered invalid. This is usually used when the current charge is too low to reach a charging station withinminChargeAtChargingStationlimits.minChargeAtDestinationInKilowattHours-Minimum charge at the final route destination in kWh. It must be non-negative and less than the value of
targetChargeInKilowattHours, otherwise theBatterySpecificationsinstance is considered invalid. Defaults to 0.maxChargingVoltageInVolts-Maximum charging voltage supported by the vehicle's battery in Volts. It must be positive. When omitted, the voltage is determined by the charging station attributes. Defaults to
null.maxChargingCurrentInAmperes-Maximum charging current supported by the vehicle's battery in Amperes. It must be positive. When omitted, the charging current is determined by the charging station attributes. Defaults to
null.chargingSetupDuration-Time in seconds spent after arriving at a charging station, but before actually charging, e.g., time spent for payment processing. Defaults to 0 seconds.
maxPowerAtLowVoltageInKilowatts-The maximum power in kilowatts at which a vehicle can charge under given these conditions:
- The charging station connector's maximum supply voltage is less than 800 V.
maxChargingVoltageInVoltsis greater than or equal to 800 V. The provided value must be greater than or equal to 0. By default, it is not set. Note: The feature is not supported by theOfflineRoutingEngine.
-
-