public class iRacingCar extends Car
| Modifier and Type | Class and Description |
|---|---|
static class |
iRacingCar.dynamicIRating |
Car.LapType, Car.Message, Car.SpotterMessages, Car.Status| Modifier and Type | Field and Description |
|---|---|
iRacingCar.dynamicIRating |
m_dynamicIRating |
| Constructor and Description |
|---|
iRacingCar(iRacingSIMPlugin SIMPlugin) |
iRacingCar(iRacingSIMPlugin SIMPlugin,
java.lang.Integer id,
java.lang.String name,
java.lang.Integer driversIdx) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
_getDriversIdx() |
Data |
getBearing(java.lang.String UOM)
Returns the bearing of the car.
|
Data |
getCautions()
Returns the number of Cautions that this car has seen.
|
Data |
getClassColor()
Returns the color of the car's class if in a multi-class session
|
Data |
getClassName()
Returns the name of the car's class in a multicar session.
|
Data |
getColor()
Returns the main color of the car as an RGB value.
|
Data |
getColorNumber()
Returns the main color of the car number as an RGB value.
|
Data |
getColorNumberBackground()
Returns the main color of the car number's background as an RGB value.
|
Data |
getColorNumberOutline()
Returns the main color of the car number's outline as an RGB value.
|
Data |
getDescription()
Returns the printable description of the car.
|
Data |
getDiscontinuality()
Returns the number of times the car has blinked out.
|
Data |
getDivisionName() |
Data |
getDriverClubName()
Returns the club name of the current driver of the car.
|
Data |
getDriverDivisionName()
Returns the division name of the current driver of the car.
|
Data |
getDriverInitials()
Returns the initials of the current driver of the car.
|
Data |
getDriverLicenseColor()
Returns the license color of the current driver of the car.
|
Data |
getDriverLicenseColorText()
Returns the text color that best overlays the license color of the current driver of the car when it is used as a background.
|
Data |
getDriverLicLevel() |
Data |
getDriverLicSubLevel() |
Data |
getDriverName(boolean allowMapping)
Returns the name of the current driver of the car.
|
Data |
getDriverNameShort(boolean allowMapping)
Returns the name of the current driver of the car in a shortened format.
|
Data |
getDriverRating()
Returns the rating of the current driver of the car.
|
Data |
getDriverRatingDelta()
Returns the change of rating of the current driver of the car as the race progresses.
|
Data |
getFuelLevelAtStartFinish(java.lang.String UOM)
Returns the fuel level the last time the car crossed the start/finish line.
|
Data |
getFuelLevelNeeded(int lapsToAverage,
double laps,
java.lang.String UOM)
Returns the amount of fuel you need to add to complete the number of laps specified.
|
Data |
getFuelLevelPerLap(int lapsToAverage,
java.lang.String UOM)
Returns the amount of fuel being consumed per lap.
|
Data |
getFuelLevelToFinish(int lapsToAverage,
double laps,
java.lang.String UOM)
Returns the total amount of fuel needed to finish the race regardless of how much is in the fuel tank.
|
Data |
getHasAutomaticPitCommands()
Automatic Pit Commands will not be enabled until a client calls this function to find out.
|
Data |
getId()
Returns the numeric id of this car.
|
Data |
getImageUrl()
Returns a URL to this car's image suitable for using in the "src" attribute of the "img" tag.
|
Data |
getIncidents()
Returns the number of incidents for the driver of this car.
|
Data |
getIncidentsTeam()
Returns the number of incidents for this car's team.
|
Data |
getIsBlackFlag()
Returns true if the black flag has been waved for this car.
|
Data |
getIsBlueFlag()
Returns true if the blue flag has been waved for this car.
|
Data |
getIsDisqualifyFlag()
Returns true if the disqualify flag has been waved for this car.
|
Data |
getIsDriving()
Returns true if are driving this car.
|
Data |
getIsFixedSetup()
Returns true if the car is in a fixed setup session.
|
Data |
getIsPaceCar()
Returns true if the car is the pace car.
|
Data |
getIsPitSpeedLimiter()
Returns true if the car has the pit speed limiter on.
|
Data |
getIsPushToPassActive()
Returns the push to pass active status.
|
Data |
getIsSpectator()
Returns true if the car is a spectator.
|
Data |
getIsYellowFlag()
Returns true if the yellow flag has been waved for this car.
|
Data |
getLap(java.lang.String ref,
int lapsToAverage)
Returns the lap based on the specified reference type.
|
Data |
getLapInvalidFlags()
Returns the invalid status of each lap in in an array.
|
Data |
getLapsToGo()
Returns the number of laps this car has remaining.
|
Data |
getLapTime(java.lang.String ref,
int lapsToAverage)
Returns the time of the lap based on the specified reference type.
|
Data |
getLapTimeDelta(java.lang.String ref)
Returns the time delta of the lap based on the specified reference type.
|
Data |
getLapTimeDeltaPercent(java.lang.String ref)
Returns the time delta as a percentage of the lap based on the specified reference type.
|
Data |
getLapTimeDeltaReference(java.lang.String ref)
Returns the time delta reference of the lap based on the specified reference type.
|
Data |
getLapTimes()
Returns the lap time of each lap in in an array
The array is indexed as zero based.
|
Data |
getLatitude(java.lang.String UOM)
iRacing only outputs this value in the IBT files for ME
This code checks to see if it exists before returning it, otherwise it calls the base class.
|
Data |
getLatitudeAcceleration(java.lang.String UOM)
Returns the Latitudinal Acceleration.
|
Data |
getLongitude(java.lang.String UOM)
iRacing only outputs this value in the IBT files for ME.
|
Data |
getLongitudeAcceleration(java.lang.String UOM)
Returns the Longitudinal Acceleration.
|
Data |
getMaxTires()
Returns the maximum number of tire sets for this session.
|
Data |
getMergePoint()
Returns the merge point as a percentage from the start/finish line.
|
Data |
getMessages()
Returns a string of a semicolon separate list of messages that are currently active for this car.
|
Data |
getNumber()
Returns the number of the car.
|
Data |
getNumberFont()
Returns the font of the car's number.
|
int |
getNumberRaw()
Returns the integer version of the car number to be used with camera commands.
|
Data |
getNumberSlant()
Returns the slant of the car's number.
|
Data |
getPitLocation()
Returns the pit location as a percentage from the start/finish line.
|
Data |
getPitTime()
Returns the amount of time the last pit stop took.
|
Data |
getPitTimes()
Returns the times this car pitted by lap.
|
Data |
getPosition()
Returns the current position based on all cars in the session.
|
Data |
getPositionClass()
Returns the current position based on the class the car is in.
|
Data |
getPositionClassQualifying()
Returns the qualifying position based on other cars in this session for your class.
|
Data |
getPositionHighest()
Returns the highest position in the current session.
|
Data |
getPositionHighestClass()
Returns the highest position in the current session for your class.
|
Data |
getPositionLowest()
Returns the lowest position in the current session.
|
Data |
getPositionLowestClass()
Returns the lowest position in the current session for your class.
|
Data |
getPositionQualifying()
Returns the qualifying position based on other cars in this session.
|
Data |
getPositions()
Returns the position at the end of each lap in in an array
Positions start at 1, such that 1 is considered the leader, but the array is indexed as zero based.
|
Data |
getPositionsClass()
Returns the class position at the end of each lap in in an array
Positions start at 1, such that 1 is considered the leader, but the array is indexed as zero based.
|
Data |
getPushToPassRemaining()
Returns the number of seconds remaining on the push to pass counter.
|
Data |
getRadioChannel()
Returns the radio channel number that this car is currently transmitting on.
|
Data |
getRadioChannelName()
Returns the radio channel name that this car is currently transmitting on.
|
Data |
getRepairTime()
Returns the amount of time required to repair the car.
|
Data |
getRepairTimeOptional()
Returns the amount of time that is optional to repair the car.
|
Data |
getSpotterMessage()
Returns the current spotter message.
|
Data |
getStartFinishTimes()
Returns the times this car crossed the start/finish by lap.
|
Data |
getStatus()
Returns the current status of the car as defined by
Car.Status |
Data |
getTeamName()
Returns the team name if the current session has teams.
|
Data |
getWarnings()
Returns a semicolon(;) separated list of engine warnings.
|
boolean |
isME()
A convenience function that returns true if the car is an instance of "ME".
|
boolean |
isPaceCar() |
boolean |
isValid()
Returns true if the car instance is actually in the session as defined by the SIM.
|
boolean |
isValid(int id,
int driversIdx) |
boolean |
onDataVersionChange() |
Data |
setAdminFlag(boolean onOffFlag)
Sets this car/driver's admin status.
|
Data |
setBlackFlag(int quantity,
java.lang.String uom)
Sets a black flag for this car/driver.
|
Data |
setChat(java.lang.String text)
Sends the text string as a chat message to this driver.
|
Data |
setChatFlag(boolean onOffFlag)
Sets this car/driver's chat status.
|
Data |
setClearPenaltiesFlag()
Clear all penalties, DQ, EOL, Black Flags.
|
Data |
setDisqualifyFlag()
Disqualify this car but leave them in the session.
|
Data |
setEndOfLineFlag()
Send this car to the end of the pacing line.
|
Data |
setReloadPaint()
Tell the SIM to reload the paint files for this car.
|
Data |
setRemoveFlag()
Remove the user from the session.
|
Data |
setWaveAroundFlag()
Wave this car around the pace car.
|
_dumpGauges, _getDataPublisherMaxTires, _getDefaultGauges, _getGauge, _getSIMGauges, _postInitialization, getBearing, getDriverName, getDriverName, getDriverNameShort, getDriverNameShort, getFuelLaps, getFuelLaps, getFuelLaps, getFuelLapsMaximum, getFuelLapsMaximum, getFuelLapsMaximum, getFuelLevelAtStartFinish, getFuelLevelNeeded, getFuelLevelNeeded, getFuelLevelNeeded, getFuelLevelNeeded, getFuelLevelPerLap, getFuelLevelPerLap, getFuelLevelPerLap, getFuelLevelToFinish, getFuelLevelToFinish, getFuelLevelToFinish, getFuelLevelToFinish, getGauge, getGauge, getIsBelowMinimumSpeed, getIsEqual, getIsEqual, getIsOverSpeedLimit, getIsUnderSpeedLimit, getLap, getLap, getLap, getLapTime, getLapTime, getLapTime, getLapTimeDelta, getLapTimeDeltaPercent, getLapTimeDeltaReference, getLapTimeProjected, getLatitude, getLatitudeAcceleration, getLongitude, getLongitudeAcceleration, getManufacturerLogo, getMergePointLatitude, getMergePointLongitude, getName, getPitSpeedLimit, getPitSpeedLimit, getPitStopsRemaining, getPitStopsRemaining, getPitStopsRemaining, getPositionClassDelta, getPositionDelta, getRPMPitRoadSpeed, getSector, getStatusClass, setAdminFlag, setBlackFlag, setBlackFlag, setBlackFlag, setCamera, setCamera, setChatFlag, setRPMPitRoadSpeedpublic iRacingCar.dynamicIRating m_dynamicIRating
public iRacingCar(iRacingSIMPlugin SIMPlugin)
public iRacingCar(iRacingSIMPlugin SIMPlugin, java.lang.Integer id, java.lang.String name, java.lang.Integer driversIdx)
public java.lang.String _getDriversIdx()
public Data getBearing(java.lang.String UOM)
CargetBearing in class CarUOM - (Optional) A unit of measure to return. Defaults to degrees.public Data getCautions()
Car
To get the number of caution laps seen by this car, use getLap("CAUTION")
getCautions in class CarData container.public Data getClassColor()
CargetClassColor in class CarData container.public Data getClassName()
CargetClassName in class CarData container.public Data getColor()
CarPATH = /Car/(CARIDENTIFIER)/Color
public Data getColorNumber()
CargetColorNumber in class CarData container.public Data getColorNumberBackground()
CargetColorNumberBackground in class CarData container.public Data getColorNumberOutline()
CargetColorNumberOutline in class CarData container.public Data getDescription()
CargetDescription in class CarData container.public Data getDiscontinuality()
CargetDiscontinuality in class CarData container.public Data getDriverClubName()
CargetDriverClubName in class CarData container.public Data getDriverDivisionName()
CargetDriverDivisionName in class CarData container.public Data getDriverInitials()
CargetDriverInitials in class CarData container.public Data getDriverLicenseColor()
CargetDriverLicenseColor in class CarData container.public Data getDriverLicenseColorText()
CargetDriverLicenseColorText in class CarData container.public Data getDriverName(boolean allowMapping)
CargetDriverName in class CarallowMapping - true allows the user to map the name in settings to something else.Data container.public Data getDriverNameShort(boolean allowMapping)
CargetDriverNameShort in class CarallowMapping - true allows the user to map the name in settings to something else.Data container.public Data getDriverRating()
CargetDriverRating in class CarData container.public Data getDriverRatingDelta()
CargetDriverRatingDelta in class CarData container.public Data getFuelLevelPerLap(int lapsToAverage, java.lang.String UOM)
CarPATH = /Car/(CARIDENTIFIER)/FuelLevelPerLap/(LAPSTOAVERAGE)/(UOM)
getFuelLevelPerLap in class CarlapsToAverage - (Optional) The number of previous non-caution laps to average. Zero indicates use the worst lap. Default 0.UOM - (Optional) A unit of measure to return. Set to null or a blank string to use car's UOM.Data container.public Data getFuelLevelNeeded(int lapsToAverage, double laps, java.lang.String UOM)
CarCar.getFuelLevelToFinish(int, double, String), then subtracts what is in your fuel tank.
The amount could be more than will fit in the fuel cell.
PATH = /Car/(CARIDENTIFIER)/FuelLevelNeeded/(LAPSTOAVERAGE)/(LAPS)/(UOM)
getFuelLevelNeeded in class CarlapsToAverage - (Optional) The number of laps to average. This is passed to Car.getFuelLevelPerLap(int, java.lang.String). Default 0.laps - (Optional) The number of laps to calculate for. Defaults to laps remaining in the race minus current lap percent completed.UOM - (Optional) A unit of measure to return. Set to null or a blank string to use SIM's default UOM.Data container.public Data getFuelLevelToFinish(int lapsToAverage, double laps, java.lang.String UOM)
CarPATH = /Car/(CARIDENTIFIER)/FuelLevelToFinish/(LAPSTOAVERAGE)/(LAPS)/(UOM)
getFuelLevelToFinish in class CarlapsToAverage - (Optional) The number of laps to average. This is passed to Car.getFuelLevelPerLap(int, java.lang.String). Default 0.laps - (Optional) The number of laps to calculate for. Defaults to remaining minus percentage of current lap completed.UOM - (Optional) A unit of measure to return. Set to null or a blank string to use Car's UOM.Data container.public Data getHasAutomaticPitCommands()
getHasAutomaticPitCommands in class CarData container.public Data getId()
CarPATH = /Car/(CARIDENTIFIER)/Id
public Data getImageUrl()
CarUsing the SIMRacingApps Server, you can prefix "/SIMRacingApps/" + getImageUrl().getString() and call the server. Same for HTML5/JavaScript clients, just assign to the "src" attribute of the "img" tag.
getImageUrl in class Carpublic Data getIncidents()
CargetIncidents in class CarData container.public Data getIncidentsTeam()
CargetIncidentsTeam in class CarData container.public Data getIsBlackFlag()
CargetIsBlackFlag in class CarData container.public Data getIsBlueFlag()
CargetIsBlueFlag in class CarData container.public Data getIsDisqualifyFlag()
CargetIsDisqualifyFlag in class CarData container.public Data getIsDriving()
CargetIsDriving in class CarData container.public Data getIsFixedSetup()
CargetIsFixedSetup in class CarData container.public boolean isME()
Carpublic Data getIsPitSpeedLimiter()
CargetIsPitSpeedLimiter in class CarData container.public Data getIsSpectator()
CargetIsSpectator in class CarData container.public Data getIsPaceCar()
CargetIsPaceCar in class CarData container.public Data getIsYellowFlag()
CargetIsYellowFlag in class CarData container.public Data getLap(java.lang.String ref, int lapsToAverage)
CarSupported Reference Types are: AVERAGE, AVERAGESINCEPITTING, BEST, CAUTION, COMPLETED, COMPLETEDPERCENT, CURRENT, LED, PITTED, QUALIFYING, SESSIONBEST, SESSIONLAST, SINCEPITTING
getLap in class Carref - (Optional) as defined by Car.LapType. Default CURRENT.lapsToAverage - (Optional) as defined by Car.LapType. Default 9999.Data container.public Data getLapsToGo()
CargetLapsToGo in class CarData container.public Data getLapTime(java.lang.String ref, int lapsToAverage)
CarSupported Reference Types are: AVERAGE, AVERAGESINCEPITTING, BEST, CURRENT, FINISHLINE, QUALIFYING, RACESTART, SESSIONBEST, SESSIONLAST
PATH = /Car/(CARIDENTIFIER)/LapTime/(LAPTYPE)/(LAPSTOAVERAGE)
getLapTime in class Carref - (Optional) as defined by Car.LapType. Default CURRENT.lapsToAverage - (Optional) as defined by Car.LapType. Default 9999.Data container.public Data getLapTimeDelta(java.lang.String ref)
CarSupported Reference Types are: BEST, OPTIMAL, SESSIONBEST, SESSIONLAST, SESSIONOPTIMAL
getLapTimeDelta in class Carref - (Optional) as defined by Car.LapType. Default CURRENT.Data container.public Data getLapTimeDeltaReference(java.lang.String ref)
CarSupported Reference Types are: BEST, OPTIMAL, SESSIONBEST, SESSIONLAST, SESSIONOPTIMAL
getLapTimeDeltaReference in class Carref - as defined by Car.LapType. Default CURRENT.Data container.public Data getLapTimeDeltaPercent(java.lang.String ref)
CarSupported Reference Types are: BEST, OPTIMAL, SESSIONBEST, SESSIONLAST, SESSIONOPTIMAL
getLapTimeDeltaPercent in class Carref - as defined by Car.LapTypeData container.public Data getLapTimes()
CargetLapTimes in class CarData container.public Data getLapInvalidFlags()
CargetLapInvalidFlags in class CarData container.public Data getLatitude(java.lang.String UOM)
getLatitude in class CarUOM - (Optional) A unit of measure to return. Defaults to degrees.public Data getLatitudeAcceleration(java.lang.String UOM)
CargetLatitudeAcceleration in class CarUOM - (Optional) A unit of measure to return. Set to null or a blank string to use car's UOM.Data container.public Data getLongitudeAcceleration(java.lang.String UOM)
CargetLongitudeAcceleration in class CarUOM - (Optional) A unit of measure to return. Set to null or a blank string to use car's UOM.Data container.public Data getLongitude(java.lang.String UOM)
getLongitude in class CarUOM - (Optional) A unit of measure to return. Defaults to degrees.public Data getMaxTires()
CarPATH = /Car/(CARIDENTIFIER)/MaxTires 1.2
getMaxTires in class Carpublic Data getMergePoint()
CargetMergePoint in class Carpublic Data getMessages()
CarCar.Message.
You can display as is, or use it as an index to the the translation for a particular language.
For example: ";REPAIR;"
getMessages in class CarData container.public Data getNumber()
CarPATH = /Car/(CARIDENTIFIER)/Number
public int getNumberRaw()
public Data getNumberFont()
CargetNumberFont in class CarData container.public Data getNumberSlant()
CargetNumberSlant in class CarData container.public Data getPitTime()
CarPATH = /Car/(CARIDENTIFIER)/PitTime
getPitTime in class CarData container.public Data getPitTimes()
CargetPitTimes in class Carpublic Data getPitLocation()
CargetPitLocation in class Carpublic Data getPosition()
CargetPosition in class CarData container.public Data getPositionHighest()
CargetPositionHighest in class CarData container.public Data getPositionLowest()
CargetPositionLowest in class CarData container.public Data getPositions()
CargetPositions in class CarData container.public Data getPositionClass()
CargetPositionClass in class CarData container.public Data getPositionHighestClass()
CargetPositionHighestClass in class CarData container.public Data getPositionLowestClass()
CargetPositionLowestClass in class CarData container.public Data getPositionsClass()
CargetPositionsClass in class CarData container.public Data getPositionQualifying()
CargetPositionQualifying in class CarData container.public Data getPositionClassQualifying()
CargetPositionClassQualifying in class CarData container.public Data getPushToPassRemaining()
CargetPushToPassRemaining in class CarData container.public Data getIsPushToPassActive()
CargetIsPushToPassActive in class CarData container.public Data getRadioChannel()
CargetRadioChannel in class CarData container.public Data getRadioChannelName()
CargetRadioChannelName in class CarData container.public Data getSpotterMessage()
CargetSpotterMessage in class CarData container.public Data getStartFinishTimes()
CargetStartFinishTimes in class Carpublic Data getStatus()
CarCar.Status
PATH = /Car/(CARIDENTIFIER)/Status
public Data getWarnings()
CargetWarnings in class CarData container.public Data getDivisionName()
public Data getDriverLicLevel()
public Data getDriverLicSubLevel()
public Data getFuelLevelAtStartFinish(java.lang.String UOM)
CargetFuelLevelAtStartFinish in class CarUOM - (Optional) A unit of measure to return. Set to null or a blank string to use SIM's default UOM. Default blank to use car's UOM.Data container.public Data getRepairTime()
CargetRepairTime in class CarData container.public Data getRepairTimeOptional()
CargetRepairTimeOptional in class CarData container.public Data getTeamName()
CargetTeamName in class Carpublic boolean isPaceCar()
public boolean isValid()
Carpublic boolean isValid(int id,
int driversIdx)
public Data setAdminFlag(boolean onOffFlag)
CarsetAdminFlag in class CaronOffFlag - The admin status.Data container.public Data setBlackFlag(int quantity, java.lang.String uom)
CarPATH = /Car/(CARIDENTIFIER)/setBlackFlag/(SECONDS/LAPS)/(UOM)
setBlackFlag in class Carquantity - The number of seconds or laps based on the UOM. Default to zero(0).uom - The unit of measure of the quantity. "s" for seconds, "lap" for laps. Defaults to "s".Data container.public Data setChat(java.lang.String text)
Carpublic Data setChatFlag(boolean onOffFlag)
CarsetChatFlag in class CaronOffFlag - The chat status.Data container.public Data setClearPenaltiesFlag()
CarsetClearPenaltiesFlag in class CarData container.public Data setDisqualifyFlag()
CarsetDisqualifyFlag in class CarData container.public Data setEndOfLineFlag()
CarsetEndOfLineFlag in class CarData container.public Data setReloadPaint()
CarPATH = /Session/setReloadPaint
setReloadPaint in class CarData container.public Data setRemoveFlag()
CarsetRemoveFlag in class CarData container.public Data setWaveAroundFlag()
CarsetWaveAroundFlag in class CarData container.public boolean onDataVersionChange()