Class Pollen


  • public class Pollen
    extends java.lang.Object
    • Constructor Detail

      • Pollen

        public Pollen()
      • Pollen

        public Pollen​(Pollen source)
    • Method Detail

      • getMinMax

        public static int[] getMinMax​(java.lang.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,
                                                 java.util.ArrayList<Pollen> pollenArrayList)
      • GetPollenData

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

        public static java.util.ArrayList<Pollen> GetPollenData​(Context context)
      • getNextPollenUpdateTime

        public static long getNextPollenUpdateTime​(Context context)
      • getLastPollenUpdateTime

        public static long getLastPollenUpdateTime​(Context context)
      • isUpdateDue

        public static boolean isUpdateDue​(Context context)
      • getDayShift

        public static int getDayShift​(Context context)