@Test(expected = TramoException.class) public void testSetCancelUpperBound() { AutoModelSpec spec = new AutoModelSpec(); spec.setPcr(0.5); }
public void setPcr(double value) { if (value < .8 || value > 1) { throw new TramoException("PCR should belong to [0.8, 1.0]"); } pcr_ = value; }
AutoModelSpec implements Cloneable, InformationSetSerializable { public void setPcr(double value) { if (value < .8 || value > 1) { throw new TramoException("PCR should belong to [0.8, 1.0]"); } pcr_ = value; } }
AutoModelSpec implements Cloneable, InformationSetSerializable { public void setPcr(double value) { if (value < .8 || value > 1) { throw new TramoException("PCR should belong to [0.8, 1.0]"); } pcr_ = value; } AutoModelSpec();  AutoModelSpec(boolean enabled); }
AutoModelSpec implements Cloneable, InformationSetSerializable { public void setPcr(double value) { if (value < .8 || value > 1) { throw new TramoException("PCR should belong to [0.8, 1.0]"); } pcr_ = value; } AutoModelSpec();  AutoModelSpec(boolean enabled); static void fillDictionary(String prefix, Map<String, Class> dic); void reset(); double getPcr(); void setPcr(double value); double getUb1(); void setUb1(double value); double getUb2(); void setUb2(double value); double getCancel(); void setCancel(double value); double getTsig(); void setTsig(double value); double getPc(); void setPc(double value); boolean isDefault(); boolean isEnabled(); void setEnabled(boolean value); boolean isAmiCompare(); void setAmiCompare(boolean value); @Override AutoModelSpec clone(); boolean equals(AutoModelSpec other); static boolean equals(AutoModelSpec l, AutoModelSpec r); boolean isAcceptDefault(); void setAcceptDefault(boolean fal); @Override boolean equals(Object obj); @Override int hashCode(); @Override InformationSet write(boolean verbose); @Override boolean read(InformationSet info); }
AutoModelSpec implements Cloneable, InformationSetSerializable { public void setPcr(double value) { if (value < .8 || value > 1) { throw new TramoException("PCR should belong to [0.8, 1.0]"); } pcr_ = value; } AutoModelSpec();  AutoModelSpec(boolean enabled); static void fillDictionary(String prefix, Map<String, Class> dic); void reset(); double getPcr(); void setPcr(double value); double getUb1(); void setUb1(double value); double getUb2(); void setUb2(double value); double getCancel(); void setCancel(double value); double getTsig(); void setTsig(double value); double getPc(); void setPc(double value); boolean isDefault(); boolean isEnabled(); void setEnabled(boolean value); boolean isAmiCompare(); void setAmiCompare(boolean value); @Override AutoModelSpec clone(); boolean equals(AutoModelSpec other); static boolean equals(AutoModelSpec l, AutoModelSpec r); boolean isAcceptDefault(); void setAcceptDefault(boolean fal); @Override boolean equals(Object obj); @Override int hashCode(); @Override InformationSet write(boolean verbose); @Override boolean read(InformationSet info); static final String ENABLED; static final double DEF_CANCEL; static final boolean DEF_FAL; }