*/
public class DynamicsFactory
{
public IIntegratorThermostatted brownianDynamicsEuler(IEnergyModel model, IDoubleArray masses, double dt, double gamma, double kT)
{
IIntegratorThermostatted res = new BrownianDynamicsEuler(dt, gamma, kT);
res.setEnergyModel(model);
res.setMasses(masses);
return(res);
}