java.lang.Object
de.kaffeemitkoffein.tinyweatherforecastgermany.Pollen

public class Pollen extends Object
  • Field Details

  • Constructor Details

    • Pollen

      public Pollen()
    • Pollen

      public Pollen(Pollen source)
  • Method Details

    • getMinMax

      public static int[] getMinMax(String source)
    • getValueArray

      public int[] getValueArray(int type)
    • getPollenLoad

      public int getPollenLoad(Context context, int type, int timeParam)
      Returns the pollen load (0-6) for the pollen type on a given day.
      Parameters:
      context - the calling context
      type - pollen type, e.g. Ambrosia. Valid values are 0-7.
      timeParam - 0 = today, 1 = tomorrow, 2 = day after tomorrow.
      Returns:
      the pollen load (0-6). Will return -1 when the load cannot be determined, either because there is no data and/or the parameters are invalid.
    • WritePollenToDatabase

      public static void WritePollenToDatabase(Context context, ArrayList<Pollen> pollenArrayList)
    • GetPollenData

      public static Pollen GetPollenData(Context context, PollenArea pollenArea)
    • GetPollenData

      public static ArrayList<Pollen> GetPollenData(Context context)
    • getNextPollenUpdateTime

      public static long getNextPollenUpdateTime(Context context)
    • getLastPollenUpdateTime

      public static long getLastPollenUpdateTime(Context context)
    • getDayShift

      public int getDayShift(Context context)
      Determines day shift for some marginal conditions where the number of pollen forecast days is below three.
      Parameters:
      context -
      Returns:
      day shift in number of days, always zero (no shift necessary) or positive.