com.openxc.measurements.EngineSpeed Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openxc-it Show documentation
Show all versions of openxc-it Show documentation
Instrumentation test suite for OpenXC library
The newest version!
package com.openxc.measurements;
import com.openxc.units.RotationsPerMinute;
import com.openxc.util.Range;
/**
* The EngineSpeed measurement represents the speed of the engine.
*
* The valid range for this measurement is from 0 to 8000 RotationsPerMinute.
*/
public class EngineSpeed extends BaseMeasurement {
private final static Range RANGE =
new Range(new RotationsPerMinute(0),
new RotationsPerMinute(16382));
public final static String ID = "engine_speed";
public EngineSpeed(Number value) {
super(new RotationsPerMinute(value), RANGE);
}
public EngineSpeed(RotationsPerMinute value) {
super(value, RANGE);
}
@Override
public String getGenericName() {
return ID;
}
}