com.openxc.measurements.Odometer 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.Kilometer;
import com.openxc.util.Range;
/**
* The Odometer is a persistent odometer recording.
*/
public class Odometer extends BaseMeasurement {
private final static Range RANGE =
new Range(new Kilometer(0), new Kilometer(16777214.0));
public final static String ID = "odometer";
public Odometer(Number value) {
super(new Kilometer(value), RANGE);
}
public Odometer(Kilometer value) {
super(value, RANGE);
}
@Override
public String getGenericName() {
return ID;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy