|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectastex.generic.Generic
astex.Molecule
public class Molecule
| Field Summary | |
|---|---|
DynamicArray |
atoms
Dynmamic array of atoms. |
DynamicArray |
bonds
Dynamic array of bonds. |
boolean |
debug
Is debugging on. |
static java.lang.String |
DisplayBondDetails
|
static java.lang.String |
Displayed
|
static java.lang.String |
DisplayHydrogens
|
static int |
FeatureMolecule
|
static int |
Normal
Normal display style. |
static int |
NormalMolecule
Type for a normal molecule. |
static int |
Off
Completely off. |
static int |
SkeletonMolecule
|
static int |
SymmetryMolecule
|
static int |
Trace
Backbone trace. |
static int |
TraceAlways
Backbone trace and atoms. |
| Fields inherited from class astex.generic.Generic |
|---|
ClassName |
| Fields inherited from interface astex.generic.GenericInterface |
|---|
Name |
| Constructor Summary | |
|---|---|
Molecule()
Constructor which prepares a standard molecule. |
|
| Method Summary | |
|---|---|
Atom |
addAtom()
Add an atom to the molecule and return the reference to it. |
Atom |
addAtom(Residue res)
Add an atom to the chain, residue set. |
Bond |
addBond(Atom firstAtom,
Atom secondAtom)
Add a bond between two atoms with default bond order. |
Bond |
addBond(Atom firstAtom,
Atom secondAtom,
int bondOrder)
Add a bond to the molecule and return a reference to it. |
Bond |
addBond(Atom firstAtom,
Atom secondAtom,
int bondOrder,
boolean explicit)
Add a bond to the molecule and return a reference to it. |
Bond |
addBond(int firstAtomIndex,
int secondAtomIndex)
Add a bond to the molecule and return a reference to it. |
Bond |
addBond(int firstAtomIndex,
int secondAtomIndex,
int bondOrder)
Add a bond to the molecule and return a reference to it. |
Bond |
addBondFromIds(int firstAtomIndex,
int secondAtomIndex,
int bondOrder)
Add a bond to the molecule and return a reference to it. |
Chain |
addChain()
Add a chain to the molecule. |
void |
addImproper(Atom a1,
Atom a2,
Atom a3,
Atom a4)
Create a improper for the 4 specified atoms. |
Residue |
addResidue()
Add a residue to the current chain. |
Ring |
addRing()
Add a new ring to the molecule. |
void |
assignAtomNumbers()
Assign atom numbers. |
boolean |
atomNeedsImproper(Atom atom)
Does this atom need a improper restraint. |
void |
clearVisitFlags()
Clear the visit flags on all of the atoms. |
void |
connect()
Connect the atoms in a molecule using standard bonding radii. |
void |
connect2()
Connect the atoms using a neighbour grid. |
void |
connectResidue(Residue residue)
Connect all of the atoms in a single residue. |
void |
connectResidues(Residue firstResidue,
Residue secondResidue)
Connect all of the atoms in a single residue. |
int |
countAngles()
Count how many bond angles this molecule has. |
void |
find3Rings()
Find 3 membered rings by direct search. |
Chain |
findChain(java.lang.String name,
boolean add)
Find or add a particular chain. |
void |
findRings()
Find rings in the structure. |
void |
findRings(int ringSize)
Find rings of a particular size. |
void |
generateBondImpropers()
Generate impropers to keep bonds flat. |
void |
generateDoubleBondImproper(Bond bond)
Generate the improper for this double bond. |
void |
generatePlanes(DynamicArray planes)
Method for CCP4Dictionary that generates list of planes. |
void |
generateRing(Ring ring)
Generate the impropers for one ring. |
void |
generateRingImpropers()
Generate the impropers that are due to rings. |
void |
generateSingleBondImproper(Bond bond)
Generate the improper for this single bond. |
void |
generateSp2Impropers()
Generate impropers for sp2 hybrid atoms. |
java.lang.Object |
get(java.lang.Object key,
java.lang.Object def)
Get Object representing key. |
Angle |
getAngle(int index)
Get the specified angle. |
java.lang.Object[] |
getAngleArray()
Get the array of angles. |
int |
getAngleCount()
Get the number of atoms for this molecule. |
Atom |
getAtom(int index)
Return the specified atom. |
java.lang.Object[] |
getAtomArray()
Return the atom array. |
int |
getAtomCount()
Return the number of atoms in the molecule. |
Atom |
getAtomWithId(int id)
Return the atom with the specified id. |
Ring |
getBestRingContainingBond(Bond bond)
Return the best ring containing this bond. |
Bond |
getBond(int index)
Return the specified bond. |
java.lang.Object[] |
getBondArray()
Return the bond array. |
int |
getBondCount()
Return the number of bonds in the molecule. |
Point3d |
getCenter()
Find the center of the molecule. |
int |
getCentralAtomCount()
Get the number of central atoms. |
Chain |
getChain(int index)
Return the specified chain. |
int |
getChainCount()
Return the number of chains. |
Chain |
getCurrentChain()
Get the current chain. |
boolean |
getDisplayed()
Is the molecule displayed? |
int |
getDisplayStyle()
Get the display style. |
boolean |
getDisplayStyle(int style)
Get the display style. |
java.lang.String |
getFilename()
Get the filename. |
Improper |
getImproper(int index)
Get the specified improper. |
java.lang.Object[] |
getImproperArray()
Get the array of impropers. |
int |
getImproperCount()
Get the number of atoms for this molecule. |
int |
getMaximumId()
Get the maximum id for this molecule. |
int |
getMoleculeType()
Return what type of molecule this is. |
java.lang.String |
getName()
Get the molecule name. |
java.util.Enumeration |
getProperties()
Return an enumeration of our properties. |
double |
getRadius()
Get the radius of the molecule. |
int |
getResidueCount()
Get the total number of residues. |
Ring |
getRing(int index)
Return the specified ring. |
int |
getRingCount()
Return the number of rings. |
Symmetry |
getSymmetry()
Get the symmetry object. |
java.lang.String |
getType()
Get the type. |
void |
initialise()
Initialise the molecule. |
boolean |
isAtomIn3MemberedRing(Atom atom)
Is this atom in a 3 membered ring. |
boolean |
isBondIn6Ring(Bond bond)
Is this bond in a 6 membered ring. |
boolean |
isBondInAromaticRing(Bond bond)
Is this bond in an aromatic ring. |
boolean |
isSpecialAtom(Atom atom)
Does this atom need treating specially for bonding. |
boolean |
isSymmetryMolecule()
Is this a symmetry molecule. |
void |
markRingBonds()
Mark the bonds that are part of a ring. |
boolean |
nitrogenNeedsImproper(Atom atom)
Does this nitrogen atom need a improper. |
void |
possiblyCreateRing(Atom[] atomPath,
Bond[] bondPath,
int ringSize)
Create a ring if the atoms are in the right order. |
boolean |
propagateCycleSearch(Atom firstAtom,
Atom secondAtom,
int depth)
Propagate the search for cycles. |
void |
removeAtom(Atom a)
Remove an atom from the molecule. |
void |
removeBond(Bond b)
Remove a bond from the molecule. |
void |
reorderAtoms()
Reorder the atoms in a molecule. |
int |
select(int state)
Apply a selection recursively. |
java.lang.String |
selectStatement()
|
java.lang.Object |
set(java.lang.Object key,
java.lang.Object property)
Set an object value. |
void |
setCentralAtomCount(int cac)
Set the number of central atoms. |
void |
setDisplayed(int newState)
Set if the molecule is on or off. |
void |
setDisplayStyle(int style)
Set Display style. |
void |
setFilename(java.lang.String s)
Set the filename. |
void |
setMoleculeType(int t)
Set what type of molecule this is. |
void |
setName(java.lang.String name)
Set the molecule name |
void |
setSpaceGroupName(java.lang.String name)
Set the space group name. |
void |
setSymmetry(Symmetry s)
Set the symmetry entry for this molecule. |
void |
setType(java.lang.String s)
Set the type. |
void |
setUnitCell(double[] newCell)
Set the unit cell. |
boolean |
singleBondRequiresImproper(Bond bond)
Does this single bond require a improper. |
java.lang.String |
toString()
Generate a string representation. |
| Methods inherited from class astex.generic.Generic |
|---|
addChild, addListener, addParent, getBoolean, getChildren, getClassname, getDouble, getInteger, getParents, getString, main, removeChild, removeListener, removeParent, setBoolean, setClassname, setDouble, setInteger, setString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public DynamicArray atoms
public DynamicArray bonds
public static int Off
public static int Normal
public static int Trace
public static int TraceAlways
public static final int NormalMolecule
public static final int FeatureMolecule
public static final int SkeletonMolecule
public static final int SymmetryMolecule
public boolean debug
public static final java.lang.String Displayed
public static final java.lang.String DisplayHydrogens
public static final java.lang.String DisplayBondDetails
| Constructor Detail |
|---|
public Molecule()
| Method Detail |
|---|
public void setCentralAtomCount(int cac)
public int getCentralAtomCount()
public int getMoleculeType()
public void setMoleculeType(int t)
public void initialise()
public java.lang.String toString()
toString in class java.lang.Objectpublic void setDisplayStyle(int style)
public int getDisplayStyle()
public boolean getDisplayStyle(int style)
public void setDisplayed(int newState)
public boolean getDisplayed()
public int getAtomCount()
public Atom getAtom(int index)
public Atom getAtomWithId(int id)
public void assignAtomNumbers()
public boolean isSymmetryMolecule()
public int getBondCount()
public Bond getBond(int index)
public int getAngleCount()
public Angle getAngle(int index)
public java.lang.Object[] getAngleArray()
public int getImproperCount()
public Improper getImproper(int index)
public java.lang.Object[] getImproperArray()
public java.lang.Object[] getAtomArray()
public java.lang.Object[] getBondArray()
public Ring getRing(int index)
public int getRingCount()
public int getChainCount()
public Chain getChain(int index)
public Chain getCurrentChain()
public int getResidueCount()
public Chain addChain()
public Chain findChain(java.lang.String name,
boolean add)
public Residue addResidue()
public int getMaximumId()
public Atom addAtom()
public Atom addAtom(Residue res)
public void reorderAtoms()
public Ring addRing()
public Bond addBond(Atom firstAtom,
Atom secondAtom,
int bondOrder)
public Bond addBond(Atom firstAtom,
Atom secondAtom,
int bondOrder,
boolean explicit)
public Bond addBond(Atom firstAtom,
Atom secondAtom)
public Bond addBond(int firstAtomIndex,
int secondAtomIndex,
int bondOrder)
public Bond addBond(int firstAtomIndex,
int secondAtomIndex)
public Bond addBondFromIds(int firstAtomIndex,
int secondAtomIndex,
int bondOrder)
public void removeAtom(Atom a)
public void removeBond(Bond b)
public boolean isSpecialAtom(Atom atom)
public void connect2()
public void connect()
public void connectResidue(Residue residue)
public void connectResidues(Residue firstResidue,
Residue secondResidue)
public int countAngles()
public void findRings()
public void findRings(int ringSize)
public void find3Rings()
public void possiblyCreateRing(Atom[] atomPath,
Bond[] bondPath,
int ringSize)
public boolean isBondInAromaticRing(Bond bond)
public Ring getBestRingContainingBond(Bond bond)
public boolean isBondIn6Ring(Bond bond)
public boolean isAtomIn3MemberedRing(Atom atom)
public void setName(java.lang.String name)
public java.lang.String getName()
public void setFilename(java.lang.String s)
public java.lang.String getFilename()
public void setType(java.lang.String s)
public java.lang.String getType()
public void generateRingImpropers()
public void generateRing(Ring ring)
public void generateBondImpropers()
public boolean singleBondRequiresImproper(Bond bond)
public void generateDoubleBondImproper(Bond bond)
public void generateSingleBondImproper(Bond bond)
public void generateSp2Impropers()
public void addImproper(Atom a1,
Atom a2,
Atom a3,
Atom a4)
public boolean atomNeedsImproper(Atom atom)
public boolean nitrogenNeedsImproper(Atom atom)
public void generatePlanes(DynamicArray planes)
public Point3d getCenter()
public double getRadius()
public void setUnitCell(double[] newCell)
public Symmetry getSymmetry()
public void setSymmetry(Symmetry s)
public void setSpaceGroupName(java.lang.String name)
public void clearVisitFlags()
public void markRingBonds()
public boolean propagateCycleSearch(Atom firstAtom,
Atom secondAtom,
int depth)
public java.lang.String selectStatement()
selectStatement in interface Selectablepublic int select(int state)
select in interface Selectable
public java.lang.Object set(java.lang.Object key,
java.lang.Object property)
GenericInterface
set in interface GenericInterfaceset in class Generic
public java.lang.Object get(java.lang.Object key,
java.lang.Object def)
GenericInterface
get in interface GenericInterfaceget in class Genericpublic java.util.Enumeration getProperties()
GenericInterface
getProperties in interface GenericInterfacegetProperties in class Generic
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||