Class PrecipitationValue

java.lang.Object
eu.acclimatize.unison.PrecipitationValue
All Implemented Interfaces:
HarmonieItem

public class PrecipitationValue extends Object implements HarmonieItem
Stores the median, 20th percentile, and 80th percentile precipitation values.
  • Constructor Details

    • PrecipitationValue

      public PrecipitationValue(Double value, Double minvalue, Double maxvalue)
      Creates an instance of PrecipitationValue.
      Parameters:
      value - The median value.
      minvalue - The 20th percentile value.
      maxvalue - The 80th percentile value.
    • PrecipitationValue

      public PrecipitationValue()
      A zero argument constructor for JPA.
  • Method Details

    • ternary

      public boolean ternary()
      Checks whether the min and max values.
      Returns:
      Returns true if the min and max values are present and false otherwise.
    • printItem

      public void printItem(PrintWriter pw)
      Description copied from interface: HarmonieItem
      Prints the body in CSV format.
      Specified by:
      printItem in interface HarmonieItem
      Parameters:
      pw - The writer the body is printed to.