All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.openxc.measurements.Odometer Maven / Gradle / Ivy

There is a newer version: 5.2
Show newest version
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