public class Car
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Car.LapType
Defines and validates an enumerated String class of the different types of laps that can be returned by methods that take a LapType as an argument.
|
static class |
Car.Message
This class enumerates the various messages that a SIM can raise that applies to a specific car.
|
static class |
Car.SpotterMessages
Defines the messages the spotter can say.
|
static class |
Car.Status
Defines an enumerated String class for where the car is.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
Tires |
Constructor and Description |
---|
Car(SIMPlugin SIMPlugin)
Class constructor
|
Car(SIMPlugin SIMPlugin,
int id,
java.lang.String name,
java.lang.String carPath)
Class constructor to be used by the SIM specific version to establish the "id", "name" and "track" of the car.
|
Modifier and Type | Method and Description |
---|---|
void |
_dumpGauges() |
Data |
_getDataPublisherMaxTires() |
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>>> |
_getDefaultGauges()
Returns a map to the default gauges found in the Car.json file.
|
Gauge |
_getGauge(java.lang.String gaugeType)
Returns an instance of the Gauge Type specified for this car.
|
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>>> |
_getSIMGauges()
Returns a map to the default gauges found in the SIM's .json file.
|
void |
_postInitialization()
Each SIM that subclasses Car, should call this at the end of the constructor
to allow global functionality to be added to the car.
|
Data |
getBearing() |
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 |
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 |
getDriverName() |
Data |
getDriverName(boolean allowMapping)
Returns the name of the current driver of the car.
|
Data |
getDriverName(java.lang.String allowName) |
Data |
getDriverNameShort() |
Data |
getDriverNameShort(boolean allowMapping)
Returns the name of the current driver of the car in a shortened format.
|
Data |
getDriverNameShort(java.lang.String allowName) |
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 |
getFuelLaps() |
Data |
getFuelLaps(int lapsToAverage)
Returns the number of laps you can run on the existing fuel in the tank.
|
Data |
getFuelLaps(java.lang.String sLapsToAverage) |
Data |
getFuelLapsMaximum() |
Data |
getFuelLapsMaximum(int lapsToAverage)
Returns the maximum number of laps you can go on a full fuel tank.
|
Data |
getFuelLapsMaximum(java.lang.String lapsToAverage) |
Data |
getFuelLevelAtStartFinish() |
Data |
getFuelLevelAtStartFinish(java.lang.String UOM)
Returns the fuel level the last time the car crossed the start/finish line.
|
Data |
getFuelLevelNeeded() |
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 |
getFuelLevelNeeded(java.lang.String lapsToAverage) |
Data |
getFuelLevelNeeded(java.lang.String lapsToAverage,
java.lang.String laps) |
Data |
getFuelLevelNeeded(java.lang.String lapsToAverage,
java.lang.String laps,
java.lang.String UOM) |
Data |
getFuelLevelPerLap() |
Data |
getFuelLevelPerLap(int lapsToAverage,
java.lang.String UOM)
Returns the amount of fuel being consumed per lap.
|
Data |
getFuelLevelPerLap(java.lang.String lapsToAverage) |
Data |
getFuelLevelPerLap(java.lang.String lapsToAverage,
java.lang.String UOM) |
Data |
getFuelLevelToFinish() |
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 |
getFuelLevelToFinish(java.lang.String lapsToAverage) |
Data |
getFuelLevelToFinish(java.lang.String lapsToAverage,
java.lang.String lapsRemaining) |
Data |
getFuelLevelToFinish(java.lang.String lapsToAverage,
java.lang.String lapsRemaining,
java.lang.String UOM) |
Data |
getGauge() |
Data |
getGauge(java.lang.String gaugeType)
Returns a Data object of the Gauge Type specified for this car as a json string.
|
Data |
getHasAutomaticPitCommands()
Returns if the SIM supports sending pit commands remotely.
|
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 |
getIsBelowMinimumSpeed()
This returns (true) if the car is below the minimum speed.
|
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 |
getIsEqual() |
Data |
getIsEqual(java.lang.String carIdentifier)
Returns true if the 2 cars refer to the same car
|
Data |
getIsFixedSetup()
Returns true if the car is in a fixed setup session.
|
Data |
getIsOverSpeedLimit()
Returns true if the car is over the specified speed limit.
|
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 |
getIsUnderSpeedLimit()
Returns true if the car is under the specified speed limit.
|
Data |
getIsYellowFlag()
Returns true if the yellow flag has been waved for this car.
|
Data |
getLap() |
Data |
getLap(java.lang.String lapType) |
Data |
getLap(java.lang.String lapType,
int lapsToAverage)
Returns the lap based on the specified reference type.
|
Data |
getLap(java.lang.String lapType,
java.lang.String lapsToAverage) |
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() |
Data |
getLapTime(java.lang.String lapType) |
Data |
getLapTime(java.lang.String lapType,
int lapsToAverage)
Returns the time of the lap based on the specified reference type.
|
Data |
getLapTime(java.lang.String lapType,
java.lang.String lapsToAverage) |
Data |
getLapTimeDelta() |
Data |
getLapTimeDelta(java.lang.String lapType)
Returns the time delta of the lap based on the specified reference type.
|
Data |
getLapTimeDeltaPercent() |
Data |
getLapTimeDeltaPercent(java.lang.String lapType)
Returns the time delta as a percentage of the lap based on the specified reference type.
|
Data |
getLapTimeDeltaReference() |
Data |
getLapTimeDeltaReference(java.lang.String lapType)
Returns the time delta reference of the lap based on the specified reference type.
|
Data |
getLapTimeProjected()
Estimates what the current lap time will be based on your current speed against your previous lap time.
|
Data |
getLapTimes()
Returns the lap time of each lap in in an array
The array is indexed as zero based.
|
Data |
getLatitude() |
Data |
getLatitude(java.lang.String UOM)
Returns the Latitude location of the car.
|
Data |
getLatitudeAcceleration() |
Data |
getLatitudeAcceleration(java.lang.String UOM)
Returns the Latitudinal Acceleration.
|
Data |
getLongitude() |
Data |
getLongitude(java.lang.String UOM)
Returns the Longitude location of the car.
|
Data |
getLongitudeAcceleration() |
Data |
getLongitudeAcceleration(java.lang.String UOM)
Returns the Longitudinal Acceleration.
|
Data |
getManufacturerLogo()
Returns the filename of the manufacturer's logo for this car.
|
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 |
getMergePointLatitude()
Returns the merge point latitude.
|
Data |
getMergePointLongitude()
Returns the merge point longitude.
|
Data |
getMessages()
Returns a string of a semicolon separate list of messages that are currently active for this car.
|
Data |
getName()
Returns a name of the car as reported by the SIM.
|
Data |
getNumber()
Returns the number of the car.
|
Data |
getNumberFont()
Returns the font of the car's number.
|
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 |
getPitSpeedLimit() |
Data |
getPitSpeedLimit(java.lang.String UOM)
Returns the pit road speed limit in the car's unit of measure.
|
Data |
getPitStopsRemaining() |
Data |
getPitStopsRemaining(int lapstoaverage)
Returns the number of pit stops remaining based on fuel mileage.
|
Data |
getPitStopsRemaining(java.lang.String laps) |
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 |
getPositionClassDelta()
Returns the number of positions changed for your class.
|
Data |
getPositionClassQualifying()
Returns the qualifying position based on other cars in this session for your class.
|
Data |
getPositionDelta()
Returns the number of positions changed.
|
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 |
getRPMPitRoadSpeed()
Returns the RPM for pit road speed while in 2nd gear
|
Data |
getSector()
Returns the sector number this car is currently in.
|
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 |
getStatusClass()
Returns the status of the car and the car identifier as one string.
|
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 |
isValid()
Returns true if the car instance is actually in the session as defined by the SIM.
|
Data |
setAdminFlag(boolean onOffFlag)
Sets this car/driver's admin status.
|
Data |
setAdminFlag(java.lang.String onOffFlag) |
Data |
setBlackFlag() |
Data |
setBlackFlag(int quantity,
java.lang.String uom)
Sets a black flag for this car/driver.
|
Data |
setBlackFlag(java.lang.String quantity) |
Data |
setBlackFlag(java.lang.String quantity,
java.lang.String uom) |
Data |
setCamera() |
Data |
setCamera(java.lang.String cameraName)
Changes the camera to focus on this car.
|
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 |
setChatFlag(java.lang.String onOffFlag) |
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 |
setRPMPitRoadSpeed(double rpm)
Sets the pit road speed as the RPMs in 2nd gear.
|
Data |
setWaveAroundFlag()
Wave this car around the pace car.
|
public Car(SIMPlugin SIMPlugin)
SIMPlugin
- An instance of SIMPlugin.public Car(SIMPlugin SIMPlugin, int id, java.lang.String name, java.lang.String carPath)
SIMPlugin
- An instance of SIMPlugin.id
- A numeric value used by the SIM to identify a carname
- The name of the car as returned by the SIMcarPath
- The relative path to the car's .json file provided by the SIM. Allow settings to remap it.public boolean isME()
public boolean isValid()
public Data getBearing(java.lang.String UOM)
UOM
- (Optional) A unit of measure to return. Defaults to degrees.public Data getBearing()
public Data getCautions()
To get the number of caution laps seen by this car, use getLap("CAUTION")
Data
container.public Data getClassColor()
Data
container.public Data getClassName()
Data
container.public Data getColor()
PATH = /Car/(CARIDENTIFIER)/Color
Data
container.public Data getColorNumber()
Data
container.public Data getColorNumberBackground()
Data
container.public Data getColorNumberOutline()
Data
container.public Data getDescription()
Data
container.public Data getDiscontinuality()
Data
container.public Data getDriverClubName()
Data
container.public Data getDriverDivisionName()
Data
container.public Data getDriverInitials()
Data
container.public Data getDriverLicenseColor()
Data
container.public Data getDriverLicenseColorText()
Data
container.public Data getDriverName(boolean allowMapping)
allowMapping
- true allows the user to map the name in settings to something else.Data
container.public Data getDriverName(java.lang.String allowName)
public Data getDriverName()
public Data getDriverNameShort(boolean allowMapping)
allowMapping
- true allows the user to map the name in settings to something else.Data
container.public Data getDriverNameShort(java.lang.String allowName)
public Data getDriverNameShort()
public Data getDriverRating()
Data
container.public Data getDriverRatingDelta()
Data
container.public Data getFuelLaps(int lapsToAverage)
lapsToAverage
- (Optional) The number of laps to average. This is passed to getFuelLevelPerLap(int, java.lang.String)
. Default 0.Data
container.public Data getFuelLaps(java.lang.String sLapsToAverage)
public Data getFuelLaps()
public Data getFuelLapsMaximum(int lapsToAverage)
lapsToAverage
- (Optional) The number of laps to average. This is passed to getFuelLevelPerLap(int, java.lang.String)
. Default 0.Data
container.public Data getFuelLapsMaximum(java.lang.String lapsToAverage)
public Data getFuelLapsMaximum()
public Data getFuelLevelAtStartFinish(java.lang.String UOM)
UOM
- (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 getFuelLevelAtStartFinish()
public Data getFuelLevelToFinish(int lapsToAverage, double laps, java.lang.String UOM)
PATH = /Car/(CARIDENTIFIER)/FuelLevelToFinish/(LAPSTOAVERAGE)/(LAPS)/(UOM)
lapsToAverage
- (Optional) The number of laps to average. This is passed to 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 getFuelLevelToFinish(java.lang.String lapsToAverage, java.lang.String lapsRemaining, java.lang.String UOM)
public Data getFuelLevelToFinish(java.lang.String lapsToAverage, java.lang.String lapsRemaining)
public Data getFuelLevelToFinish(java.lang.String lapsToAverage)
public Data getFuelLevelToFinish()
public Data getFuelLevelNeeded(int lapsToAverage, double laps, java.lang.String UOM)
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)
lapsToAverage
- (Optional) The number of laps to average. This is passed to 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 getFuelLevelNeeded(java.lang.String lapsToAverage, java.lang.String laps, java.lang.String UOM)
public Data getFuelLevelNeeded(java.lang.String lapsToAverage, java.lang.String laps)
public Data getFuelLevelNeeded(java.lang.String lapsToAverage)
public Data getFuelLevelNeeded()
public Data getFuelLevelPerLap(int lapsToAverage, java.lang.String UOM)
PATH = /Car/(CARIDENTIFIER)/FuelLevelPerLap/(LAPSTOAVERAGE)/(UOM)
lapsToAverage
- (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 getFuelLevelPerLap(java.lang.String lapsToAverage, java.lang.String UOM)
public Data getFuelLevelPerLap(java.lang.String lapsToAverage)
public Data getFuelLevelPerLap()
public Data getLatitudeAcceleration(java.lang.String UOM)
UOM
- (Optional) A unit of measure to return. Set to null or a blank string to use car's UOM.Data
container.public Data getLatitudeAcceleration()
public Data getLongitudeAcceleration(java.lang.String UOM)
UOM
- (Optional) A unit of measure to return. Set to null or a blank string to use car's UOM.Data
container.public Data getLongitudeAcceleration()
public Gauge _getGauge(java.lang.String gaugeType)
gaugeType
- One of the enumerated types defined by Gauge.Type
Gauge
public Data getGauge(java.lang.String gaugeType)
gaugeType
- (Optional) One of the enumerated types defined by Gauge.Type
, default All.Gauge
public Data getGauge()
public Data getHasAutomaticPitCommands()
Data
container.public Data getId()
PATH = /Car/(CARIDENTIFIER)/Id
Data
container.public Data getImageUrl()
Using 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.
public Data getIncidents()
Data
container.public Data getIncidentsTeam()
Data
container.public Data getIsBelowMinimumSpeed()
-minimum-speed-laps = 3 -minimum-speed-laps-leader = 3 -minimum-speed-percentage = 110The minimum speed uses lap times and is calculated by averaging the last (minimum-speed-laps-leader) green flag laps of the leader, multiplied by (minimum-speed-percentage). For example: if the average is 50 seconds, the minimum would be 55 seconds. After the car has completed at least the (minimum-speed-laps) since the last pit stop, and they are still on the track, each of the previous (minimum-speed-laps) are checked. If any of them are below the maximum lap time, then false is returned to indicate the car is okay. So, if all of them are above the maximum lap time, true is returned to indicate the car is too slow. NASCAR's minimum is the Poll Speed or whatever is appropriate at that point in the race, multiplied by 110%. So, to simulate "whatever is appropriate" automatically, the last (minimum-speed-laps-leader) laps of the leader is used.
Data
container.public Data getIsBlackFlag()
Data
container.public Data getIsBlueFlag()
Data
container.public Data getIsDisqualifyFlag()
Data
container.public Data getIsDriving()
Data
container.public Data getIsEqual(java.lang.String carIdentifier)
carIdentifier
- (Optional) Car as defined by Session.getCar(String)
. Default REFERENCE.Data
container.public Data getIsEqual()
public Data getIsFixedSetup()
Data
container.public Data getIsOverSpeedLimit()
Data
container.
Data.getState(java.lang.String)
public Data getIsPitSpeedLimiter()
Data
container.public Data getIsPaceCar()
Data
container.public Data getIsSpectator()
Data
container.public Data getIsUnderSpeedLimit()
Data
container.
Data.getState(java.lang.String)
public Data getIsYellowFlag()
Data
container.public Data getLap(java.lang.String lapType, int lapsToAverage)
Supported Reference Types are: AVERAGE, AVERAGESINCEPITTING, BEST, CAUTION, COMPLETED, COMPLETEDPERCENT, CURRENT, LED, PITTED, QUALIFYING, SESSIONBEST, SESSIONLAST, SINCEPITTING
lapType
- (Optional) as defined by Car.LapType
. Default CURRENT.lapsToAverage
- (Optional) as defined by Car.LapType
. Default 9999.Data
container.public Data getLap(java.lang.String lapType, java.lang.String lapsToAverage)
public Data getLap(java.lang.String lapType)
public Data getLap()
public Data getLapsToGo()
Data
container.public Data getLapTime(java.lang.String lapType, int lapsToAverage)
Supported Reference Types are: AVERAGE, AVERAGESINCEPITTING, BEST, CURRENT, FINISHLINE, QUALIFYING, RACESTART, SESSIONBEST, SESSIONLAST
PATH = /Car/(CARIDENTIFIER)/LapTime/(LAPTYPE)/(LAPSTOAVERAGE)
lapType
- (Optional) as defined by Car.LapType
. Default CURRENT.lapsToAverage
- (Optional) as defined by Car.LapType
. Default 9999.Data
container.public Data getLapTime(java.lang.String lapType, java.lang.String lapsToAverage)
public Data getLapTime(java.lang.String lapType)
public Data getLapTime()
public Data getLapTimeDelta(java.lang.String lapType)
Supported Reference Types are: BEST, OPTIMAL, SESSIONBEST, SESSIONLAST, SESSIONOPTIMAL
lapType
- (Optional) as defined by Car.LapType
. Default CURRENT.Data
container.public Data getLapTimeDelta()
public Data getLapTimeDeltaPercent(java.lang.String lapType)
Supported Reference Types are: BEST, OPTIMAL, SESSIONBEST, SESSIONLAST, SESSIONOPTIMAL
lapType
- as defined by Car.LapType
Data
container.public Data getLapTimeDeltaPercent()
public Data getLapTimeDeltaReference(java.lang.String lapType)
Supported Reference Types are: BEST, OPTIMAL, SESSIONBEST, SESSIONLAST, SESSIONOPTIMAL
lapType
- as defined by Car.LapType
. Default CURRENT.Data
container.public Data getLapTimeDeltaReference()
public Data getLapTimeProjected()
Data
container.public Data getLapTimes()
Data
container.public Data getLapInvalidFlags()
Data
container.public Data getLatitude(java.lang.String UOM)
UOM
- (Optional) A unit of measure to return. Defaults to degrees.public Data getLatitude()
public Data getLongitude(java.lang.String UOM)
UOM
- (Optional) A unit of measure to return. Defaults to degrees.public Data getLongitude()
public Data getManufacturerLogo()
public Data _getDataPublisherMaxTires()
public Data getMaxTires()
PATH = /Car/(CARIDENTIFIER)/MaxTires
1.2
public Data getMergePoint()
public Data getMergePointLatitude()
public Data getMergePointLongitude()
public Data getMessages()
Car.Message
.
You can display as is, or use it as an index to the the translation for a particular language.
For example: ";REPAIR;"
Data
container.public Data getName()
PATH = /Car/(CARIDENTIFIER)/Name
Data
container.public Data getNumber()
PATH = /Car/(CARIDENTIFIER)/Number
Data
container.public Data getNumberFont()
Data
container.public Data getNumberSlant()
Data
container.public Data getPitLocation()
public Data getPitSpeedLimit(java.lang.String UOM)
UOM
- (Optional) The unit of measure to return the result in. Default is the same UOM as the speedometer.public Data getPitSpeedLimit()
public Data getPitStopsRemaining(int lapstoaverage)
PATH = /Car/(CARIDENTIFIER)/PitStopsRemaining/{LAPSTOAVERAGE}
lapstoaverage
- (Optional) The number of laps to average to get the fuel mileage. Defaults to 0, your worst lap.Data
container.public Data getPitStopsRemaining(java.lang.String laps)
public Data getPitStopsRemaining()
public Data getPitTime()
PATH = /Car/(CARIDENTIFIER)/PitTime
Data
container.public Data getPitTimes()
public Data getPosition()
Data
container.public Data getPositionLowest()
Data
container.public Data getPositionHighest()
Data
container.public Data getPositionDelta()
Data
container.public Data getPositions()
Data
container.public Data getPositionsClass()
Data
container.public Data getPositionClass()
Data
container.public Data getPositionLowestClass()
Data
container.public Data getPositionHighestClass()
Data
container.public Data getPositionClassDelta()
Data
container.public Data getPositionQualifying()
Data
container.public Data getPositionClassQualifying()
Data
container.public Data getPushToPassRemaining()
Data
container.public Data getIsPushToPassActive()
Data
container.public Data getRadioChannel()
Data
container.public Data getRadioChannelName()
Data
container.public Data getRepairTime()
Data
container.public Data getRepairTimeOptional()
Data
container.public Data getRPMPitRoadSpeed()
Data
container.public Data getSector()
PATH = /Car/(CARIDENTIFIER)/Sector
Data
container.public Data getSpotterMessage()
Data
container.public Data getStartFinishTimes()
public Data getTeamName()
public Data setAdminFlag(boolean onOffFlag)
onOffFlag
- The admin status.Data
container.public Data setAdminFlag(java.lang.String onOffFlag)
public Data setBlackFlag(int quantity, java.lang.String uom)
PATH = /Car/(CARIDENTIFIER)/setBlackFlag/(SECONDS/LAPS)/(UOM)
quantity
- 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 setBlackFlag(java.lang.String quantity, java.lang.String uom)
public Data setBlackFlag(java.lang.String quantity)
public Data setBlackFlag()
public Data setCamera(java.lang.String cameraName)
cameraName
- (Optional) The name of the camera. Default to current camera.Data
container.public Data setCamera()
public Data setChat(java.lang.String text)
text
- The string to send to the chat windowData
container.public Data setChatFlag(boolean onOffFlag)
onOffFlag
- The chat status.Data
container.public Data setChatFlag(java.lang.String onOffFlag)
public Data setReloadPaint()
PATH = /Session/setReloadPaint
Data
container.public Data setDisqualifyFlag()
Data
container.public Data setEndOfLineFlag()
Data
container.public Data setClearPenaltiesFlag()
Data
container.public Data setRemoveFlag()
Data
container.public Data setWaveAroundFlag()
Data
container.public Data setRPMPitRoadSpeed(double rpm)
rpm
- The RPMs that is pit road speed.Data
container.public Data getStatus()
Car.Status
PATH = /Car/(CARIDENTIFIER)/Status
Data
container.public Data getStatusClass()
Data
container.public Data getWarnings()
Data
container.public java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>>> _getDefaultGauges()
public java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>>> _getSIMGauges()
public void _dumpGauges()
public void _postInitialization()