@Beta(2020, 12) class Builder
Builder used to create an instance of VehicleEfficiency. Once constructed, the user cannot change the field values.
Builder()
Builder used to create an instance of VehicleEfficiency. Once constructed, the user cannot change the field values. |
fun accelerationEfficiency(accelerationEfficiency: Double): VehicleEfficiency.Builder
Specifies the efficiency of converting chemical energy stored in fuel to kinetic energy when the vehicle accelerates. |
|
fun build(): VehicleEfficiency
Creates a new instance of the VehicleEfficiency. |
|
fun decelerationEfficiency(decelerationEfficiency: Double): VehicleEfficiency.Builder
Specifies the efficiency of converting kinetic energy to saved (not consumed) fuel when the vehicle decelerates. |
|
fun downhillEfficiency(downhillEfficiency: Double): VehicleEfficiency.Builder
Specifies the efficiency of converting potential energy to saved (not consumed) fuel when the vehicle loses elevation. |
|
fun uphillEfficiency(uphillEfficiency: Double): VehicleEfficiency.Builder
Specifies the efficiency of converting chemical energy stored in fuel to potential energy when the vehicle gains elevation. |