|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.proteinshader.structure.Residue
org.proteinshader.structure.Heterogen
public class Heterogen
This concrete subclass of the abstract class Residue stores information on a heterogen in a PDB structure entry. Because water molecules are a special case of the heterogen concept, their information is stored in a Water object rather than in a Heterogen object.
| Field Summary | |
|---|---|
static String |
HETEROGEN_PREFIX
'HET_' will be added to the beginning the residueID for a Heterogen (if it is not already present). |
| Constructor Summary | |
|---|---|
Heterogen(String name,
String residueID,
String chainID,
String modelID,
String structureID)
Creates a Heterogen with the name and IDs given as arguments (after adding the HETEROGEN_PREFIX ("HET_") to the beginning of residueID). |
|
| Method Summary | |
|---|---|
void |
accept(Visitor visitor)
Accepts a Visitor and does a callback. |
String |
getName()
Returns the Heterogen's name. |
String |
processID(String id,
String typeOfID)
Overrides the processID() method of Residue in order to add guarantee that the residueID of a Heterogen always begins with the HETEROGEN_PREFIX. |
| Methods inherited from class org.proteinshader.structure.Residue |
|---|
addNewAtom, getAtom, getChainID, getModelID, getResidueID, getStructureID, iteratorAtoms, numberOfAtoms, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String HETEROGEN_PREFIX
| Constructor Detail |
|---|
public Heterogen(String name,
String residueID,
String chainID,
String modelID,
String structureID)
throws MissingHetNameException,
InvalidIDException
name - Heterogen's name (preferably the full name).residueID - ID of the Heterogen.chainID - ID of the Chain.modelID - ID of the Model.structureID - ID of the Structure.
MissingHetNameException - if name is null or does not have
at least one non-whitespace
character before add the
HETEROGEN_PREFIX.
InvalidIDException - if residueID is null or does not have
at least one non-whitespace character.| Method Detail |
|---|
public void accept(Visitor visitor)
throws VisitorException
accept in interface Visitableaccept in class Residuevisitor - the Visitor to do a callback with.
VisitorException - if an error occurs while an object is
being visited.public String getName()
public String processID(String id,
String typeOfID)
throws InvalidIDException
processID in interface IDTestprocessID in class Residueid - Residue ID to process.typeOfID - type of ID (for possible use in error message).
InvalidIDException - if the trimmed Residue ID does not
have at least one character before
adding the prefix.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||