Serializable
Currently
, HourlyDataPoint
public class DataPoint extends Object implements Serializable
Constructor | Description |
---|---|
DataPoint() |
public Instant getTime()
public void setTime(Instant time)
time
- The UNIX time at which this data point begins. minutely data point are always aligned to the top of the minute, hourly data point objects to the top of the hour,
and daily data point objects to midnight of the day, all according to the local time zone.public String getSummary()
public void setSummary(String summary)
summary
- A human-readable text summary of this data point. (This property has millions of possible values, so don’t use it for automated purposes: use the icon
property, instead!)public String getIcon()
public void setIcon(String icon)
icon
- A machine-readable text summary of this data point, suitable for selecting an icon for display. If defined, this property will have one of the following values:
clear-day, clear-night, rain, snow, sleet, wind, fog, cloudy, partly-cloudy-day, or partly-cloudy-night. (Developers should ensure that a sensible default is defined, as
additional values, such as hail, thunderstorm, or tornado, may be defined in the future.)public Double getPrecipIntensity()
public void setPrecipIntensity(Double precipIntensity)
precipIntensity
- The intensity (in inches of liquid water per hour) of precipitation occurring at the given time. This value is conditional on probability (that is,
assuming any precipitation occurs at all) for minutely data points, and unconditional otherwise.public Double getPrecipProbability()
public void setPrecipProbability(Double precipProbability)
precipProbability
- The probability of precipitation occurring, between 0 and 1, inclusive.public Double getTemperature()
public void setTemperature(Double temperature)
temperature
- The air temperature in degrees Fahrenheit.public Double getApparentTemperature()
public void setApparentTemperature(Double apparentTemperature)
apparentTemperature
- The apparent (or “feels like”) temperature in degrees Fahrenheit.public Double getDewPoint()
public void setDewPoint(Double dewPoint)
dewPoint
- The dew point in degrees Fahrenheit.public Double getHumidity()
public void setHumidity(Double humidity)
humidity
- The relative humidity, between 0 and 1, inclusive.public Double getWindSpeed()
public void setWindSpeed(Double windSpeed)
windSpeed
- The wind speed in miles per hour.public Integer getWindBearing()
public void setWindBearing(Integer windBearing)
windBearing
- The direction that the wind is coming from in degrees, with true north at 0° and progressing clockwise. (If windSpeed is zero, then this value will not be
defined.)public Double getCloudCover()
public void setCloudCover(Double cloudCover)
cloudCover
- The percentage of sky occluded by clouds, between 0 and 1, inclusive.public Double getOzone()
public void setOzone(Double ozone)
ozone
- The columnar density of total atmospheric ozone at the given time in Dobson units.public Double getPressure()
public void setPressure(Double pressure)
pressure
- The sea-level air pressure in millibars.public String getPrecipType()
public void setPrecipType(String precipType)
precipType
- The type of precipitation occurring at the given time. If defined, this property will have one of the following values: "rain", "snow", or "sleet" (which
refers to each of freezing rain, ice pellets, and “wintery mix”). (If precipIntensity is zero, then this property will not be defined.)public Double getVisibility()
public void setVisibility(Double visibility)
visibility
- The average visibility in miles, capped at 10 miles.Copyright © 2018. All rights reserved.