Package | Description |
---|---|
net.degreedays.api.data |
For specifying and receiving degree-day data and temperature data from the API.
|
net.degreedays.api.data.impl |
Implementations of abstract types from
net.degreedays.api.data . |
net.degreedays.api.regression |
For using the API to run regressions against your energy-usage data.
|
Modifier and Type | Method and Description |
---|---|
static Temperature |
Temperature.celsius(double value)
Returns a non-null
Temperature object with the specified
Celsius temperature rounded to the nearest 0.1 C. |
static Temperature |
Temperature.fahrenheit(double value)
Returns a non-null
Temperature object with the specified
Fahrenheit temperature rounded to the nearest 0.1 F. |
Modifier and Type | Method and Description |
---|---|
static java.util.SortedSet<Temperature> |
Temperature.celsiusRange(double firstValue,
double lastValue,
double step)
Returns a non-null low-to-high
SortedSet of
Temperature objects, with Celsius values running from
firstValue to lastValue (inclusive), and the
specified step between each consecutive temperature. |
static java.util.SortedSet<Temperature> |
Temperature.fahrenheitRange(double firstValue,
double lastValue,
double step)
Returns a non-null low-to-high
SortedSet of
Temperature objects, with Fahrenheit values running from
firstValue to lastValue (inclusive), and the
specified step between each consecutive temperature. |
java.util.SortedSet<Temperature> |
TemperatureUnit.range(double firstValue,
double lastValue,
double step)
Returns a non-null low-to-high
SortedSet of
Temperature objects, with values running from
firstValue to lastValue (inclusive), and the
specified step between each consecutive temperature. |
Modifier and Type | Method and Description |
---|---|
int |
Temperature.compareTo(Temperature comparisonTemperature)
Compares two
Temperature objects for low-to-high ordering. |
static CoolingDegreeDaysCalculation |
Calculation.coolingDegreeDays(Temperature baseTemperature)
Returns a non-null
CoolingDegreeDaysCalculation object with
the specified base temperature. |
static HeatingDegreeDaysCalculation |
Calculation.heatingDegreeDays(Temperature baseTemperature)
Returns a non-null
HeatingDegreeDaysCalculation object with
the specified base temperature. |
Modifier and Type | Method and Description |
---|---|
Temperature |
HeatingDegreeDaysCalculation.baseTemperature()
Returns the non-null base temperature of the heating-degree-days
calculation.
|
Temperature |
CoolingDegreeDaysCalculation.baseTemperature()
Returns the non-null base temperature of the cooling-degree-days
calculation.
|
Constructor and Description |
---|
CoolingDegreeDaysCalculation(Temperature baseTemperature)
Constructs a
CoolingDegreeDaysCalculation object with the
specified base temperature. |
HeatingDegreeDaysCalculation(Temperature baseTemperature)
Constructs a
HeatingDegreeDaysCalculation object with the
specified base temperature. |
Modifier and Type | Method and Description |
---|---|
Temperature |
DegreeDaysRegressionComponent.baseTemperature()
Returns the non-null base temperature of the degree days this regression
component was calculated with.
|
Temperature |
RegressionSpec.getCoolingBaseTemperature()
Returns the non-null base temperature to be used for the cooling degree
days in the specified regression, or throws an
IllegalStateException if it was never set (call
RegressionSpec.hasCooling() before calling this). |
Temperature |
RegressionSpec.getHeatingBaseTemperature()
Returns the non-null base temperature to be used for the heating degree
days in the specified regression, or throws an
IllegalStateException if it was never set (call
RegressionSpec.hasHeating() before calling this). |
Modifier and Type | Method and Description |
---|---|
java.util.SortedSet<Temperature> |
RegressionTestPlan.getCustomTestCoolingBaseTemperatures()
Returns the custom set of base temperatures to be used for the CDD in
regressions tested by the API, or throws an
IllegalStateException if no such base temperatures are
specified (check RegressionTestPlan.hasCustomTestCoolingBaseTemperatures() before
calling this). |
java.util.SortedSet<Temperature> |
RegressionTestPlan.getCustomTestHeatingBaseTemperatures()
Returns the custom set of base temperatures to be used for the HDD in
regressions tested by the API, or throws an
IllegalStateException if no such base temperatures are
specified (check RegressionTestPlan.hasCustomTestHeatingBaseTemperatures() before
calling this). |
Modifier and Type | Method and Description |
---|---|
DegreeDaysRegressionComponent.Builder |
DegreeDaysRegressionComponent.Builder.setBaseTemperature(Temperature baseTemperature) |
RegressionTestPlan.Builder |
RegressionTestPlan.Builder.setCustomTestCoolingBaseTemperatures(Temperature[] coolingBaseTemperatures)
Sets custom base temperatures to be used for the CDD in regressions
tested by the API.
|
RegressionTestPlan.Builder |
RegressionTestPlan.Builder.setCustomTestHeatingBaseTemperatures(Temperature[] heatingBaseTemperatures)
Sets custom base temperatures to be used for the HDD in regressions
tested by the API.
|
RegressionSpec |
RegressionSpec.withCooling(Temperature coolingBaseTemperature)
Returns a new
RegressionSpec based on this but
also specifying that cooling degree days with the specified base
temperature are to be included. |
RegressionSpec |
RegressionSpec.withHeating(Temperature heatingBaseTemperature)
Returns a new
RegressionSpec based on this but
also specifying that heating degree days with the specified base
temperature are to be included. |
Modifier and Type | Method and Description |
---|---|
RegressionTestPlan.Builder |
RegressionTestPlan.Builder.setCustomTestCoolingBaseTemperatures(java.lang.Iterable<Temperature> coolingBaseTemperatures)
Sets custom base temperatures to be used for the CDD in regressions
tested by the API.
|
RegressionTestPlan.Builder |
RegressionTestPlan.Builder.setCustomTestHeatingBaseTemperatures(java.lang.Iterable<Temperature> heatingBaseTemperatures)
Sets custom base temperatures to be used for the HDD in regressions
tested by the API.
|
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.