public class RDBERule extends Object implements IRule
Ring Double Bond Equivalents (RDBE) or Double Bond Equivalents (DBE) are calculated from valence values of elements contained in a formula and should tell the number of bonds - or rings. Since this formula will fail for MFs with higher valence states such as N(V), P(V), S(IV) or S(VI), this method will focus on the lowest valence state for these elements.
The equation used is: D = 1 + [0.5 SUM_i(N_i(V_I-2))]
where D is the unsaturation, i is the total number of different elements in the composition, N_i the number of atoms of element i, and Vi is the common valence of the atom i.
Name | Default | Description |
charge | 0.0 | The RDBE rule of MolecularFormula |
Modifier and Type | Class and Description |
---|---|
class |
RDBERule.Combinations |
Constructor and Description |
---|
RDBERule()
Constructor for the RDBE object.
|
Modifier and Type | Method and Description |
---|---|
Object[] |
getParameters()
Gets the parameters attribute of the RDBRule object.
|
List<Double> |
getRDBEValue(IMolecularFormula formula)
Method to extract the Ring Double Bond Equivalents (RDB) value.
|
void |
setParameters(Object[] params)
Sets the parameters attribute of the RDBE object.
|
double |
validate(IMolecularFormula formula)
Validate the RDBRule of this IMolecularFormula.
|
boolean |
validate(IMolecularFormula formula,
double value)
Validate the ion state.
|
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 rulespublic boolean validate(IMolecularFormula formula, double value) throws CDKException
formula
- Parameter is the IMolecularFormulavalue
- The RDBE valueCDKException
public List<Double> getRDBEValue(IMolecularFormula formula)
formula
- The IMolecularFormula objectcreateTable()
Copyright © 2017. All Rights Reserved.