public class CommonParamsBuilder extends java.lang.Object implements CommonParams
| Constructor and Description |
|---|
CommonParamsBuilder() |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Remove all internal references, clear memory, invalidate the native handle.
|
long |
getNativeHandle()
Get unique query id, valid until
CommonParams.dispose() is called. |
CommonParamsBuilder |
withAccelerationEfficiency(double accelerationEfficiency)
Specifies the efficiency of converting chemical energy stored in fuel to kinetic
energy when the vehicle accelerates (i.e.
|
CommonParams |
withAllowVignettes(java.util.List<java.lang.String> allowVignettes)
A list of 3-character ISO 3166-1 alpha-3 country codes of countries in which toll roads with
vignettes are allowed.
|
CommonParamsBuilder |
withAuxiliaryPowerInKW(double auxiliaryPowerInKW)
Specifies the amount of power consumed for sustaining auxiliary systems, in kilowatts (kW).
|
CommonParamsBuilder |
withAuxiliaryPowerInLitersPerHour(double auxiliaryPowerInLitersPerHour)
Specifies the amount of fuel consumed for sustaining auxiliary systems of the vehicle, in
liters per hour.
|
CommonParams |
withAvoidAreas(java.util.List<com.tomtom.online.sdk.common.location.BoundingBox> avoidAreas)
A list of rectangles that define areas that are to be avoided during reachable range
calculation.
|
CommonParamsBuilder |
withAvoidType(Avoid avoidType)
Specifies what the route calculation should try to avoid when determining the route.
|
CommonParamsBuilder |
withAvoidVignettes(java.util.List<java.lang.String> avoidVignettes)
A list of 3-character ISO 3166-1 alpha-3 country codes of countries in which all toll roads
with vignettes are to be avoided.
|
CommonParamsBuilder |
withConsiderTraffic(boolean considerTraffic)
Specifies if all available traffic information should be considered during routing.
|
CommonParamsBuilder |
withConstantSpeedConsumptionInKWhPerHundredKm(SpeedToConsumptionMap constantSpeedConsumptionInKWhPerHundredKm)
Specifies the speed-dependent component of consumption.
|
CommonParamsBuilder |
withConstantSpeedConsumptionInLitersPerHundredKm(SpeedToConsumptionMap constantSpeedConsumptionInLitersPerHundredKm)
Specifies the speed-dependent component of consumption.
|
CommonParamsBuilder |
withCurrentChargeInKWh(double currentChargeInKWh)
Specifies the current electric energy supply in kilowatt hours (kWh).
|
CommonParamsBuilder |
withCurrentFuelInLiters(double currentFuelInLiters)
Specifies the current supply of fuel in liters.
|
CommonParamsBuilder |
withDecelerationEfficiency(double decelerationEfficiency)
Specifies the efficiency of converting kinetic energy to saved (not consumed) fuel when the
vehicle decelerates (i.e.
|
CommonParamsBuilder |
withDepartAt(java.util.Date departAt)
Specifies the departure time.
|
CommonParamsBuilder |
withDownhillEfficiency(double downhillEfficiency)
Specifies the efficiency of converting potential energy to saved (not consumed) fuel when the
vehicle loses elevation (i.e.
|
CommonParamsBuilder |
withFuelEnergyDensityInMJoulesPerLiter(double fuelEnergyDensityInMJoulesPerLiter)
Specifies the amount of chemical energy stored in one liter of fuel in megajoules (MJ).
|
CommonParamsBuilder |
withHilliness(Hilliness hilliness)
Specifies the hilliness type for route calculation.
|
CommonParamsBuilder |
withIsVehicleCommercial(boolean isVehicleCommercial)
Specifies if the vehicle is used for commercial to calculate route.
|
CommonParamsBuilder |
withMaxChargeInKWh(double maxChargeInKWh)
Specifies the capacity of the vehicle's battery in kilowatt hours (kWh).
|
CommonParamsBuilder |
withReport(Report report)
Specifies what data should be reported for diagnostic purposes.
|
CommonParamsBuilder |
withRouteType(RouteType routeType)
Specifies the route type.
|
CommonParamsBuilder |
withTravelMode(TravelMode travelMode)
Specifies the travel mode for route calculation.
|
CommonParamsBuilder |
withUphillEfficiency(double uphillEfficiency)
Specifies the efficiency of converting chemical energy stored in fuel to potential energy
when the vehicle gains elevation (i.e.
|
CommonParamsBuilder |
withVehicleAxleWeightInKg(int vehicleAxleWeightInKg)
Specifies the vehicle axle weight for route calculation.
|
CommonParamsBuilder |
withVehicleEngineType(VehicleEngineType vehicleEngineType)
Specifies the vehicle engine type for route query.
|
CommonParamsBuilder |
withVehicleHeightInMeters(double vehicleHeightInMeters)
Specifies the vehicle height for route calculation.
|
CommonParamsBuilder |
withVehicleLengthInMeters(double vehicleLengthInMeters)
Specifies the vehicle length for route calculation.
|
CommonParamsBuilder |
withVehicleLoadType(VehicleLoadType vehicleLoadType)
Specifies the vehicle load type for route calculation.
|
CommonParamsBuilder |
withVehicleMaxSpeedInKph(int vehicleMaxSpeedInKph)
Specifies the vehicle max speed for route calculation.
|
CommonParamsBuilder |
withVehicleWeightInKg(int vehicleWeightInKg)
Specifies the vehicle weight in kilograms for route calculation.
|
CommonParamsBuilder |
withVehicleWidthInMeters(double vehicleWidthInMeters)
Specifies the vehicle width for route calculation.
|
CommonParamsBuilder |
withWindingness(Windingness windingness)
Specifies the windingness type for route calculation.
|
public long getNativeHandle()
CommonParamsCommonParams.dispose() is called.getNativeHandle in interface CommonParamspublic void dispose()
CommonParamsdispose in interface CommonParamspublic CommonParamsBuilder withReport(Report report)
CommonParamswithReport in interface CommonParamspublic CommonParamsBuilder withDepartAt(java.util.Date departAt)
CommonParamswithDepartAt in interface CommonParamspublic CommonParamsBuilder withRouteType(RouteType routeType)
CommonParamswithRouteType in interface CommonParamspublic CommonParamsBuilder withConsiderTraffic(boolean considerTraffic)
CommonParamswithConsiderTraffic in interface CommonParamspublic CommonParamsBuilder withAvoidType(Avoid avoidType)
CommonParamswithAvoidType in interface CommonParamspublic CommonParamsBuilder withTravelMode(TravelMode travelMode)
CommonParamswithTravelMode in interface CommonParamspublic CommonParamsBuilder withHilliness(Hilliness hilliness)
CommonParamswithHilliness in interface CommonParamspublic CommonParamsBuilder withWindingness(Windingness windingness)
CommonParamswithWindingness in interface CommonParamspublic CommonParamsBuilder withVehicleMaxSpeedInKph(int vehicleMaxSpeedInKph)
CommonParamswithVehicleMaxSpeedInKph in interface CommonParamspublic CommonParamsBuilder withVehicleWeightInKg(int vehicleWeightInKg)
CommonParamswithVehicleWeightInKg in interface CommonParamspublic CommonParamsBuilder withVehicleAxleWeightInKg(int vehicleAxleWeightInKg)
CommonParamswithVehicleAxleWeightInKg in interface CommonParamspublic CommonParamsBuilder withVehicleLengthInMeters(double vehicleLengthInMeters)
CommonParamswithVehicleLengthInMeters in interface CommonParamspublic CommonParamsBuilder withVehicleWidthInMeters(double vehicleWidthInMeters)
CommonParamswithVehicleWidthInMeters in interface CommonParamspublic CommonParamsBuilder withVehicleHeightInMeters(double vehicleHeightInMeters)
CommonParamswithVehicleHeightInMeters in interface CommonParamspublic CommonParamsBuilder withIsVehicleCommercial(boolean isVehicleCommercial)
CommonParamswithIsVehicleCommercial in interface CommonParamspublic CommonParamsBuilder withVehicleLoadType(VehicleLoadType vehicleLoadType)
CommonParamswithVehicleLoadType in interface CommonParamspublic CommonParamsBuilder withVehicleEngineType(VehicleEngineType vehicleEngineType)
CommonParamswithVehicleEngineType in interface CommonParamspublic CommonParamsBuilder withConstantSpeedConsumptionInLitersPerHundredKm(SpeedToConsumptionMap constantSpeedConsumptionInLitersPerHundredKm)
CommonParamswithConstantSpeedConsumptionInLitersPerHundredKm in interface CommonParamsconstantSpeedConsumptionInLitersPerHundredKm - constraints: size - [1, 25], consumption
value - [0.01, 100000.0]public CommonParamsBuilder withCurrentFuelInLiters(double currentFuelInLiters)
CommonParamswithCurrentFuelInLiters in interface CommonParamspublic CommonParamsBuilder withAuxiliaryPowerInLitersPerHour(double auxiliaryPowerInLitersPerHour)
CommonParamswithAuxiliaryPowerInLitersPerHour in interface CommonParamspublic CommonParamsBuilder withFuelEnergyDensityInMJoulesPerLiter(double fuelEnergyDensityInMJoulesPerLiter)
CommonParamswithFuelEnergyDensityInMJoulesPerLiter in interface CommonParamspublic CommonParamsBuilder withAccelerationEfficiency(double accelerationEfficiency)
CommonParamsCommonParams.withDecelerationEfficiency(double).
If used, CommonParams.withVehicleWeightInKg(int) has to be used as well.withAccelerationEfficiency in interface CommonParamsaccelerationEfficiency - valid values: [0.0, 1/decelerationEfficiency]public CommonParamsBuilder withDecelerationEfficiency(double decelerationEfficiency)
CommonParamsCommonParams.withAccelerationEfficiency(double).
If used, CommonParams.withVehicleWeightInKg(int) has to be used as well.withDecelerationEfficiency in interface CommonParamsdecelerationEfficiency - valid values: [0.0, 1/accelerationEfficiency]public CommonParamsBuilder withUphillEfficiency(double uphillEfficiency)
CommonParamsCommonParams.withDownhillEfficiency(double).
If used, CommonParams.withVehicleWeightInKg(int) has to be used as well.withUphillEfficiency in interface CommonParamsuphillEfficiency - valid values: [0.0, 1/downhillEfficiency]public CommonParamsBuilder withDownhillEfficiency(double downhillEfficiency)
CommonParamsCommonParams.withUphillEfficiency(double).
If used, CommonParams.withVehicleWeightInKg(int) has to be used as well.withDownhillEfficiency in interface CommonParamsdownhillEfficiency - valid values: [0.0, 1/uphillEfficiency]public CommonParamsBuilder withConstantSpeedConsumptionInKWhPerHundredKm(SpeedToConsumptionMap constantSpeedConsumptionInKWhPerHundredKm)
CommonParamswithConstantSpeedConsumptionInKWhPerHundredKm in interface CommonParamsconstantSpeedConsumptionInKWhPerHundredKm - constraints: size - [1, 25], consumption
value - [0.01, 100000.0]public CommonParamsBuilder withCurrentChargeInKWh(double currentChargeInKWh)
CommonParamsCommonParams.withMaxChargeInKWh(double).withCurrentChargeInKWh in interface CommonParamspublic CommonParamsBuilder withMaxChargeInKWh(double maxChargeInKWh)
CommonParamsCommonParams.withCurrentChargeInKWh(double).withMaxChargeInKWh in interface CommonParamspublic CommonParamsBuilder withAuxiliaryPowerInKW(double auxiliaryPowerInKW)
CommonParamswithAuxiliaryPowerInKW in interface CommonParamspublic CommonParamsBuilder withAvoidVignettes(@NonNull java.util.List<java.lang.String> avoidVignettes)
CommonParamswithAvoidVignettes in interface CommonParamspublic CommonParams withAllowVignettes(java.util.List<java.lang.String> allowVignettes)
CommonParamswithAllowVignettes in interface CommonParamspublic CommonParams withAvoidAreas(java.util.List<com.tomtom.online.sdk.common.location.BoundingBox> avoidAreas)
CommonParamswithAvoidAreas in interface CommonParams