|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.proteinshader.structure.visitor.Visitor org.proteinshader.structure.visitor.BondGeneratorVisitor
public class BondGeneratorVisitor
Generates standard Bonds for AminoAcids and Waters.
Peptide Bonds, intra-AminoAcid Bonds, and the oxygen-hydrogen Bonds of
Water are generated after calculating which Atoms are close enough to
form a Bond. The algorithm for Bond prediction is given in the
BondPredictor class.
Usage
structure.accept( new BondGeneratorVisitor() );
will generate AminoAcid and Water Bonds on the Structure, while
Visitor visitor = new BondGeneratorVisitor();
visitor.setMode( ResidueMode.AMINO_ACIDS );
structure.accept( visitor );
would only generate Bonds for the AminoAcids.
Note on Exception Handling
Currently, the VisitorException in the visit() method signatures is
only there to satisfy the Visitor API (other Visitors such as the
SFWriterVisitor do need an exception in the visit() method
declaration).
Constructor Summary | |
---|---|
BondGeneratorVisitor()
Constructs a BondGeneratorVisitor. |
Method Summary | |
---|---|
void |
setAABondVisibility(VisibilityEnum visibility)
Determines what visibility status the Bond generator will use when generating Bonds for AminoAcids. |
void |
setMinBondLength(double minBondLength)
Sets the minimum Bond length value used for Bond prediction. |
void |
setTolerance(double tolerance)
Sets the tolerance value used for Bond prediction. |
void |
setWaterBondVisibility(VisibilityEnum visibility)
Determines what visibility status the Bond generator use when generating Bonds for Waters. |
void |
visit(AminoAcid aminoAcid)
Uses Atom distances to generate Bonds within the AminoAcid, and also uses the memory of the last carbonyl carbon seen to check for a possible peptide Bond. |
void |
visit(Atom atom)
Checks if the Atom is a possible Bond destination Atom for any previously seen Atoms of the same Residue, and then adds the Atom to the list of Atoms to remember. |
void |
visit(Bond bond)
NO OPERATION: This Visitor method is not needed by the bond generator. |
void |
visit(Chain chain)
Generates all standard Bonds (AminoAcids and Waters) for the Chain. |
void |
visit(Heterogen heterogen)
NO OPERATION: This method is not needed because non-water heterogen bonds are given explicitly in the PDB structure entry. |
void |
visit(Model model)
Generates all standard Bonds (AminoAcids and Waters) for the Model. |
void |
visit(Structure structure)
Generates all standard Bonds (AminoAcids and Waters) for the Structure. |
void |
visit(Water water)
If the Water includes hydrogen atoms, then Bonds will be created between the oxygen and each hydrogen (after checking that the Bond lengths are reasonable). |
Methods inherited from class org.proteinshader.structure.visitor.Visitor |
---|
clear, includeAAHetAndWater, setDebug, setMode, setMode, setMode, setMode, setMode, setMode, setVisitSegments, visit, visit, visit, visit |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BondGeneratorVisitor()
Method Detail |
---|
public void setAABondVisibility(VisibilityEnum visibility)
visibility
- the visibility status for AminoAcid Bonds.public void setWaterBondVisibility(VisibilityEnum visibility)
visibility
- the visibility status for Water Bonds.public void setTolerance(double tolerance)
tolerance
- tolerance value in Angstroms.public void setMinBondLength(double minBondLength)
minBondLength
- minimum Bond length in Angstroms.public void visit(Structure structure) throws VisitorException
visit
in class Visitor
structure
- the Structure to generate Bonds for.
VisitorException
- if an error occurs while generating
Bonds.public void visit(Model model) throws VisitorException
visit
in class Visitor
model
- the Model to generate Bonds for.
VisitorException
- if an error occurs while generating
Bonds.public void visit(Chain chain) throws VisitorException
visit
in class Visitor
chain
- the Chain to generate Bonds for.
VisitorException
- if an error occurs while generating
Bonds.public void visit(AminoAcid aminoAcid) throws VisitorException
visit
in class Visitor
aminoAcid
- the AminoAcid to generate Bonds for.
VisitorException
- if an error occurs while generating
Bonds.public void visit(Heterogen heterogen) throws VisitorException
visit
in class Visitor
heterogen
- the Heterogen to do nothing with.
VisitorException
- will not happen.public void visit(Water water) throws VisitorException
visit
in class Visitor
water
- the Water to generate Bonds for.
VisitorException
- if an error occurs while processing a
Water.public void visit(Atom atom) throws VisitorException
visit
in class Visitor
atom
- the Atom to visit.
VisitorException
- if an error occurs while processing
an Atom.public void visit(Bond bond) throws VisitorException
visit
in class Visitor
bond
- the Bond to do nothing with.
VisitorException
- will not happen.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |