public class iRacingGauge extends Gauge
Gauge.Type
Constructor and Description |
---|
iRacingGauge(java.lang.String type,
iRacingCar car,
Track track,
IODriver IODriver,
java.lang.String varName,
java.lang.String defaultUOM,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>>> simGaugesBefore,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>>> simGaugesAfter)
This is the generic var reader.
|
Modifier and Type | Method and Description |
---|---|
void |
_clearSIMCommandTimestamp() |
double |
_getSIMCommandTimestamp() |
int |
_getSIMCommandValue() |
void |
_onDataVersionChange(State status,
int currentLap,
double sessionTime,
double lapCompletedPercent,
double trackLength) |
void |
_resetDetected() |
void |
_setSIMCommandTimestamp(boolean flag,
double value) |
Data |
getLaps() |
Data |
getValueCurrent(java.lang.String UOM)
Returns the current value of the gauge.
|
Data |
getValueCurrent(java.lang.String UOM,
java.lang.String gear,
java.lang.String power) |
_addStateRange, _addStateRange, _addStateRange, _removeStateRange, _setCapacityIncrement, _setCapacityMaximum, _setCapacityMinimum, _setIsChangable, _setIsDirty, _setIsFixed, _setMajorIncrement, _setMaximum, _setMinimum, _setMinorIncrement, _setOnResetChange, decrementValueNext, decrementValueNext, getCapacityIncrement, getCapacityIncrement, getCapacityMaximum, getCapacityMaximum, getCapacityMaximumRaw, getCapacityMinimum, getCapacityMinimum, getCapacityMinimumRaw, getChangeFlag, getCount, getIsChangeable, getIsDirty, getIsFixed, getLapChanged, getLaps, getLaps, getLapsHistorical, getMajorIncrement, getMajorIncrement, getMaxCount, getMaximum, getMaximum, getMinimum, getMinimum, getMinorIncrement, getMinorIncrement, getMultiplier, getName, getOnResetChange, getType, getTypeName, getUOM, getValue, getValue, getValue, getValue, getValue, getValue, getValueCurrent, getValueHistorical, getValueHistorical, getValueNext, getValueNext, incrementValueNext, incrementValueNext, setChangeFlag, setChangeFlag, setValueNext, setValueNext, setValueNext, setValueNext, toString
public iRacingGauge(java.lang.String type, iRacingCar car, Track track, IODriver IODriver, java.lang.String varName, java.lang.String defaultUOM, java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>>> simGaugesBefore, java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>>> simGaugesAfter)
type
- The type of gaugecar
- The cartrack
- The trackIODriver
- The iRacing driver to usevarName
- The name of the vardefaultUOM
- The UOM of the var in case iRacing doesn't define it.simGaugesBefore
- A map that contains gauge data from the SIM to be applied first. The files can then override those values if needed.simGaugesAfter
- A map that contains gauge data from the SIM to be applied after the files are processed to override any values in them.public Data getValueCurrent(java.lang.String UOM, java.lang.String gear, java.lang.String power)
public Data getValueCurrent(java.lang.String UOM)
Gauge
PATH = /Car/(CARIDENTIFIER)/Gauge/(GAUGETYPE)/ValueCurrent/(UOM)
getValueCurrent
in class Gauge
UOM
- (Optional) The unit of measure to return, default to the gauges UOM.public void _onDataVersionChange(State status, int currentLap, double sessionTime, double lapCompletedPercent, double trackLength)
public double _getSIMCommandTimestamp()
public int _getSIMCommandValue()
public void _setSIMCommandTimestamp(boolean flag, double value)
public void _clearSIMCommandTimestamp()
public void _resetDetected()