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
ConstructorsConstructorDescriptionResidueState(Residue residue) Constructor for ResidueState.ResidueState(Residue parent, Residue residue) Constructor for ResidueState. -
Method Summary
Modifier and TypeMethodDescriptiondoublecompareTo(ResidueState residueState) Atom[]getAtoms()Getter for the fieldatoms.Getter for the fieldparent.static voidrevertAllCoordinates(List<Residue> residueList, ResidueState[] states) revertAllCoordinates.static voidrevertAtomicCoordinates(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- aListobject.states- an array ofResidueStateobjects.
-
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- aListobject.- Returns:
- an array of
ResidueStateobjects.
-
storeAllCoordinates
storeAllCoordinates.- Parameters:
residues- an array ofResidueobjects.- Returns:
- an array of
ResidueStateobjects.
-
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
Atomobjects.
-
getParent
Getter for the fieldparent.- Returns:
- a
Residueobject.
-
toString
-