public enum PredictorType extends java.lang.Enum<PredictorType>
Enum Constant and Description |
---|
AVERAGE
For an extra predictor that is normalized such that the length of the
period has no effect e.g. an
AVERAGE measure of
occupancy could be the percentage of full occupancy. |
CUMULATIVE
For an extra predictor that increases with time and is naturally larger
over longer periods e.g. a
CUMULATIVE measure of
occupancy could be the total person-hours worked. |
Modifier and Type | Method and Description |
---|---|
static PredictorType |
fromString(java.lang.String string)
|
java.lang.String |
toString()
Returns a non-null, non-empty string representation of this object in the
format required to specify an
PredictorType in the request
XML ("Cumulative" or "Average" ). |
static PredictorType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PredictorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PredictorType CUMULATIVE
CUMULATIVE
measure of
occupancy could be the total person-hours worked. If a typical day saw
110 person hours, a typical 5-day week might see 770 person hours (i.e.
larger figures for longer periods).public static final PredictorType AVERAGE
AVERAGE
measure of
occupancy could be the percentage of full occupancy. A building could be
50% occupied for a week, or a month, or a year – longer periods
would not mean larger figures.public static PredictorType[] values()
for (PredictorType c : PredictorType.values()) System.out.println(c);
public static PredictorType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String toString()
PredictorType
in the request
XML ("Cumulative"
or "Average"
).toString
in class java.lang.Enum<PredictorType>
public static PredictorType fromString(java.lang.String string)
java.lang.NullPointerException
- if string
is null
.java.lang.IllegalArgumentException
- if string
is not one of
"Cumulative"
or "Average"
.
See www.degreedays.net/api/ for more about the Degree Days.net API.
You can sign up for a Degree Days.net API account and read the integration guide that is useful and applicable whether you are using Java or not.