public class TirePressure extends Tire
Gauge.Type
Constructor and Description |
---|
TirePressure(java.lang.String type,
iRacingCar car,
Track track,
IODriver IODriver,
java.lang.String tire,
TireTemp tireTempL,
TireTemp tireTempM,
TireTemp tireTempR,
TireWear tireWearL,
TireWear tireWearM,
TireWear tireWearR,
TireCompound tireCompound) |
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 |
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.
|
getCount, getLapsHistorical, getMaxCount, getValueCurrent, getValueHistorical, getValueNext
_clearSIMCommandTimestamp, _getSIMCommandTimestamp, _getSIMCommandValue, _resetDetected, _setSIMCommandTimestamp, getLaps, getValueCurrent
_addStateRange, _addStateRange, _addStateRange, _removeStateRange, _setCapacityIncrement, _setCapacityMaximum, _setCapacityMinimum, _setIsChangable, _setIsDirty, _setIsFixed, _setMajorIncrement, _setMaximum, _setMinimum, _setMinorIncrement, _setOnResetChange, decrementValueNext, getCapacityIncrement, getCapacityIncrement, getCapacityMaximum, getCapacityMaximum, getCapacityMaximumRaw, getCapacityMinimum, getCapacityMinimum, getCapacityMinimumRaw, getChangeFlag, getIsChangeable, getIsDirty, getIsFixed, getLapChanged, getLaps, getLaps, getMajorIncrement, getMajorIncrement, getMaximum, getMaximum, getMinimum, getMinimum, getMinorIncrement, getMinorIncrement, getMultiplier, getName, getOnResetChange, getType, getTypeName, getUOM, getValue, getValue, getValue, getValue, getValue, getValue, getValueCurrent, getValueHistorical, getValueNext, incrementValueNext, setChangeFlag, setValueNext, setValueNext, setValueNext, toString
public TirePressure(java.lang.String type, iRacingCar car, Track track, IODriver IODriver, java.lang.String tire, TireTemp tireTempL, TireTemp tireTempM, TireTemp tireTempR, TireWear tireWearL, TireWear tireWearM, TireWear tireWearR, TireCompound tireCompound)
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 void _onDataVersionChange(State status, int currentLap, double sessionTime, double lapCompletedPercent, double trackLength)
_onDataVersionChange
in class iRacingGauge