public class MCMoveManager
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
protected java.util.List<etomica.integrator.mcmove.MCMoveManager.MCMoveLinker> |
mcMoveList |
Constructor | Description |
---|---|
MCMoveManager(IRandom random) |
Modifier and Type | Method | Description |
---|---|---|
void |
addMCMove(MCMove move) |
Adds the given MCMove to the set of moves performed by the integrator and
recalculates move frequencies.
|
Box |
getBox() |
|
double |
getFrequency(MCMove move) |
Returns the trial frequency set for the given move, over and above the
move's nominal frequency.
|
java.util.List<MCMove> |
getMCMoves() |
Constructs and returns array of all moves added to the integrator.
|
MCMove |
getSelectedMove() |
|
void |
recomputeMoveFrequencies() |
Recomputes all the move frequencies.
|
boolean |
removeMCMove(MCMove move) |
Removes the given MCMove from the set of moves performed by the integrator and
recalculates move frequencies.
|
MCMove |
selectMove() |
Selects a MCMove instance from among those added to the integrator, with
probability in proportion to the frequency value assigned to the move.
|
void |
setBox(Box p) |
Invokes superclass method and informs all MCMoves about the new box.
|
void |
setEquilibrating(boolean equilibrating) |
|
void |
setFrequency(MCMove move,
double newFrequency) |
Sets the trial frequency for the given move to the given frequency.
|
void |
setMCMoves(MCMove[] moves) |
Sets moves in given array to be integrator's set of moves, deleting any
existing moves.
|
protected final java.util.List<etomica.integrator.mcmove.MCMoveManager.MCMoveLinker> mcMoveList
public MCMoveManager(IRandom random)
public void setMCMoves(MCMove[] moves)
public java.util.List<MCMove> getMCMoves()
public void addMCMove(MCMove move)
java.lang.ClassCastException
- if this MCMoveManager has a Box and the
given MCMove is not an MCMoveBoxpublic boolean removeMCMove(MCMove move)
public void setBox(Box p)
java.lang.ClassCastException
- if any move is not an MCMoveBoxpublic Box getBox()
public MCMove selectMove()
public MCMove getSelectedMove()
public void recomputeMoveFrequencies()
public void setEquilibrating(boolean equilibrating)
public double getFrequency(MCMove move)
public void setFrequency(MCMove move, double newFrequency)