public class ChargeRule extends Object implements IRule
| Name | Default | Description |
| charge | 0.0 | The Charge of MolecularFormula |
| Constructor and Description |
|---|
ChargeRule()
Constructor for the ChargeRule object.
|
| Modifier and Type | Method and Description |
|---|---|
Object[] |
getParameters()
Gets the parameters attribute of the ChargeRule object.
|
void |
setParameters(Object[] params)
Sets the parameters attribute of the ChargeRule object.
|
double |
validate(IMolecularFormula formula)
Validate the charge of this IMolecularFormula.
|
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.