Package ffx.potential.bonded
Class ResidueState
java.lang.Object
ffx.potential.bonded.ResidueState
The ResidueState class encodes the current chemical and coordinate state of a Residue,
particularly a MultiResidue, for ease of reverting coordinates. Should not be too difficult to get
it to also store velocities, etc.
- Since:
- 1.0
- Author:
- Michael J. Schnieders, Jacob M. Litman
-
Constructor Summary
ConstructorDescriptionResidueState
(Residue residue) Constructor for ResidueState.ResidueState
(Residue parent, Residue residue) Constructor for ResidueState. -
Method Summary
Modifier and TypeMethodDescriptiondouble
compareTo
(ResidueState residueState) Atom[]
getAtoms()
Getter for the fieldatoms
.Getter for the fieldparent
.static void
revertAllCoordinates
(List<Residue> residueList, ResidueState[] states) revertAllCoordinates.static void
revertAtomicCoordinates
(Atom[] atoms, double[][] coords) Uses a double[nAtoms][3] to revert the coordinates of an array of atoms.static ResidueState[]
storeAllCoordinates
(Residue[] residues) storeAllCoordinates.static ResidueState[]
storeAllCoordinates
(List<Residue> residueList) storeAllCoordinates.static double[][]
storeAtomicCoordinates
(Atom[] atoms) Returns a new double[nAtoms][3] with the coordinates of an array of atoms.toString()
-
Constructor Details
-
Method Details
-
revertAllCoordinates
revertAllCoordinates.- Parameters:
residueList
- aList
object.states
- an array ofResidueState
objects.
-
revertAtomicCoordinates
Uses a double[nAtoms][3] to revert the coordinates of an array of atoms. Does not check to see if the arrays are properly ordered; make sure you are using the correct arrays.- Parameters:
atoms
- To revert coordinates ofcoords
- Coordinates
-
storeAllCoordinates
storeAllCoordinates.- Parameters:
residueList
- aList
object.- Returns:
- an array of
ResidueState
objects.
-
storeAllCoordinates
storeAllCoordinates.- Parameters:
residues
- an array ofResidue
objects.- Returns:
- an array of
ResidueState
objects.
-
storeAtomicCoordinates
Returns a new double[nAtoms][3] with the coordinates of an array of atoms.- Parameters:
atoms
- To store coordinates of- Returns:
- Coordinates
-
compareTo
-
getAtoms
Getter for the fieldatoms
.- Returns:
- an array of
Atom
objects.
-
getParent
Getter for the fieldparent
.- Returns:
- a
Residue
object.
-
toString
-