public class ToleranceRangeRule extends Object implements IRule
| Name | Default | Description |
| mass | 0.0 | The Mass which the MolecularFormula has to be compared |
| tolerance | 0.05 | The range tolerance |
| Constructor and Description |
|---|
ToleranceRangeRule()
Constructor for the ToleranceRangeRule object.
|
| Modifier and Type | Method and Description |
|---|---|
Object[] |
getParameters()
Gets the parameters attribute of the ToleranceRangeRule object.
|
void |
setParameters(Object[] params)
Sets the parameters attribute of the ToleranceRangeRule object.
|
double |
validate(IMolecularFormula formula)
Validate the Tolerance Range of this IMolecularFormula.
|
public ToleranceRangeRule()
public void setParameters(Object[] params) throws CDKException
setParameters in interface IRuleparams - The new parameters valueCDKException - Description of the ExceptiongetParameters()public Object[] getParameters()
getParameters in interface IRulesetParameters(java.lang.Object[])public double validate(IMolecularFormula formula) throws CDKException
validate in interface IRuleformula - Parameter is the IMolecularFormulaCDKException - if an error occurs during the validation. See
documentation for individual rulesCopyright © 2017. All Rights Reserved.