|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This is the datastructure for a single Group of atoms. A protein sequence (Chain in PDB file) is represented as a list of this kind of objects. Groups can be of type "amino","hetatm","nucleotide". There are corresponding classes for each of this type which implement interface Group.
Hetatom,
AminoAcid,
Nucleotide| Method Summary | |
void |
addAtom(Atom atom)
add an atom to this group |
Atom |
getAtom(int position)
get at atom by position |
Atom |
getAtom(String name)
get an atom throws StructureException if atom not found |
ArrayList |
getAtoms()
get list of atoms |
String |
getPDBCode()
return the PDBcode of this amino acid |
String |
getPDBName()
set the PDB 3 character name for this group |
HashMap |
getProperties()
return properties. |
Object |
getProperty(String key)
get a single property |
String |
getType()
get Type of group, e.g. |
boolean |
has3D()
returns true or false, depending if this group has 3D coordinates or not. |
boolean |
hasAminoAtoms()
calculate if a groups has all atoms required for an amino acid this allows to include chemically modified amino acids that are labeled hetatoms into some computations ... |
boolean |
hasAtom(String name)
returns flag whether a particular atom is existing within this group |
void |
setPDBCode(String pdbcode)
|
void |
setPDBFlag(boolean flag)
flag if group has 3D data |
void |
setPDBName(String s)
get the PDB 3 character name for this group |
void |
setProperties(HashMap properties)
properties of this amino acid. |
void |
setProperty(String key,
Object value)
set a single property |
int |
size()
getnumber of atoms |
| Method Detail |
public String getPDBCode()
public void setPDBCode(String pdbcode)
public int size()
public boolean has3D()
public void setPDBFlag(boolean flag)
public String getType()
public void addAtom(Atom atom)
public ArrayList getAtoms()
public Atom getAtom(String name)
throws StructureException
StructureException
public Atom getAtom(int position)
throws StructureException
StructureExceptionpublic boolean hasAtom(String name)
public String getPDBName()
public void setPDBName(String s)
throws PDBParseException
PDBParseExceptionpublic boolean hasAminoAtoms()
getType()public void setProperties(HashMap properties)
public HashMap getProperties()
public void setProperty(String key,
Object value)
public Object getProperty(String key)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||