Click or drag to resize

RegressionTestPlanBuilderBuild Method

Creates a RegressionTestPlan with the configuration currently held by this Builder.

Namespace: DegreeDays.Api.Regressions
Assembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax
public RegressionTestPlan Build()

Return Value

RegressionTestPlan
Exceptions
ExceptionCondition
InvalidOperationExceptionAnything in the configuration of this Builder would make for an invalid RegressionTestPlan according to the rules detailed above.
Remarks

This does a lot of checking to ensure that only a valid RegressionTestPlan can be created. The rules are as follows:

  • There cannot be more than 120 custom test base temperatures in total. If either heating or cooling custom test base temperatures are left as default, that counts as 60, meaning there cannot be more than 60 of the other. If both are set as empty then at least one requested regression spec must have been set.
  • There cannot be more than 2 extra-predictor specs.
  • There cannot be more than 60 requested regression specs.
  • If any of the requested regression specs include extra-predictor keys, this Builder must have an ExtraPredictorSpec for each of those extra-predictor keys.
See Also