|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.agmodel.physical.JigsawQuantity
Represents a measurement which may have estimated or missing components.
For example, a daily average temperature derived from hourly averages which include some missing data,
or hourly data which has been linearly interpolated over a short gap of a couple of hours.
This class lets applications choose how to handle such partial or estimated data.
| Field Summary | |
static float |
COMPLETE
Indicates that there was not any missing data during the interval this value represents |
static float |
DEFAULTMISSINGTHRESHOLD
The default maximum threshold for data coverage to be regarded as missing. |
static float |
DEFAULTSUFFICIENTTHRESHOLD
The default minimum threshold for data coverage to be regarded as sufficient. |
static float |
DEVOID
Indicates that there was not any data available within in the interval this value represents |
static JigsawQuantity |
EMPTY
Indicates that there was not any data available within in the interval this value represents |
| Constructor Summary | |
JigsawQuantity(double amount,
float coverage,
boolean spatiallyInterpolated,
boolean temporallyInterpolated)
Creates a jigsaw quantity |
|
| Method Summary | |
double |
getAmount()
Returns the amount, without any indication of quality. |
float |
getCoverage()
The extent to which the raw data required to calculate the value were available. |
static String |
getMissing()
Gets the string output by toString{} to represent DEVOID values |
static float |
getMissingThreshold()
Gets the value used as the threshold for missing values. Data with coverage equal to or less than this value is regarded as missing. |
static NumberFormat |
getNumberFormat()
Gets the internal number format used by toString() |
static float |
getSufficientThreshold()
Gets the value used as the threshold for missing values. Data with coverage equal to or less than this value is regarded as missing. |
boolean |
isSpatiallyInterpolated()
Whether temporal interpolation was used to estimate the value |
boolean |
isTemporallyInterpolated()
Whether spatial interpolation was used to estimate the value |
void |
setAmount(double amount)
Sets the amount |
static void |
setMissing(String toOutput)
Sets the string output by toString{} to represent DEVOID values |
static void |
setNumberFormat(NumberFormat format)
Sets the internal number format used by toString() |
static void |
setThresholds(float aMissingThreshold,
float aSufficientThreshold)
Sets the value used as the threshold for missing values. Data with coverage equal to or less than this value is regarded as missing. |
String |
toString()
Creates a default string representation of the value. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final float COMPLETE
public static final float DEVOID
public static final float DEFAULTMISSINGTHRESHOLD
public static final float DEFAULTSUFFICIENTTHRESHOLD
public static final JigsawQuantity EMPTY
| Constructor Detail |
public JigsawQuantity(double amount,
float coverage,
boolean spatiallyInterpolated,
boolean temporallyInterpolated)
amount - the value of the measurementcoverage - the extent to which the raw data required to calculate the value were available, ranging from COMPLETE to DEVOIDspatiallyInterpolated - whether spatial interpolation was used to estimate the value.temporallyInterpolated - whether temporal interpolation was used to estimate the value.| Method Detail |
public static void setMissing(String toOutput)
public static String getMissing()
public static void setThresholds(float aMissingThreshold,
float aSufficientThreshold)
public static float getMissingThreshold()
public static float getSufficientThreshold()
public static void setNumberFormat(NumberFormat format)
format - the NumberFormat to use (cloned by the method)public static NumberFormat getNumberFormat()
public boolean isTemporallyInterpolated()
public boolean isSpatiallyInterpolated()
public float getCoverage()
COMPLETE if all the data were available, DEVOID if no data were availablepublic double getAmount()
public void setAmount(double amount)
public String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||