com.openxc.measurements.FuelConsumed Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openxc-examples Show documentation
Show all versions of openxc-examples Show documentation
Example Vehicle Dashboard application using OpenXC
package com.openxc.measurements;
import com.openxc.units.Liter;
import com.openxc.util.Range;
/**
* The FuelConsumed is the fuel consumed since the vehicle was started.
*/
public class FuelConsumed extends BaseMeasurement {
private final static Range RANGE =
new Range(new Liter(0), new Liter(4294967295.0));
public final static String ID = "fuel_consumed_since_restart";
public FuelConsumed(Number value) {
super(new Liter(value), RANGE);
}
public FuelConsumed(Liter value) {
super(value, RANGE);
}
@Override
public String getGenericName() {
return ID;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy