public class FuelLevel extends iRacingGauge
Gauge.Type
Constructor and Description |
---|
FuelLevel(java.lang.String type,
iRacingCar car,
Track track,
IODriver IODriver,
java.lang.Integer driversIdx) |
Modifier and Type | Method and Description |
---|---|
void |
_onDataVersionChange(State status,
int currentLap,
double sessionTime,
double lapCompletedPercent,
double trackLength) |
Data |
decrementValueNext(java.lang.String UOM)
Decrements the next value, to be applied at the next pit stop, according to the value set by
Gauge._setCapacityIncrement(double,String) . |
Data |
getCapacityIncrement(java.lang.String UOM)
Returns the increment value that the gauge uses when you call
Gauge.incrementValueNext(String)
or Gauge.decrementValueNext(String) . |
Data |
getCapacityMaximum(java.lang.String UOM)
Returns the maximum number that this gauge will accept when calling
Gauge.setValueNext(double,String)
or Gauge.incrementValueNext(String) |
Data |
getCapacityMinimum(java.lang.String UOM)
Returns the minimum number that this gauge will accept when calling
Gauge.setValueNext(double,String)
or Gauge.decrementValueNext(String) |
Data |
getCount()
Returns the number of times this gauge was used.
|
Data |
getLapsHistorical()
Returns the number of laps since the last change.
|
Data |
getMajorIncrement(java.lang.String UOM)
Returns how often to show major tick marks between the minimum and the maximum.
|
Data |
getMaximum(java.lang.String UOM)
Returns the maximum value of where this gauge should end with the last tick mark (i.e.
|
Data |
getMinorIncrement(java.lang.String UOM)
Returns how often to show minor tick marks between the minimum and the maximum.
|
Data |
getValueCurrent(java.lang.String UOM)
Returns the current value of the gauge.
|
Data |
getValueHistorical(java.lang.String UOM)
Returns the historical value of the gauge taken at the time it was changed.
|
Data |
getValueNext(java.lang.String UOM)
Returns the value of the next value that the object will be at the next pit stop.
|
Data |
incrementValueNext(java.lang.String UOM)
Increments the next value, to be applied at the next pit stop, according to the value set by
Gauge._setCapacityIncrement(double,String) . |
Data |
setChangeFlag(boolean flag)
Sets the change flag for this gauge and all the gauges grouped with it.
|
Data |
setValueNext(double d,
java.lang.String UOM)
Sets the next value to be applied at the next pit stop.
|
_clearSIMCommandTimestamp, _getSIMCommandTimestamp, _getSIMCommandValue, _resetDetected, _setSIMCommandTimestamp, getLaps, getValueCurrent
_addStateRange, _addStateRange, _addStateRange, _removeStateRange, _setCapacityIncrement, _setCapacityMaximum, _setCapacityMinimum, _setIsChangable, _setIsDirty, _setIsFixed, _setMajorIncrement, _setMaximum, _setMinimum, _setMinorIncrement, _setOnResetChange, decrementValueNext, getCapacityIncrement, getCapacityMaximum, getCapacityMaximumRaw, getCapacityMinimum, getCapacityMinimumRaw, getChangeFlag, getIsChangeable, getIsDirty, getIsFixed, getLapChanged, getLaps, getLaps, getMajorIncrement, getMaxCount, getMaximum, getMinimum, getMinimum, getMinorIncrement, getMultiplier, getName, getOnResetChange, getType, getTypeName, getUOM, getValueCurrent, getValueHistorical, getValueNext, incrementValueNext, setChangeFlag, setValueNext, setValueNext, setValueNext, toString
public FuelLevel(java.lang.String type, iRacingCar car, Track track, IODriver IODriver, java.lang.Integer driversIdx)
public Data setChangeFlag(boolean flag)
Gauge
PATH = /Car/(CARIDENTIFIER)/Gauge/(GAUGETYPE)/setChangeFlag/(FLAG)
setChangeFlag
in class Gauge
flag
- Y or N to change or not to changepublic Data setValueNext(double d, java.lang.String UOM)
Gauge
Gauge._setCapacityIncrement(double,String)
.
The change flag is set to Y even if the new value and the old value are the same.
PATH = /Car/(CARIDENTIFIER)/Gauge/(GAUGETYPE)/setValueNext/(VALUE)/(UOM)
setValueNext
in class Gauge
d
- (Optional) The value to be set. Default 0.UOM
- (Optional) The unit of measure the new measure to be set is in. Also affects return value. Default to gauge's UOM.public Data decrementValueNext(java.lang.String UOM)
Gauge
Gauge._setCapacityIncrement(double,String)
.
If the gauge is fixed, then only the change flag will be set and the next value will not be changed.
The change flag is set to Y even if the new value and the old value are the same.
PATH = /Car/(CARIDENTIFIER)/Gauge/(GAUGETYPE)/decrementValueNext/(UOM)
decrementValueNext
in class Gauge
UOM
- (Optional) The unit of measure to return the new value in. Default gauge's UOM.public Data incrementValueNext(java.lang.String UOM)
Gauge
Gauge._setCapacityIncrement(double,String)
.
If the gauge is fixed, then only the change flag will be set and the next value will not be changed.
If increments above the maximum capacity, then it sets it to the maximum capacity.
The change flag is set to Y even if the new value and the old value are the same.
PATH = /Car/(CARIDENTIFIER)/Gauge/(GAUGETYPE)/incrementValueNext/(UOM)
incrementValueNext
in class Gauge
UOM
- (Optional) The unit of measure to return the new value in. Default to gauge's UOM.public Data getMaximum(java.lang.String UOM)
Gauge
getMaximum
in class Gauge
UOM
- (Optional) The UOM to convert the value to, defaults to the gauge's UOM.public Data getMajorIncrement(java.lang.String UOM)
Gauge
PATH = /Car/(CARIDENTIFIER)/Gauge/(GAUGETYPE)/MajorIncrement/(UOM)
getMajorIncrement
in class Gauge
UOM
- (Optional) The UOM to convert the value to, defaults to the gauge's UOM.public Data getMinorIncrement(java.lang.String UOM)
Gauge
PATH = /Car/(CARIDENTIFIER)/Gauge/(GAUGETYPE)/MinorIncrement/(UOM)
getMinorIncrement
in class Gauge
UOM
- (Optional) The UOM to convert the value to, defaults to the gauge's UOM.public Data getCapacityMaximum(java.lang.String UOM)
Gauge
Gauge.setValueNext(double,String)
or Gauge.incrementValueNext(String)
PATH = /Car/(CARIDENTIFIER)/Gauge/(GAUGETYPE)/CapacityMaximum/(UOM)
getCapacityMaximum
in class Gauge
UOM
- (Optional) The UOM to convert the value to, defaults to the gauge's UOM.public Data getCapacityMinimum(java.lang.String UOM)
Gauge
Gauge.setValueNext(double,String)
or Gauge.decrementValueNext(String)
PATH = /Car/(CARIDENTIFIER)/Gauge/(GAUGETYPE)/CapacityMinimum/(UOM)
getCapacityMinimum
in class Gauge
UOM
- (Optional) The UOM to convert the value to, defaults to the gauge's UOM.public Data getCapacityIncrement(java.lang.String UOM)
Gauge
Gauge.incrementValueNext(String)
or Gauge.decrementValueNext(String)
.
Also, all values passed to Gauge.setValueNext(double,String)
are rounded up to the the
closest multiple of this value.
PATH = /Car/(CARIDENTIFIER)/Gauge/(GAUGETYPE)/CapacityIncrement/(UOM)
getCapacityIncrement
in class Gauge
UOM
- (Optional) The UOM to convert the value to, defaults to the gauge's UOM.public Data getValueCurrent(java.lang.String UOM)
Gauge
PATH = /Car/(CARIDENTIFIER)/Gauge/(GAUGETYPE)/ValueCurrent/(UOM)
getValueCurrent
in class iRacingGauge
UOM
- (Optional) The unit of measure to return, default to the gauges UOM.public Data getValueNext(java.lang.String UOM)
Gauge
PATH = /Car/(CARIDENTIFIER)/Gauge/(GAUGETYPE)/ValueNext/(UOM)
getValueNext
in class Gauge
UOM
- The unit of value to return.public Data getValueHistorical(java.lang.String UOM)
Gauge
PATH = /Car/(CARIDENTIFIER)/Gauge/(GAUGETYPE)/ValueHistorical/(UOM)
getValueHistorical
in class Gauge
UOM
- (Optional) The unit of measure to return it in, defaults to the gauges UOM.public Data getLapsHistorical()
Gauge
PATH = /Car/(CARIDENTIFIER)/Gauge/(GAUGETYPE)/LapsHistorical
getLapsHistorical
in class Gauge
public void _onDataVersionChange(State status, int currentLap, double sessionTime, double lapCompletedPercent, double trackLength)
_onDataVersionChange
in class iRacingGauge
public Data getCount()
Gauge
PATH = /Car/(CARIDENTIFIER)/Gauge/(GAUGETYPE)/Count
1.2