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

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

The newest version!
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 - 2024 Weber Informatics LLC | Privacy Policy