|
|||||||||||
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.Chain
Implements a StructureComponent container for chain information. This may be an amino acid chain (eg: protein), a nucleic acid chain (eg: RNA/DNA), or a ligand chain. This class contains a list of Residue records.
Residue
,
StructureComponent
,
Structure
,
StructureMap
,
Serialized FormField Summary | |
java.lang.String |
id
|
short |
quality
|
short |
render
|
boolean |
visible
|
Fields inherited from class edu.sdsc.mbt.StructureComponent |
structure |
Constructor Summary | |
Chain()
Construct a Chain. |
Method Summary | |
void |
addResidue(Residue residue)
Add a Residue record to this Chain. |
void |
addResidue(Residue residue,
int position)
Add a Residue record to this Chain at the specified position. |
java.lang.Object |
clone()
Clone this object. |
void |
copy(StructureComponent structureComponent)
Copy all of the field values from the parameter object into "this". |
void |
generateFragments()
Regenerate the vector of Fragment objects from the fragments RangeMap. |
int |
getAtomCount()
Get the number of Atoms contained in the Residues of this Chain. |
java.lang.String |
getChainId()
Return the chain ID by asking the first Atom of the first Residue. |
java.lang.String |
getClassification()
Return the chain classification by asking the first residue. |
static java.lang.String |
getClassName()
This method returns the fully qualified name of this class. |
Fragment |
getFragment(int fragmentIndex)
Get the specified Fragment object. |
int |
getFragmentCount()
Get the number of fragments (residue ranges) currently assigned to this chain. |
int |
getFragmentEndResidue(int fragmentIndex)
Get the end residue index for the given fragment. |
java.util.Vector |
getFragments()
Get the fragments for this chain. |
int |
getFragmentStartResidue(int fragmentIndex)
Get the start residue index for the given fragment. |
java.lang.String |
getFragmentType(int fragmentIndex)
Get the conformation type currently assigned to the given fragment. |
Residue |
getResidue(int index)
Return the specified Residue record contained in this Chain. |
int |
getResidueCount()
Return the number of Residue records contained in this Chain. |
int |
getResidueIndex(Residue residue)
Return the specified Residue index in this Chain. |
java.lang.String |
getStructureComponentType()
This method returns the fully qualified name of this class. |
boolean |
isVisible()
|
void |
removeAllResidues()
Remove all Residue records from this Chain. |
void |
removeResidue(int index)
Remove the specified Residue record from this Chain. |
void |
removeResidue(Residue residue)
|
void |
setFragment(int startResidue,
int endResidue,
java.lang.String type)
Set a range of residues in this chain's fragment map to the specified Conformation type. |
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 java.lang.String id
public short render
public short quality
public boolean visible
Constructor Detail |
public Chain()
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 java.lang.String getChainId()
public int getAtomCount()
public int getResidueCount()
public Residue getResidue(int index)
public int getResidueIndex(Residue residue)
public void addResidue(Residue residue)
public void addResidue(Residue residue, int position)
public void removeAllResidues()
public void removeResidue(int index)
public void removeResidue(Residue residue)
public void setFragment(int startResidue, int endResidue, java.lang.String type)
public int getFragmentCount()
public java.lang.String getFragmentType(int fragmentIndex)
public int getFragmentStartResidue(int fragmentIndex)
public int getFragmentEndResidue(int fragmentIndex)
public void generateFragments()
public Fragment getFragment(int fragmentIndex)
public java.util.Vector getFragments()
public boolean isVisible()
isVisible
in class StructureComponent
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |