|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmeshi.molecularElements.Residue
public class Residue
A generic residue.
| Field Summary | |
|---|---|
private java.lang.String |
accessibility
|
protected AtomList |
atoms
Atoms of this residue; |
private java.util.HashMap |
attributes
|
protected AtomPairList |
bonds
Co-valiant bonds in the residue. |
protected Atom |
head
First atom of the residue (typicaly N). |
private ResidueIdentifier |
ID
A unique identifier. |
ResidueMode |
mode
|
java.lang.String |
name
Residue name. |
private static StringList |
names1
A list of Residue names1 (one letter code). |
private static StringList |
names3
A list of Residue names3 (three letter code). |
private static boolean |
namesDone
The list of residue names is done. |
protected Atom |
nextAtom
|
protected Atom |
prevAtom
|
private double |
reliability
|
private SecondaryStructure |
secondaryStructure
HELIX, SHEET ect. |
protected Atom |
tail
last atom of the residue (typicaly C). |
ResidueType |
type
which of the 20 possible it is. |
| Constructor Summary | |
|---|---|
Residue(ResidueIdentifier id)
|
|
Residue(ResidueIdentifier id,
java.lang.String name)
|
|
Residue(java.lang.String name)
Use this constructor to instantiate a creator object.. |
|
Residue(java.lang.String name,
ResidueType type,
ResidueIdentifier id,
AtomList atomList,
ResidueMode mode)
|
|
| Method Summary | |
|---|---|
java.lang.String |
accessibility()
|
void |
addAttribute(MeshiAttribute attribute)
|
Atom |
amideH()
|
Atom |
amideN()
|
AtomList |
atoms()
Returns a list of the residue atoms. |
AtomPairList |
bonds()
Returns a list of the residue bonds. |
Atom |
ca()
|
Atom |
carbonylC()
|
Atom |
carbonylO()
|
Atom |
cb()
|
Atom |
cg()
|
java.lang.String |
chain()
|
java.lang.String |
comment()
|
int |
compareTo(java.lang.Object obj)
Compares this residue with the given residue according to the order of their ResidueIdentifiers. |
Residue |
create(AtomList atoms,
ResidueIdentifier id,
ResidueMode mode)
create a residue based on an atoms list. |
void |
defrost()
|
boolean |
dummy()
|
boolean |
equals(java.lang.Object other)
|
static Atom |
find(AtomList atomList,
BBatom bbAtom)
|
static Atom |
find(AtomList atomList,
java.lang.String name)
|
Atom |
get(java.lang.String name)
Fetches an atom by its name. |
Atom |
getAtom(java.lang.String atomName)
|
MeshiAttribute |
getAttribute(int key)
|
ResidueMode |
getMode()
|
Atom |
head()
|
ResidueIdentifier |
ID()
Returns the ResidueIdentifier of this Residue
or throws an exception if (this != ID.RESIDUE). |
void |
initiateAtoms()
|
int |
key()
|
Atom |
nextAtom()
|
int |
number()
|
int |
position()
residue number - 1. |
Atom |
prevAtom()
|
double |
reliability()
|
SecondaryStructure |
secondaryStructure()
|
void |
setAccessibility(char ac)
|
void |
setAccessibility(java.lang.String accessibility)
|
void |
setNextAtom(Atom atom)
|
void |
setPrevAtom(Atom atom)
|
void |
setPrevNextAtomsToNull()
|
void |
setReliability(double reliability)
|
void |
setResidueInAtoms(AtomList atoms)
|
void |
setSecondaryStructure(char ss)
|
void |
setSecondaryStructure(SecondaryStructure secondaryStructure)
|
Atom |
tail()
|
java.lang.String |
test()
|
java.lang.String |
toString()
|
ResidueType |
type()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final java.lang.String name
private final ResidueIdentifier ID
public final ResidueType type
protected AtomList atoms
protected AtomPairList bonds
protected Atom head
protected Atom tail
protected Atom prevAtom
protected Atom nextAtom
private static StringList names3
private static StringList names1
private static boolean namesDone
private SecondaryStructure secondaryStructure
private java.lang.String accessibility
public final ResidueMode mode
private double reliability
private java.util.HashMap attributes
| Constructor Detail |
|---|
public Residue(java.lang.String name)
Use this constructor to instantiate a creator object..
public Residue(java.lang.String name,
ResidueType type,
ResidueIdentifier id,
AtomList atomList,
ResidueMode mode)
public Residue(ResidueIdentifier id)
public Residue(ResidueIdentifier id,
java.lang.String name)
| Method Detail |
|---|
public final ResidueType type()
public double reliability()
public void setReliability(double reliability)
public AtomList atoms()
public AtomPairList bonds()
public java.lang.String toString()
toString in class java.lang.Objectpublic ResidueMode getMode()
public java.lang.String test()
public Atom head()
public Atom tail()
public Atom prevAtom()
public Atom nextAtom()
public void setPrevAtom(Atom atom)
public void setNextAtom(Atom atom)
public java.lang.String comment()
public int position()
public Residue create(AtomList atoms,
ResidueIdentifier id,
ResidueMode mode)
create in interface ResidueCreatorpublic int compareTo(java.lang.Object obj)
ResidueIdentifiers.
compareTo in interface java.lang.Comparablejava.lang.ClassCastException - if the given object is not a
residue.ResidueIdentifier.compareTo(Object)public Atom get(java.lang.String name)
public final SecondaryStructure secondaryStructure()
public void setSecondaryStructure(SecondaryStructure secondaryStructure)
public final java.lang.String accessibility()
public void setAccessibility(java.lang.String accessibility)
public Atom getAtom(java.lang.String atomName)
public Atom ca()
public Atom cb()
public Atom cg()
public Atom carbonylC()
public Atom carbonylO()
public Atom amideN()
public Atom amideH()
public boolean dummy()
public static Atom find(AtomList atomList,
BBatom bbAtom)
public static Atom find(AtomList atomList,
java.lang.String name)
public void setPrevNextAtomsToNull()
public void initiateAtoms()
public void setSecondaryStructure(char ss)
public void setAccessibility(char ac)
public void defrost()
public ResidueIdentifier ID()
this Residue
or throws an exception if (this != ID.RESIDUE).
public java.lang.String chain()
public int number()
public void setResidueInAtoms(AtomList atoms)
public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int key()
key in interface MeshiAttributepublic final void addAttribute(MeshiAttribute attribute)
addAttribute in interface Attributablepublic final MeshiAttribute getAttribute(int key)
getAttribute in interface Attributable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||