|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.sdsc.mbt.StructureComponent
edu.sdsc.mbt.Residue
Implements a StructureComponent container for residue information. This may be an amino acid residue, a nucleic acid residue, or a ligand. This class generally contains a list of Atom records, though it is perfectly fine to be empty when it is used only for sequence information.
See the "PROGRAMMING NOTE" section of the StructureComponent class.
StructureComponent
,
Structure
,
StructureComponentIterator
,
,
Serialized FormField Summary | |
Atom |
centerAtom
|
static java.lang.String |
COMPOUND_AMINO_ACID
Residue compound classification is an amino acid. |
static java.lang.String[] |
COMPOUND_CLASSIFICATIONS
|
static java.lang.String |
COMPOUND_DELETION
Residue compound classification as a deletion. |
static java.lang.String |
COMPOUND_LIGAND
Residue compound classification is a ligand. |
static java.lang.String |
COMPOUND_NUCLEIC_ACID
Residue compound is a nucleic acid. |
short |
quality
|
short |
render
|
boolean |
ribbon
|
boolean |
visible
|
Fields inherited from class edu.sdsc.mbt.StructureComponent |
structure |
Constructor Summary | |
Residue()
Constructor variant used when there will likely be an atom list. |
|
Residue(java.lang.String compoundCode)
Constructor variant used when there will likely be no atom list (eg: when only sequence data is loaded). |
Method Summary | |
void |
addAtom(Atom atom)
Add an Atom record to this Residue. |
java.lang.Object |
clone()
Clone this object. |
boolean |
containsAtom(Atom atom)
Tests whether the Residue contains a particular Atom. |
void |
copy(StructureComponent structureComponent)
Copy all of the field values from the parameter object into "this". |
Atom |
getAlphaAtom()
Get the alpha (backbone) Atom (eg: "CA" or "P") for this amino acid or nucleic acid residue (or -1 for ligands). |
int |
getAlphaAtomIndex()
Get the alpha (backbone) Atom (eg: "CA" or "P") index for this amino acid or nucleic acid residue (or -1 for ligands). |
Atom |
getAtom(int index)
Return the specified Atom record contained in this Residue. |
int |
getAtomCount()
Return the number of Atom records contained in this Residue. |
int |
getAtomIndex(Atom atom)
|
java.util.Vector |
getAtoms()
Return Vector of Atoms that are contained in this Residue. |
java.lang.String |
getChainId()
Get the chain id (as it is assigned in the first Atom record). |
java.lang.String |
getClassification()
Return the compound classification for this residue. |
static java.lang.String |
getClassName()
This method returns the fully qualified name of this class. |
java.lang.String |
getCompoundCode()
Get the 3-letter compound code for this residue. |
java.lang.String |
getConformationType()
Get the secondary structure conformation type that is assigned to this residue. |
Fragment |
getFragment()
Get the parent fragment (if any) for this residue. |
float |
getHydrophobicity()
Return the Hydrophobicity of the amino acid residue as a normalized value from 0.0 to 1.0 inclusive. |
int |
getNumber()
|
Atom |
getPolymerHeadAtom()
Get the polymer "head" atom for this amino acid or nucleic acid residue (or null for ligands). |
Atom |
getPolymerTailAtom()
Get the polymer "tail" atom for this amino acid or nucleic acid residue (or null for ligands). |
int |
getPosition()
|
int |
getResidueId()
Get the residue id (as it is assigned in the first Atom record). |
java.lang.String |
getStructureComponentType()
This method returns the fully qualified name of this class. |
boolean |
isVisible()
|
void |
removeAllAtoms()
Remove all Atom records from this Residue. |
void |
removeAtom(Atom atom)
|
void |
removeAtom(int index)
Remove the specified Atom record from this Residue. |
void |
setAlphaAtom(Atom atom)
|
void |
setAlphaAtomIndex(int index)
Set the alpha (backbone) Atom index for this amino acid or nucleic acid residue. |
void |
setChainId(java.lang.String id)
|
void |
setClassification(java.lang.String classification)
|
void |
setCompoundCode(java.lang.String compoundCode)
Set the 3-letter compound code for this residue. |
void |
setConformationType(java.lang.String type)
Set the secondary structure conformation type that should be assigned to this residue. |
void |
setNumber(int n)
|
void |
setPosition(int i)
|
void |
setResidueId(int id)
|
Methods inherited from class edu.sdsc.mbt.StructureComponent |
getStructure, setStructure |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String COMPOUND_AMINO_ACID
public static final java.lang.String COMPOUND_NUCLEIC_ACID
public static final java.lang.String COMPOUND_LIGAND
public static final java.lang.String COMPOUND_DELETION
public static final java.lang.String[] COMPOUND_CLASSIFICATIONS
public Atom centerAtom
public short render
public short quality
public boolean visible
public boolean ribbon
Constructor Detail |
public Residue(java.lang.String compoundCode)
public Residue()
Method Detail |
public void copy(StructureComponent structureComponent)
copy
in class StructureComponent
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class StructureComponent
java.lang.CloneNotSupportedException
public static java.lang.String getClassName()
This name is used by the StructureComponentRegistry class to enable dynamic registration and discovery of new StructureComponent sub-classes/types. The name is also used to create a unique integer indentifier for each type in order to make run-time type comparisons fast.
public java.lang.String getStructureComponentType()
getStructureComponentType
in class StructureComponent
public java.lang.String getClassification()
public void setCompoundCode(java.lang.String compoundCode)
public java.lang.String getCompoundCode()
public int getAtomCount()
public Atom getAtom(int index)
public int getAtomIndex(Atom atom)
public java.util.Vector getAtoms()
public boolean containsAtom(Atom atom)
public void addAtom(Atom atom)
public void removeAllAtoms()
public void removeAtom(Atom atom)
public void removeAtom(int index)
public int getAlphaAtomIndex()
public Atom getAlphaAtom()
public void setAlphaAtom(Atom atom)
public float getHydrophobicity()
public void setConformationType(java.lang.String type)
public java.lang.String getConformationType()
public java.lang.String getChainId()
public void setChainId(java.lang.String id)
public int getResidueId()
public void setResidueId(int id)
public void setNumber(int n)
public int getNumber()
public void setPosition(int i)
public int getPosition()
public Fragment getFragment()
public Atom getPolymerHeadAtom()
public Atom getPolymerTailAtom()
public void setAlphaAtomIndex(int index)
public void setClassification(java.lang.String classification)
public boolean isVisible()
isVisible
in class StructureComponent
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |