|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchemaxon.reaction.CutBondReviser
public class CutBondReviser
Common base class for the classes that perform the revision of planned cut-bonds.
This implementation accepts all cut-bonds.
The Fragmenter module cuts only those bonds that are accepted by the reviser.
| Field Summary | |
|---|---|
protected chemaxon.util.BondClassifier |
classifier
The classifier object that performs the DFS algorithm and stores ring-bond data. |
protected Fragmenter |
fragmenter
The fragmenter. |
protected Molecule |
mol
The input molecule. |
| Constructor Summary | |
|---|---|
CutBondReviser()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
clear(int a1,
int a2)
Clears cut-bond. |
static CutBondReviser |
create(org.dom4j.Element element,
Standardizer standardizer,
java.lang.String dir)
Creates a CutBondReviser object corresponding to the given DOM element node. |
protected Molecule |
getMolecule()
Returns the input molecule. |
protected void |
init(org.dom4j.Element element,
Standardizer standardizer,
java.lang.String dir)
Initializes the reviser. |
boolean |
revise(int a1,
int a2)
Returns true if the cut-bond is accepted, false otherwise. |
void |
set(int a1,
int a2)
Sets cut-bond. |
protected void |
setFragmenter(Fragmenter fragmenter)
Sets the fragmenter. |
protected void |
setMolecule(Molecule mol)
Sets the input molecule. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Fragmenter fragmenter
protected chemaxon.util.BondClassifier classifier
protected Molecule mol
| Constructor Detail |
|---|
public CutBondReviser()
| Method Detail |
|---|
public static CutBondReviser create(org.dom4j.Element element,
Standardizer standardizer,
java.lang.String dir)
throws java.io.IOException
element - is the reviser configuration DOM element nodestandardizer - is the standardizer objectdir - is the root directory
java.io.IOException - on configuration error
protected void init(org.dom4j.Element element,
Standardizer standardizer,
java.lang.String dir)
throws java.io.IOException
element - is the configuration DOM element nodestandardizer - is the standardizer objectdir - is the molecule file root directory
java.io.IOException - on configuration errorprotected void setFragmenter(Fragmenter fragmenter)
fragmenter.
Called by the Fragmenter object with self-reference.
fragmenter - is the fragmenter object
protected void setMolecule(Molecule mol)
throws chemaxon.sss.search.SearchException
fragmenter.
mol - is the input molecule
chemaxon.sss.search.SearchException - on errorprotected Molecule getMolecule()
fragmenter.
public boolean revise(int a1,
int a2)
true if the cut-bond is accepted, false otherwise.
Call Fragmenter.isCutBond(int,int) to check for already stored cut-bonds.
The default implementation accepts all non-ring cut-bonds.
a1 - is the first atom index of the cut-bonda2 - is the second atom index of the cut-bond
public void set(int a1,
int a2)
a1 - is the first atom of the cut-bonda2 - is the second atom of the cut-bond
public void clear(int a1,
int a2)
a1 - is the first atom of the cut-bonda2 - is the second atom of the cut-bond
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||