Package ffx.potential
Class AssemblyState
java.lang.Object
ffx.potential.AssemblyState
The AssemblyState class stores the chemical and coordinate state of a Molecular Assembly. Not
robust to any chemical perturbation except for mutation of MultiResidues.
- Since:
- 1.0
- Author:
- Michael J. Schnieders, Jacob M. Litman
-
Constructor Summary
ConstructorDescriptionAssemblyState
(MolecularAssembly assembly) Construct a snapshot of a MolecularAssembly. -
Method Summary
Modifier and TypeMethodDescriptionstatic AssemblyState
copyState
(AssemblyState state) Copies an AssemblyState.Returns the MolecularAssembly associated with this AssemblyState.void
Revert the state of the associated MolecularAssembly, assuming no chemical changes were made except to MultiResidues.
-
Constructor Details
-
AssemblyState
Construct a snapshot of a MolecularAssembly. Currently accounts for the coordinates of all entities, and the chemical state of MultiResidues. Does not include velocities, etc.- Parameters:
assembly
- To store state of.
-
-
Method Details
-
copyState
Copies an AssemblyState. Note: side effects possible if they occur between applying the state to be copied and reverting to the pre-method-call state.- Parameters:
state
- AssemblyState to copy.- Returns:
- A copied AssemblyState.
-
getMolecularAssembly
Returns the MolecularAssembly associated with this AssemblyState.- Returns:
- The associated MolecularAssembly.
-
revertState
public void revertState()Revert the state of the associated MolecularAssembly, assuming no chemical changes were made except to MultiResidues.
-