MCMoveBox
, MCMoveGeometricClusterRestrictedGE
, MCMoveMoleculeExchange
, MCMoveStep
, MCMoveSwapCluster
, MCMoveSwapConfiguration
public abstract class MCMove
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
protected MCMoveTracker |
moveTracker |
|
protected int |
nominalFrequency |
Value giving nominal frequency for performing this move.
|
protected PotentialMaster |
potential |
Constructor | Description |
---|---|
MCMove(PotentialMaster potentialMaster) |
|
MCMove(PotentialMaster potentialMaster,
MCMoveTracker acceptanceTracker) |
Modifier and Type | Method | Description |
---|---|---|
abstract void |
acceptNotify() |
Method called by IntegratorMC in the event that the most recent trial is
accepted.
|
abstract AtomIterator |
affectedAtoms(Box box) |
Returns an iterator that yields the atoms that were affected by the trial
move the last time doTrial was invoked (regardless of whether the move
was accepted).
|
abstract boolean |
doTrial() |
Method to perform trial move.
|
abstract double |
energyChange(Box box) |
Returns the change in the energy of the given box that results from the
trial move.
|
abstract double |
getChi(double temperature) |
Chi is the parameter within standard Metropolis Monte Carlo.
|
int |
getNominalFrequency() |
Returns a nominal, unnormalized frequency for performing this move,
relative to the other moves that have been added to the integrator.
|
MCMoveTracker |
getTracker() |
|
abstract void |
rejectNotify() |
Method called by IntegratorMC in the event that the most recent trial
move is rejected.
|
void |
setTracker(MCMoveTracker newTracker) |
|
java.lang.String |
toString() |
protected final PotentialMaster potential
protected int nominalFrequency
protected MCMoveTracker moveTracker
public MCMove(PotentialMaster potentialMaster)
potentialMaster
- the potential master that move can use to calculate energypublic MCMove(PotentialMaster potentialMaster, MCMoveTracker acceptanceTracker)
potentialMaster
- the potential master that move can use to calculate energypublic void setTracker(MCMoveTracker newTracker)
public abstract boolean doTrial()
public abstract double getChi(double temperature)
temperature
- used to compute chipublic abstract void acceptNotify()
public abstract void rejectNotify()
public abstract AtomIterator affectedAtoms(Box box)
public abstract double energyChange(Box box)
public MCMoveTracker getTracker()
public final int getNominalFrequency()
public java.lang.String toString()
toString
in class java.lang.Object