|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.biojava.bio.structure.Hetatom
Generic Implementation of a Group interface. AminoAcid and Nucleotide are closely related classes.
AminoAcid,
Nucleotide| Field Summary | |
static String |
type
|
| Constructor Summary | |
Hetatom()
|
|
| Method Summary | |
void |
addAtom(Atom atom)
add an atom to this group |
Atom |
getAtom(int position)
return an atom by its position in the internal ArrayList |
Atom |
getAtom(String name)
get an Atom or null, if Atom not in this group |
ArrayList |
getAtoms()
get all atoms of this group |
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)
test is an Atom with name is existing |
void |
setPDBCode(String pdb)
|
void |
setPDBFlag(boolean flag)
flag if group has 3D data |
void |
setPDBName(String s)
set three character name of Amino acid |
void |
setProperties(HashMap props)
properties of this amino acid. |
void |
setProperty(String key,
Object value)
set a single property |
int |
size()
getnumber of atoms |
String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static String type
| Constructor Detail |
public Hetatom()
| Method Detail |
public boolean has3D()
Group
has3D in interface Grouppublic void setPDBFlag(boolean flag)
Group
setPDBFlag in interface Grouppublic String getPDBCode()
Group
getPDBCode in interface Grouppublic void setPDBCode(String pdb)
setPDBCode in interface Group
public void setPDBName(String s)
throws PDBParseException
setPDBName in interface GroupPDBParseExceptionpublic String getPDBName()
Group
getPDBName in interface Grouppublic void addAtom(Atom atom)
addAtom in interface Grouppublic int size()
Group
size in interface Grouppublic ArrayList getAtoms()
getAtoms in interface Group
public Atom getAtom(String name)
throws StructureException
getAtom in interface GroupStructureException
public Atom getAtom(int position)
throws StructureException
getAtom in interface GroupStructureExceptionpublic boolean hasAtom(String name)
hasAtom in interface Grouppublic String getType()
Group
getType in interface Grouppublic String toString()
public boolean hasAminoAtoms()
hasAminoAtoms in interface Group
amino atoms are : N, CA, C, O, CB
GLY does not have CB (unless we would calculate some artificially
if this method call is performed too often, it should become a
private method and set a flag ...public void setProperties(HashMap props)
setProperties in interface Grouppublic HashMap getProperties()
getProperties in interface Group
public void setProperty(String key,
Object value)
setProperty in interface Grouppublic Object getProperty(String key)
getProperty in interface Group
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||