|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmeshi.energy.simpleEnergyTerms.compositeTorsions.ResidueTorsions
public class ResidueTorsions
Allows easy access to all of a given residue's torsions.
| Field Summary | |
|---|---|
private AttributesRack |
attributes
|
(package private) double |
energy
|
private boolean |
isPP
|
private int |
numberOfUpdates
|
private Residue |
residue
|
private Torsion[] |
torsionAngles
|
| Fields inherited from interface meshi.energy.simpleEnergyTerms.compositeTorsions.CompositeTorsionsDefinitions |
|---|
ALL, CHI_1, CHI_2, CHI_3, CHI_4, COIL, HELIX, NUM_SIDECHAIN_TORSIONS, OMG, OMNI, PHI, POLYNOMIAL_CHI_1, POLYNOMIAL_CHI_1_CHI_2, POLYNOMIAL_CHI_1_CHI_2_TORSIONS, POLYNOMIAL_CHI_1_CHI_3, POLYNOMIAL_CHI_1_CHI_3_TORSIONS, POLYNOMIAL_CHI_1_CHI_4, POLYNOMIAL_CHI_1_CHI_4_TORSIONS, POLYNOMIAL_CHI_1_TORSIONS, POLYNOMIAL_PHI_PSI, POLYNOMIAL_PHI_PSI_CHI_1, POLYNOMIAL_PHI_PSI_CHI_1_TORSIONS, POLYNOMIAL_PHI_PSI_TORSIONS, PREPRO, PSI, SHEET, TOTAL_TORSION_ANGLES, UNIDENTIFIED_TORSION_TYPE |
| Constructor Summary | |
|---|---|
ResidueTorsions(Residue residue,
TorsionList torsionList)
stores all of the residue's torsion angles. |
|
| Method Summary | |
|---|---|
void |
addAttribute(MeshiAttribute attribute)
|
void |
applyForce(int torsionType,
double force)
Applies force to torsion angles. |
double |
energy()
|
AtomList |
getAtoms()
returns a list of all atoms in this residue torsions |
AtomList |
getAtoms(int[] whichTorsions)
|
MeshiAttribute |
getAttribute(int key)
|
Residue |
getResidue()
returns residue |
int |
getResidueNumber()
returns residue's number |
ResidueType |
getResidueType()
returns residue type |
Torsion |
getTorsion(int torsionType)
returns torsion of type torsionType. |
boolean |
hasAllTorsions()
verifies all the torsions used by this residue are available. |
private static boolean |
interestingTorsion(Torsion tor)
checks whether a given torsion angle is in [PHI,PSI,CHI_1-CHI_4]. |
boolean |
isPP()
|
void |
resetEnergy()
|
void |
setEnergy(double e)
|
void |
setToPP()
|
private static int |
torsionNum(Torsion tor)
returns type of given torsion |
java.lang.String |
toString()
Converts attributes of ResidueTorsions to string. |
java.lang.String |
toStringPhiPsiChi1()
Partial conversion to string. |
void |
update(int numberOfUpdates)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private boolean isPP
private Residue residue
private Torsion[] torsionAngles
private int numberOfUpdates
double energy
private AttributesRack attributes
| Constructor Detail |
|---|
public ResidueTorsions(Residue residue,
TorsionList torsionList)
residue - for which torsion angles are storedtorsionList - from where the torsion angles are taken| Method Detail |
|---|
public double energy()
public void resetEnergy()
public void setEnergy(double e)
public Torsion getTorsion(int torsionType)
public ResidueType getResidueType()
public int getResidueNumber()
public Residue getResidue()
public void setToPP()
public boolean isPP()
public boolean hasAllTorsions()
public void applyForce(int torsionType,
double force)
public AtomList getAtoms()
public AtomList getAtoms(int[] whichTorsions)
public void update(int numberOfUpdates)
throws UpdateableException
update in interface UpdateableUpdateableExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toStringPhiPsiChi1()
private static boolean interestingTorsion(Torsion tor)
private static int torsionNum(Torsion tor)
public 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 | ||||||||