public class ReachableRangeParamsBuilder extends java.lang.Object implements ReachableRangeParams
ReachableRangeParams
interface.Constructor and Description |
---|
ReachableRangeParamsBuilder(LatLng origin)
Creates an instance of ReachableRangeParamsBuilder with a given point of origin.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
long |
getNativeHandle() |
ReachableRangeParams |
withEnergyBudgetInKWh(java.lang.Double energyBudgetInKWh)
Electric energy budget in kilowatt hours (kWh) that determines the maximum range that can be
traveled using the specified Electric Consumption Model.
|
ReachableRangeParams |
withFuelBudgetInLiters(java.lang.Double fuelBudgetInLiters)
Fuel budget in liters that determines the maximum range that can be traveled using the
specified Combustion Consumption Model.
|
ReachableRangeParams |
withTimeBudgetInSeconds(java.lang.Double timeBudgetInSeconds)
Time budget in seconds that determines the maximum range that can be traveled within a given
time.
|
public ReachableRangeParamsBuilder(LatLng origin) throws java.lang.IllegalArgumentException
origin
- The point from which the range calculation should start.java.lang.IllegalArgumentException
public long getNativeHandle()
getNativeHandle
in interface com.tomtom.online.sdk.common.jni.JniNativeHandleOwner
public void dispose()
dispose
in interface com.tomtom.online.sdk.common.jni.JniNativeHandleOwner
@NonNull public ReachableRangeParams withFuelBudgetInLiters(java.lang.Double fuelBudgetInLiters)
ReachableRangeParams
ReachableRangeParams.withTimeBudgetInSeconds(Double)
is not used.withFuelBudgetInLiters
in interface ReachableRangeParams
@NonNull public ReachableRangeParams withEnergyBudgetInKWh(java.lang.Double energyBudgetInKWh)
ReachableRangeParams
ReachableRangeParams.withTimeBudgetInSeconds(Double)
is not used.withEnergyBudgetInKWh
in interface ReachableRangeParams
@NonNull public ReachableRangeParams withTimeBudgetInSeconds(java.lang.Double timeBudgetInSeconds)
ReachableRangeParams
ReachableRangeParams.withFuelBudgetInLiters(Double)
nor
ReachableRangeParams.withEnergyBudgetInKWh(Double)
are called.withTimeBudgetInSeconds
in interface ReachableRangeParams