SeatsSpecification implements IProcSpecification, Cloneable { public void setXlBoundary(double value) { if (value < 0.9 || value > 1) { throw new SeatsException("XL should belong to [0.9, 1]"); } xl_ = value; }  static void fillDictionary(String prefix, Map<String, Class> dic); double getXlBoundary(); void setXlBoundary(double value); double getSeasTolerance(); void setSeasTolerance(double value); double getTrendBoundary(); void setTrendBoundary(double value); double getSeasBoundary(); void setSeasBoundary(double value); double getSeasBoundary1(); void setSeasBoundary1(double value); int getPredictionLength(); void setPredictionLength(int npred); boolean isDefault(); @Override SeatsSpecification clone(); @Override boolean equals(Object obj); @Override int hashCode(); ApproximationMode getApproximationMode(); void setApproximationMode(ApproximationMode changeModel); EstimationMethod getMethod(); void setMethod(EstimationMethod method); boolean isLog(); void setLog(boolean log); SarimaComponent getArima(); void setArima(SarimaComponent arima); @Override InformationSet write(boolean verbose); @Override boolean read(InformationSet info); static final double DEF_EPSPHI; static final int DEF_NPRED; static final String ADMISS; }
@Test(expected = SeatsException.class) public void testSetXlBoundaryUpperBound() { SeatsSpecification spec = new SeatsSpecification(); spec.setXlBoundary(1.5); }
@Test(expected = SeatsException.class) public void testSetXlBoundaryLowerBound() { SeatsSpecification spec = new SeatsSpecification(); spec.setXlBoundary(.89); }