
org.opentripplanner.service.vehiclerental.model.RentalVehicleFuel Maven / Gradle / Ivy
The newest version!
package org.opentripplanner.service.vehiclerental.model;
import javax.annotation.Nullable;
import org.opentripplanner.transit.model.basic.Distance;
import org.opentripplanner.transit.model.basic.Ratio;
/**
* Contains information about the current battery or fuel status.
* See the GBFS
* vehicle_status specification for more details.
*/
public class RentalVehicleFuel {
/**
* Current fuel percentage, expressed from 0 to 1.
*/
@Nullable
private final Ratio percent;
/**
* Distance that the vehicle can travel with the current fuel.
*/
@Nullable
private final Distance range;
public RentalVehicleFuel(@Nullable Ratio fuelPercent, @Nullable Distance range) {
this.percent = fuelPercent;
this.range = range;
}
@Nullable
public Ratio percent() {
return this.percent;
}
@Nullable
public Distance range() {
return range;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy