Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Internet Explorer alert
This browser is not recommended for use with smartdevicelink.com, and may not function properly. Upgrade to a different browser to guarantee support of all features.
close alert
To Top Created with Sketch. To Top
To Bottom Created with Sketch. To Bottom
JavaSE Documentation
WeatherData

Class WeatherData

Hierarchy

java.lang.Object
     com.smartdevicelink.proxy.RPCStruct

Package
com.smartdevicelink.proxy.rpc

Quick Jump

Fields
Constructors
Methods

Fields

KEY_CURRENT_TEMPERATURE

public static final java.lang.String KEY_CURRENT_TEMPERATURE
Constant Value
"currentTemperature"

KEY_TEMPERATURE_HIGH

public static final java.lang.String KEY_TEMPERATURE_HIGH
Constant Value
"temperatureHigh"

KEY_TEMPERATURE_LOW

public static final java.lang.String KEY_TEMPERATURE_LOW
Constant Value
"temperatureLow"

KEY_APPARENT_TEMPERATURE

public static final java.lang.String KEY_APPARENT_TEMPERATURE
Constant Value
"apparentTemperature"

KEY_APPARENT_TEMPERATURE_HIGH

public static final java.lang.String KEY_APPARENT_TEMPERATURE_HIGH
Constant Value
"apparentTemperatureHigh"

KEY_APPARENT_TEMPERATURE_LOW

public static final java.lang.String KEY_APPARENT_TEMPERATURE_LOW
Constant Value
"apparentTemperatureLow"

KEY_WEATHER_SUMMARY

public static final java.lang.String KEY_WEATHER_SUMMARY
Constant Value
"weatherSummary"

KEY_TIME

public static final java.lang.String KEY_TIME
Constant Value
"time"

KEY_HUMIDITY

public static final java.lang.String KEY_HUMIDITY
Constant Value
"humidity"

KEY_CLOUD_COVER

public static final java.lang.String KEY_CLOUD_COVER
Constant Value
"cloudCover"

KEY_MOON_PHASE

public static final java.lang.String KEY_MOON_PHASE
Constant Value
"moonPhase"

KEY_WIND_BEARING

public static final java.lang.String KEY_WIND_BEARING
Constant Value
"windBearing"

KEY_WIND_GUST

public static final java.lang.String KEY_WIND_GUST
Constant Value
"windGust"

KEY_WIND_SPEED

public static final java.lang.String KEY_WIND_SPEED
Constant Value
"windSpeed"

KEY_NEAREST_STORM_BEARING

public static final java.lang.String KEY_NEAREST_STORM_BEARING
Constant Value
"nearestStormBearing"

KEY_NEAREST_STORM_DISTANCE

public static final java.lang.String KEY_NEAREST_STORM_DISTANCE
Constant Value
"nearestStormDistance"

KEY_PRECIP_ACCUMULATION

public static final java.lang.String KEY_PRECIP_ACCUMULATION
Constant Value
"precipAccumulation"

KEY_PRECIP_INTENSITY

public static final java.lang.String KEY_PRECIP_INTENSITY
Constant Value
"precipIntensity"

KEY_PRECIP_PROBABILITY

public static final java.lang.String KEY_PRECIP_PROBABILITY
Constant Value
"precipProbability"

KEY_PRECIP_TYPE

public static final java.lang.String KEY_PRECIP_TYPE
Constant Value
"precipType"

KEY_VISIBILITY

public static final java.lang.String KEY_VISIBILITY
Constant Value
"visibility"

KEY_WEATHER_ICON

public static final java.lang.String KEY_WEATHER_ICON
Constant Value
"weatherIcon"

Inherited Fields

From Class Fields
com.smartdevicelink.proxy.RPCStruct KEY_BULK_DATA, KEY_PROTECTED, store

Constructors

WeatherData()

public WeatherData()

WeatherData( java.util.Hashtable<java.lang.String, java.lang.Object> hash )

public WeatherData(java.util.Hashtable<java.lang.String, java.lang.Object> hash)

Constructor Parameters

hash

Methods

setCurrentTemperature( Temperature currentTemperature )

public com.smartdevicelink.proxy.rpc.WeatherData setCurrentTemperature(Temperature currentTemperature)

Method Parameters

currentTemperature
-

getCurrentTemperature()

public com.smartdevicelink.proxy.rpc.Temperature getCurrentTemperature()

setTemperatureHigh( Temperature temperatureHigh )

public com.smartdevicelink.proxy.rpc.WeatherData setTemperatureHigh(Temperature temperatureHigh)

Method Parameters

temperatureHigh
-

getTemperatureHigh()

public com.smartdevicelink.proxy.rpc.Temperature getTemperatureHigh()

setTemperatureLow( Temperature temperatureLow )

public com.smartdevicelink.proxy.rpc.WeatherData setTemperatureLow(Temperature temperatureLow)

Method Parameters

temperatureLow
-

getTemperatureLow()

public com.smartdevicelink.proxy.rpc.Temperature getTemperatureLow()

setApparentTemperature( Temperature apparentTemperature )

public com.smartdevicelink.proxy.rpc.WeatherData setApparentTemperature(Temperature apparentTemperature)

Method Parameters

apparentTemperature
-

getApparentTemperature()

public com.smartdevicelink.proxy.rpc.Temperature getApparentTemperature()

setApparentTemperatureHigh( Temperature apparentTemperatureHigh )

public com.smartdevicelink.proxy.rpc.WeatherData setApparentTemperatureHigh(Temperature apparentTemperatureHigh)

Method Parameters

apparentTemperatureHigh
-

getApparentTemperatureHigh()

public com.smartdevicelink.proxy.rpc.Temperature getApparentTemperatureHigh()

setApparentTemperatureLow( Temperature apparentTemperatureLow )

public com.smartdevicelink.proxy.rpc.WeatherData setApparentTemperatureLow(Temperature apparentTemperatureLow)

Method Parameters

apparentTemperatureLow
-

getApparentTemperatureLow()

public com.smartdevicelink.proxy.rpc.Temperature getApparentTemperatureLow()

setWeatherSummary( String weatherSummary )

public com.smartdevicelink.proxy.rpc.WeatherData setWeatherSummary(String weatherSummary)

Method Parameters

weatherSummary
-

getWeatherSummary()

public java.lang.String getWeatherSummary()

setTime( DateTime time )

public com.smartdevicelink.proxy.rpc.WeatherData setTime(DateTime time)

Method Parameters

time
-

getTime()

public com.smartdevicelink.proxy.rpc.DateTime getTime()

setHumidity( Float humidity )

minValue: 0, maxValue: 1

public com.smartdevicelink.proxy.rpc.WeatherData setHumidity(Float humidity)

Method Parameters

humidity
- percentage humidity

getHumidity()

minValue: 0, maxValue: 1

public java.lang.Float getHumidity()

setCloudCover( Float cloudCover )

minValue: 0, maxValue: 1

public com.smartdevicelink.proxy.rpc.WeatherData setCloudCover(Float cloudCover)

Method Parameters

cloudCover
- cloud cover

getCloudCover()

minValue: 0, maxValue: 1

public java.lang.Float getCloudCover()

setMoonPhase( Float moonPhase )

minValue: 0, maxValue: 1

public com.smartdevicelink.proxy.rpc.WeatherData setMoonPhase(Float moonPhase)

Method Parameters

moonPhase
- percentage of the moon seen, e.g. 0 = no moon, 0.25 = quarter moon

getMoonPhase()

minValue: 0, maxValue: 1

public java.lang.Float getMoonPhase()

setWindBearing( Integer windBearing )

public com.smartdevicelink.proxy.rpc.WeatherData setWindBearing(Integer windBearing)

Method Parameters

windBearing
- In degrees, true north at 0 degrees

getWindBearing()

public java.lang.Integer getWindBearing()

setWindGust( Float windGust )

public com.smartdevicelink.proxy.rpc.WeatherData setWindGust(Float windGust)

Method Parameters

windGust
- km/hr

getWindGust()

public java.lang.Float getWindGust()

setWindSpeed( Float windSpeed )

public com.smartdevicelink.proxy.rpc.WeatherData setWindSpeed(Float windSpeed)

Method Parameters

windSpeed
- km/hr

getWindSpeed()

public java.lang.Float getWindSpeed()

setNearestStormBearing( Integer nearestStormBearing )

public com.smartdevicelink.proxy.rpc.WeatherData setNearestStormBearing(Integer nearestStormBearing)

Method Parameters

nearestStormBearing
- In degrees, true north at 0 degrees

getNearestStormBearing()

public java.lang.Integer getNearestStormBearing()

setNearestStormDistance( Integer nearestStormDistance )

public com.smartdevicelink.proxy.rpc.WeatherData setNearestStormDistance(Integer nearestStormDistance)

Method Parameters

nearestStormDistance
- In km

getNearestStormDistance()

public java.lang.Integer getNearestStormDistance()

setPrecipAccumulation( Float precipAccumulation )

public com.smartdevicelink.proxy.rpc.WeatherData setPrecipAccumulation(Float precipAccumulation)

Method Parameters

precipAccumulation
- cm

getPrecipAccumulation()

public java.lang.Float getPrecipAccumulation()

setPrecipIntensity( Float precipIntensity )

public com.smartdevicelink.proxy.rpc.WeatherData setPrecipIntensity(Float precipIntensity)

Method Parameters

precipIntensity
- cm of water per hour

getPrecipIntensity()

public java.lang.Float getPrecipIntensity()

setPrecipProbability( Float precipProbability )

minValue: 0, maxValue: 1

public com.smartdevicelink.proxy.rpc.WeatherData setPrecipProbability(Float precipProbability)

Method Parameters

precipProbability
- percentage chance

getPrecipProbability()

minValue: 0, maxValue: 1

public java.lang.Float getPrecipProbability()

setPrecipType( String precipType )

public com.smartdevicelink.proxy.rpc.WeatherData setPrecipType(String precipType)

Method Parameters

precipType
- e.g. "rain", "snow", "sleet", "hail"

getPrecipType()

public java.lang.String getPrecipType()

setWeatherIcon( Image weatherIcon )

public com.smartdevicelink.proxy.rpc.WeatherData setWeatherIcon(Image weatherIcon)

Method Parameters

weatherIcon
-

getWeatherIcon()

public com.smartdevicelink.proxy.rpc.Image getWeatherIcon()

setVisibility( Float visibility )

public com.smartdevicelink.proxy.rpc.WeatherData setVisibility(Float visibility)

Method Parameters

visibility
- In km

getVisibility()

public java.lang.Float getVisibility()

Inherited Methods

From Class Methods
com.smartdevicelink.proxy.RPCStruct getStoreValue, getStore, deserializeJSON, serializeJSON, serializeJSON, format, getBulkData, setBulkData, setPayloadProtected, isPayloadProtected, getMessageTypeName, hasKey, setValue, getValue, getObject, formatObject, getValueForString, getString, getInteger, getDouble, getFloat, getBoolean, getLong, clone, equals, hashCode
java.lang.Object getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize
View on GitHub.com
Previous Section Next Section