public class iRacingTrack extends Track
Track.Category, Track.SectorType, Track.TrackLocation, Track.Type
Constructor and Description |
---|
iRacingTrack(iRacingSIMPlugin SIMPlugin) |
Modifier and Type | Method and Description |
---|---|
Data |
getCategory()
Returns the track category as defined by
Track.Category |
Data |
getCity()
Returns the city of where the track is as reported by the SIM SIMPlugin.
|
Data |
getCondition()
Returns the track condition as reported by the SIM SIMPlugin.
|
Data |
getConfiguration()
Returns the track configuration as reported by the SIM SIMPlugin.
|
Data |
getCountry()
Returns the country code of where the track is as reported by the SIM SIMPlugin.
|
Data |
getDescription()
Returns the description of the track.
|
Data |
getLength(java.lang.String UOM)
Returns the length of the track using the unit of measure the distance of this track is normally reported in.
|
Data |
getName()
Returns the name of the track as reported by the SIM.
|
Data |
getPitSpeedLimit(java.lang.String UOM)
Returns the Pit Speed Limit for this session as reported by the SIM SIMPlugin.
|
Data |
getSectors(java.lang.String sectorType,
java.lang.String UOM)
Returns an array of sector starting and ending points.
|
Data |
getTemp(java.lang.String UOM)
Returns the current temperature of the track.
|
Data |
getType()
Returns the track's type as defined by
Track.Type |
Data |
getWeatherFogLevel()
Returns the fog level as a percentage.
|
Data |
getWeatherRelativeHumidity()
Returns the relative humidity as a percentage.
|
Data |
getWeatherSkies()
Returns the condition of the skies, like "Partly Cloudy".
|
Data |
getWeatherTemp(java.lang.String UOM)
Returns the current ambient temperature at the track.
|
Data |
getWeatherWindDirection(java.lang.String UOM)
Returns the wind direction, where East is zero degrees at 3 o'clock.
|
Data |
getWeatherWindSpeed(java.lang.String UOM)
Returns the wind speed.
|
_getMergePoint, _maxPercentage, getBearing, getBearing, getBearing, getBearing, getBearing, getFinishLineRotation, getFinishLineRotation, getImage, getImage, getLatitude, getLatitude, getLatitude, getLatitude, getLatitude, getLength, getLongitude, getLongitude, getLongitude, getLongitude, getLongitude, getMap, getNorth, getNorth, getPath, getPath, getPath, getPitSpeedLimit, getResolution, getResolution, getSectors, getSectors, getTemp, getTimeZone, getWeatherTemp, getWeatherWindDirection, getWeatherWindSpeed, reload
public iRacingTrack(iRacingSIMPlugin SIMPlugin)
public Data getCategory()
Track
Track.Category
PATH = /Track/Category
getCategory
in class Track
Data
container.public Data getCity()
Track
PATH = /Track/City
public Data getCondition()
Track
PATH = /Track/Condition
getCondition
in class Track
Data
container.public Data getConfiguration()
Track
PATH = /Track/Configuration
getConfiguration
in class Track
Data
container.public Data getCountry()
Track
PATH = /Track/Country
getCountry
in class Track
Data
container.public Data getDescription()
Track
PATH = /Track/Description
getDescription
in class Track
Data
container.public Data getLength(java.lang.String UOM)
Track
PATH = /Track/Length/(UOM)
public Data getName()
Track
For example: atlanta_qualoval
PATH = /Track/Name
public Data getPitSpeedLimit(java.lang.String UOM)
Track
PATH = /Track/PitSpeedLimit/(UOM)
getPitSpeedLimit
in class Track
UOM
- (Optional) The unit of measure to return the speed limit in, default to the track's UOM.public Data getSectors(java.lang.String sectorType, java.lang.String UOM)
Track
getSectors
in class Track
sectorType
- (optional) Indicates the type of the values being returned. Valid values are Track.SectorType
, PERCENTAGE, COORDINATES. Defaults PERCENTAGE.UOM
- (optional) Specifies the unit of measure to return. %, RAD, DEG. Default is % and DEG.Data
container.public Data getTemp(java.lang.String UOM)
Track
PATH = /Track/Temp/(UOM)
public Data getType()
Track
Track.Type
PATH = /Track/Type
public Data getWeatherFogLevel()
Track
PATH = /Track/WeatherFogLevel
getWeatherFogLevel
in class Track
Data
container.public Data getWeatherRelativeHumidity()
Track
getWeatherRelativeHumidity
in class Track
Data
container.public Data getWeatherSkies()
Track
PATH = /Track/WeatherSkies
getWeatherSkies
in class Track
Data
container.public Data getWeatherTemp(java.lang.String UOM)
Track
PATH = /Track/WeatherTemp/(UOM)
getWeatherTemp
in class Track
UOM
- (Optional) The unit of measure to convert the temperature in, default to track's UOM.Data
container.public Data getWeatherWindDirection(java.lang.String UOM)
Track
getWeatherWindDirection
in class Track
UOM
- (Optional) The unit of measure to return the wind direction in, defaults to "deg".Data
container.public Data getWeatherWindSpeed(java.lang.String UOM)
Track
getWeatherWindSpeed
in class Track
UOM
- (Optional) The unit of measure to return the wind speed in, defaults to track's UOM for Pit Road Speed.Data
container.