Class Weather.WeatherInfo
- java.lang.Object
-
- de.kaffeemitkoffein.tinyweatherforecastgermany.Weather.WeatherInfo
-
- Enclosing class:
- Weather
public static class Weather.WeatherInfo extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description Weather.Clouds
clouds
-
Constructor Summary
Constructors Constructor Description WeatherInfo()
WeatherInfo(int forecast_type)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
calculateMissingCondition()
Bitmap
getArrowBitmap(Context context, boolean fromWidget)
Bitmap
getBeaufortBitmap(Context context, boolean fromWidget)
int
getClouds()
double
getClouds_H_BsC()
int
getClouds_N05()
int
getClouds_Neff()
int
getClouds_Nh()
int
getClouds_Nl()
int
getClouds_Nlm()
int
getClouds_Nm()
int
getCondition()
double
getDewPointInCelsius()
int
getDewPointInCelsiusInt()
java.lang.String
getDewPointInCelsiusRoundedString()
int
getFlurriesInBeaufortInt()
int
getFlurriesInKmhInt()
int
getFlurriesInKnotsInt()
int
getFlurriesInMsInt()
java.lang.String
getFlurriesString(Context context, boolean unit)
int
getForecastType()
java.lang.Boolean
getIsDayTime()
double
getMaxTemperatureInCelsius()
int
getMaxTemperatureInCelsiusInt()
int
getMaxTemperatureInt()
java.lang.String
getMinMaxTemperatureInCelsiusIntString(boolean useSpaces)
double
getMinTemperature()
int
getMinTemperatureInCelsiusInt()
int
getMinTemperatureInt()
double
getPrecipitation()
java.lang.Integer[]
getPrecipitationDetails()
java.lang.String
getPrecipitationIntervalString()
java.lang.String
getPrecipitationString()
double
getPrecipitationTotal1h(java.lang.Double precipitationTotal1h)
java.lang.String
getPrecipitationUnitLower()
int
getPressure()
int
getProbDrizzle()
int
getProbFog()
int
getProbFreezingRain()
int
getProbPrecipitation()
int
getProbSolidPrecipitation()
int
getProbThunderStorms()
int
getProbVisibilityBelow1km()
int
getRelativeDay()
double
getRH()
int
getRHInt()
int
getSunDurationInHours()
int
getSunDurationInMinutes()
int
getSunDurationInSeconds()
double
getTd()
double
getTdInCelsius()
int
getTdInCelsiusInt()
double
getTemperature()
double
getTemperature5cmInCelsius()
int
getTemperature5cmInCelsiusInt()
double
getTemperatureInCelsius()
int
getTemperatureInCelsiusInt()
int
getTemperatureInt()
int
getTemperture5cmInt()
long
getTimestamp()
int
getUV()
int
getUvHazardIndex()
int
getVisibilityInMetres()
double
getVisibilityInMiles()
double
getVisibilityInNauticMiles()
double
getVisibilityInYards()
double
getWindDirection()
int
getWindDirectionInt()
java.lang.String
getWindDirectionString(Context context)
static Bitmap
getWindForecastTint(Bitmap arrowBitmap, java.util.ArrayList<Weather.WindData> windForecastList)
int
getWindSpeedInBeaufortInt()
int
getWindSpeedInKmhInt()
int
getWindSpeedInKnotsInt()
int
getWindSpeedInMsInt()
java.lang.String
getWindSpeedString(Context context, boolean unit)
Bitmap
getWindSymbol(Context context, int windDisplayType, boolean fromWidget)
java.lang.String
getWindUnitString(Context context)
boolean
hasClouds()
boolean
hasClouds_H_BsC()
boolean
hasClouds_N05()
boolean
hasClouds_Nh()
boolean
hasClouds_Nl()
boolean
hasClouds_Nlm()
boolean
hasClouds_Nm()
boolean
hasCondition()
boolean
hasFlurries()
boolean
hasIsDayTime()
boolean
hasMaxTemperature()
boolean
hasMinTemperature()
boolean
hasPrecipitation()
boolean
hasPrecipitationDetails()
boolean
hasPressure()
boolean
hasProbDrizzle()
boolean
hasProbFog()
boolean
hasProbFreezingRain()
boolean
hasProbPrecipitation()
boolean
hasProbSolidPrecipitation()
boolean
hasProbThunderstorms()
boolean
hasProbVisibilityBelow1km()
boolean
hasRH()
boolean
hasSunDuration()
boolean
hasTd()
boolean
hasTemperature()
boolean
hasTemperature5cm()
boolean
hasUV()
boolean
hasUvHazardIndex()
boolean
hasVisibility()
boolean
hasWindDirection()
boolean
hasWindSpeed()
boolean
isConditionCalculated()
boolean
isDaytime(Weather.WeatherLocation weatherLocation)
void
setClouds(java.lang.Integer clouds)
void
setClouds_H_BsC(java.lang.Double clouds)
void
setClouds_N05(java.lang.Integer clouds)
void
setClouds_Neff(java.lang.Integer clouds)
void
setClouds_Nh(java.lang.Integer clouds)
void
setClouds_Nl(java.lang.Integer clouds)
void
setClouds_Nlm(java.lang.Integer clouds)
void
setClouds_Nm(java.lang.Integer clouds)
void
setConditionCode(java.lang.Integer condition_code)
void
setFlurries(java.lang.Double flurries)
void
setForecastType(int i)
void
setHighTemperature(java.lang.Double temperature_high)
void
setIsDayTime(boolean b)
void
setLowTemperature(java.lang.Double temperature_low)
void
setPrecipitation(java.lang.Double precipitation)
void
setPrecipitationDetails(java.lang.Integer[] ints)
void
setPrecipitationTotal1h(java.lang.Double precipitationTotal1h)
void
setPressure(java.lang.Double pressure)
void
setProbDrizzle(java.lang.Integer prob_precipitation)
void
setProbFog(java.lang.Integer prob_fog)
void
setProbFreezingRain(java.lang.Integer prob_freezing_rain)
void
setProbPrecipitation(java.lang.Integer prob_precipitation)
void
setProbSolidPrecipitation(java.lang.Integer prob_solid_precipitation)
void
setProbThunderstorms(java.lang.Integer thunderstorms)
void
setProbVisibilityBelow1km(java.lang.Integer prob_visibility_below_1km)
void
setSunDuration(java.lang.Integer i)
void
setTd(java.lang.Double td)
void
setTemperature(java.lang.Double temperature)
void
setTemperature5cm(java.lang.Double temperature5cm)
void
setTimestamp(long timestamp)
void
setUV(java.lang.Double uv)
void
setUvHazardIndex(java.lang.Integer uvHazardIndex)
void
setVisibility(java.lang.Integer visibility)
void
setWindDirection(java.lang.Double wind_direction)
void
setWindSpeed(java.lang.Double wind_speed)
-
-
-
Field Detail
-
clouds
public Weather.Clouds clouds
-
-
Method Detail
-
setTimestamp
public void setTimestamp(long timestamp)
-
setForecastType
public void setForecastType(int i)
-
setConditionCode
public void setConditionCode(java.lang.Integer condition_code)
-
setTemperature
public void setTemperature(java.lang.Double temperature)
-
setTemperature5cm
public void setTemperature5cm(java.lang.Double temperature5cm)
-
setLowTemperature
public void setLowTemperature(java.lang.Double temperature_low)
-
setHighTemperature
public void setHighTemperature(java.lang.Double temperature_high)
-
setWindSpeed
public void setWindSpeed(java.lang.Double wind_speed)
-
setWindDirection
public void setWindDirection(java.lang.Double wind_direction)
-
setFlurries
public void setFlurries(java.lang.Double flurries)
-
setPrecipitationTotal1h
public void setPrecipitationTotal1h(java.lang.Double precipitationTotal1h)
-
setPrecipitation
public void setPrecipitation(java.lang.Double precipitation)
-
setClouds
public void setClouds(java.lang.Integer clouds)
-
setClouds_N05
public void setClouds_N05(java.lang.Integer clouds)
-
setClouds_Nl
public void setClouds_Nl(java.lang.Integer clouds)
-
setClouds_Nm
public void setClouds_Nm(java.lang.Integer clouds)
-
setClouds_Nh
public void setClouds_Nh(java.lang.Integer clouds)
-
setClouds_Nlm
public void setClouds_Nlm(java.lang.Integer clouds)
-
setClouds_H_BsC
public void setClouds_H_BsC(java.lang.Double clouds)
-
setClouds_Neff
public void setClouds_Neff(java.lang.Integer clouds)
-
setProbThunderstorms
public void setProbThunderstorms(java.lang.Integer thunderstorms)
-
setProbPrecipitation
public void setProbPrecipitation(java.lang.Integer prob_precipitation)
-
setProbDrizzle
public void setProbDrizzle(java.lang.Integer prob_precipitation)
-
setProbSolidPrecipitation
public void setProbSolidPrecipitation(java.lang.Integer prob_solid_precipitation)
-
setProbFreezingRain
public void setProbFreezingRain(java.lang.Integer prob_freezing_rain)
-
setProbFog
public void setProbFog(java.lang.Integer prob_fog)
-
setProbVisibilityBelow1km
public void setProbVisibilityBelow1km(java.lang.Integer prob_visibility_below_1km)
-
setVisibility
public void setVisibility(java.lang.Integer visibility)
-
setPressure
public void setPressure(java.lang.Double pressure)
-
setUV
public void setUV(java.lang.Double uv)
-
setTd
public void setTd(java.lang.Double td)
-
setUvHazardIndex
public void setUvHazardIndex(java.lang.Integer uvHazardIndex)
-
hasPrecipitationDetails
public boolean hasPrecipitationDetails()
-
setPrecipitationDetails
public void setPrecipitationDetails(java.lang.Integer[] ints)
-
setSunDuration
public void setSunDuration(java.lang.Integer i)
-
hasIsDayTime
public boolean hasIsDayTime()
-
setIsDayTime
public void setIsDayTime(boolean b)
-
getIsDayTime
public java.lang.Boolean getIsDayTime()
-
getTimestamp
public long getTimestamp()
-
getForecastType
public int getForecastType()
-
hasWindDirection
public boolean hasWindDirection()
-
getWindForecastTint
public static Bitmap getWindForecastTint(Bitmap arrowBitmap, java.util.ArrayList<Weather.WindData> windForecastList)
-
getArrowBitmap
public Bitmap getArrowBitmap(Context context, boolean fromWidget)
-
getBeaufortBitmap
public Bitmap getBeaufortBitmap(Context context, boolean fromWidget)
-
getWindDirectionString
public java.lang.String getWindDirectionString(Context context)
-
getWindSymbol
public Bitmap getWindSymbol(Context context, int windDisplayType, boolean fromWidget)
-
getWindUnitString
public java.lang.String getWindUnitString(Context context)
-
getWindSpeedString
public java.lang.String getWindSpeedString(Context context, boolean unit)
-
getFlurriesString
public java.lang.String getFlurriesString(Context context, boolean unit)
-
getWindDirection
public double getWindDirection()
-
getWindDirectionInt
public int getWindDirectionInt()
-
hasCondition
public boolean hasCondition()
-
getCondition
public int getCondition()
-
hasTemperature
public boolean hasTemperature()
-
getTemperature
public double getTemperature()
-
getTemperatureInt
public int getTemperatureInt()
-
getTemperatureInCelsius
public double getTemperatureInCelsius()
-
getTemperatureInCelsiusInt
public int getTemperatureInCelsiusInt()
-
hasTemperature5cm
public boolean hasTemperature5cm()
-
getTemperture5cmInt
public int getTemperture5cmInt()
-
getTemperature5cmInCelsius
public double getTemperature5cmInCelsius()
-
getTemperature5cmInCelsiusInt
public int getTemperature5cmInCelsiusInt()
-
hasMaxTemperature
public boolean hasMaxTemperature()
-
getMaxTemperatureInt
public int getMaxTemperatureInt()
-
getMaxTemperatureInCelsius
public double getMaxTemperatureInCelsius()
-
getMaxTemperatureInCelsiusInt
public int getMaxTemperatureInCelsiusInt()
-
hasMinTemperature
public boolean hasMinTemperature()
-
getMinTemperature
public double getMinTemperature()
-
getMinTemperatureInt
public int getMinTemperatureInt()
-
getMinTemperatureInCelsiusInt
public int getMinTemperatureInCelsiusInt()
-
getMinMaxTemperatureInCelsiusIntString
public java.lang.String getMinMaxTemperatureInCelsiusIntString(boolean useSpaces)
-
hasPrecipitation
public boolean hasPrecipitation()
-
getPrecipitationTotal1h
public double getPrecipitationTotal1h(java.lang.Double precipitationTotal1h)
-
getPrecipitation
public double getPrecipitation()
-
getPrecipitationIntervalString
public java.lang.String getPrecipitationIntervalString()
-
getPrecipitationString
public java.lang.String getPrecipitationString()
-
getPrecipitationUnitLower
public java.lang.String getPrecipitationUnitLower()
-
hasProbPrecipitation
public boolean hasProbPrecipitation()
-
getProbPrecipitation
public int getProbPrecipitation()
-
hasProbDrizzle
public boolean hasProbDrizzle()
-
getProbDrizzle
public int getProbDrizzle()
-
hasWindSpeed
public boolean hasWindSpeed()
-
getWindSpeedInMsInt
public int getWindSpeedInMsInt()
-
getWindSpeedInKmhInt
public int getWindSpeedInKmhInt()
-
getWindSpeedInBeaufortInt
public int getWindSpeedInBeaufortInt()
-
getWindSpeedInKnotsInt
public int getWindSpeedInKnotsInt()
-
hasFlurries
public boolean hasFlurries()
-
getFlurriesInMsInt
public int getFlurriesInMsInt()
-
getFlurriesInKmhInt
public int getFlurriesInKmhInt()
-
getFlurriesInBeaufortInt
public int getFlurriesInBeaufortInt()
-
getFlurriesInKnotsInt
public int getFlurriesInKnotsInt()
-
hasClouds
public boolean hasClouds()
-
getClouds
public int getClouds()
-
hasClouds_N05
public boolean hasClouds_N05()
-
getClouds_N05
public int getClouds_N05()
-
hasClouds_Nl
public boolean hasClouds_Nl()
-
getClouds_Nl
public int getClouds_Nl()
-
hasClouds_Nm
public boolean hasClouds_Nm()
-
getClouds_Nm
public int getClouds_Nm()
-
hasClouds_Nh
public boolean hasClouds_Nh()
-
getClouds_Nh
public int getClouds_Nh()
-
hasClouds_Nlm
public boolean hasClouds_Nlm()
-
getClouds_Nlm
public int getClouds_Nlm()
-
hasClouds_H_BsC
public boolean hasClouds_H_BsC()
-
getClouds_H_BsC
public double getClouds_H_BsC()
-
getClouds_Neff
public int getClouds_Neff()
-
hasProbThunderstorms
public boolean hasProbThunderstorms()
-
getProbThunderStorms
public int getProbThunderStorms()
-
hasProbSolidPrecipitation
public boolean hasProbSolidPrecipitation()
-
getProbSolidPrecipitation
public int getProbSolidPrecipitation()
-
hasProbFreezingRain
public boolean hasProbFreezingRain()
-
getProbFreezingRain
public int getProbFreezingRain()
-
hasProbFog
public boolean hasProbFog()
-
getProbFog
public int getProbFog()
-
hasVisibility
public boolean hasVisibility()
-
getVisibilityInMetres
public int getVisibilityInMetres()
-
getVisibilityInNauticMiles
public double getVisibilityInNauticMiles()
-
getVisibilityInMiles
public double getVisibilityInMiles()
-
getVisibilityInYards
public double getVisibilityInYards()
-
hasProbVisibilityBelow1km
public boolean hasProbVisibilityBelow1km()
-
getProbVisibilityBelow1km
public int getProbVisibilityBelow1km()
-
hasPressure
public boolean hasPressure()
-
getPressure
public int getPressure()
-
hasUV
public boolean hasUV()
-
getUV
public int getUV()
-
hasTd
public boolean hasTd()
-
getTd
public double getTd()
-
getTdInCelsius
public double getTdInCelsius()
-
getTdInCelsiusInt
public int getTdInCelsiusInt()
-
hasRH
public boolean hasRH()
-
getRH
public double getRH()
-
getDewPointInCelsius
public double getDewPointInCelsius()
-
getDewPointInCelsiusInt
public int getDewPointInCelsiusInt()
-
getDewPointInCelsiusRoundedString
public java.lang.String getDewPointInCelsiusRoundedString()
-
getRHInt
public int getRHInt()
-
isDaytime
public boolean isDaytime(Weather.WeatherLocation weatherLocation)
-
calculateMissingCondition
public boolean calculateMissingCondition()
-
isConditionCalculated
public boolean isConditionCalculated()
-
getPrecipitationDetails
public java.lang.Integer[] getPrecipitationDetails()
-
hasSunDuration
public boolean hasSunDuration()
-
getSunDurationInSeconds
public int getSunDurationInSeconds()
-
getSunDurationInMinutes
public int getSunDurationInMinutes()
-
getSunDurationInHours
public int getSunDurationInHours()
-
getRelativeDay
public int getRelativeDay()
-
hasUvHazardIndex
public boolean hasUvHazardIndex()
-
getUvHazardIndex
public int getUvHazardIndex()
-
-