Package eu.acclimatize.unison
Class PrecipitationValue
java.lang.Object
eu.acclimatize.unison.PrecipitationValue
- All Implemented Interfaces:
HarmonieItem
Stores the median, 20th percentile, and 80th percentile
precipitation values.
-
Constructor Summary
ConstructorsConstructorDescriptionA zero argument constructor for JPA.PrecipitationValue(Double value, Double minvalue, Double maxvalue) Creates an instance of PrecipitationValue. -
Method Summary
Modifier and TypeMethodDescriptionvoidprintItem(PrintWriter pw) Prints the body in CSV format.booleanternary()Checks whether the min and max values.
-
Constructor Details
-
PrecipitationValue
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
Description copied from interface:HarmonieItemPrints the body in CSV format.- Specified by:
printItemin interfaceHarmonieItem- Parameters:
pw- The writer the body is printed to.
-