public class ElementRule extends Object implements IRule
Name | Default | Description |
elements | C,H,N,O | The IELements to be analyzed |
Constructor and Description |
---|
ElementRule()
Constructor for the ElementRule object.
|
Modifier and Type | Method and Description |
---|---|
Object[] |
getParameters()
Gets the parameters attribute of the ElementRule object.
|
void |
setParameters(Object[] params)
Sets the parameters attribute of the ElementRule object.
|
double |
validate(IMolecularFormula formula)
Validate the occurrence of this IMolecularFormula.
|
public void setParameters(Object[] params) throws CDKException
setParameters
in interface IRule
params
- The new parameters valueCDKException
- Description of the ExceptiongetParameters()
public Object[] getParameters()
getParameters
in interface IRule
setParameters(java.lang.Object[])
public double validate(IMolecularFormula formula) throws CDKException
validate
in interface IRule
formula
- Parameter is the IMolecularFormulaCDKException
- if an error occurs during the validation. See
documentation for individual rulesCopyright © 2017. All Rights Reserved.