etomica.action
Class BoxRandomizeMomenta
java.lang.Object
etomica.action.BoxRandomizeMomenta
- All Implemented Interfaces:
- IAction
public class BoxRandomizeMomenta
- extends Object
- implements IAction
Randomizes the velocities of all the leaf atoms in an IBox based on the
Maxwell-Boltzmann distribution.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
atomActionRandomizeVelocity
protected final AtomActionRandomizeVelocity atomActionRandomizeVelocity
box
protected final IBox box
temperature
protected double temperature
BoxRandomizeMomenta
public BoxRandomizeMomenta(IBox box,
IRandom random)
setTemperature
public void setTemperature(double newTemperature)
getTemperature
public double getTemperature()
getBox
public IBox getBox()
actionPerformed
public void actionPerformed()
- Description copied from interface:
IAction
- Completes the action defined by the class implementing this interface.
- Specified by:
actionPerformed in interface IAction