Class RotamerMatrixMC

java.lang.Object
ffx.algorithms.mc.BoltzmannMC
ffx.algorithms.optimize.manybody.RotamerMatrixMC
All Implemented Interfaces:
MetropolisMC

public class RotamerMatrixMC extends BoltzmannMC
Monte Carlo driver for DEE-MC.
  • Constructor Details

    • RotamerMatrixMC

      public RotamerMatrixMC(int[] rotamers, Residue[] residues, boolean useFullAMOEBAEnergy, RotamerOptimization rotamerOptimization)
      The Rotamers array must be the same array as passed to any MCMove objects used (and not a copy).
      Parameters:
      rotamers - Array of rotamers.
      residues - Array of residues.
      useFullAMOEBAEnergy - If true, re-evaluate AMOEBA energy for each conformation.
      rotamerOptimization - RotamerOptimization instance.
  • Method Details

    • revertStep

      public void revertStep()
      Description copied from interface: MetropolisMC
      If possible, reverts the last successful Monte Carlo step taken.
    • currentEnergy

      protected double currentEnergy()
      If useFullAMOEBAEnergy is set to true, explicitly evaluates energy, else computes energy from the rotamer energy matrices.
      Specified by:
      currentEnergy in class BoltzmannMC
      Returns:
      Energy at the current state
    • storeState

      protected void storeState()
      Description copied from class: BoltzmannMC
      Store the state for reverting a move. Must be properly implemented for revertStep() to function properly; otherwise, the implementation of revertStep() should throw an OperationNotSupportedException.
      Specified by:
      storeState in class BoltzmannMC