etomica.action
Class BoxRandomizeMomenta

java.lang.Object
  extended by 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.


Field Summary
protected  AtomActionRandomizeVelocity atomActionRandomizeVelocity
           
protected  IBox box
           
protected  double temperature
           
 
Constructor Summary
BoxRandomizeMomenta(IBox box, IRandom random)
           
 
Method Summary
 void actionPerformed()
          Completes the action defined by the class implementing this interface.
 IBox getBox()
           
 double getTemperature()
           
 void setTemperature(double newTemperature)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

atomActionRandomizeVelocity

protected final AtomActionRandomizeVelocity atomActionRandomizeVelocity

box

protected final IBox box

temperature

protected double temperature
Constructor Detail

BoxRandomizeMomenta

public BoxRandomizeMomenta(IBox box,
                           IRandom random)
Method Detail

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