JavaGenes, NASA Ames. Written largely by Al Globus

gov.nasa.javaGenes.forceFields
Class PotentialEnergyTestCase

java.lang.Object
  extended bygov.nasa.javaGenes.forceFields.PotentialEnergyTestCase

public class PotentialEnergyTestCase
extends java.lang.Object


Field Summary
protected  Bodies[] bodies
           
protected  double[] energy
          the ideal energies for bodies
 
Constructor Summary
PotentialEnergyTestCase(double[] e, Bodies[] b)
           
 
Method Summary
 double[] getDifference(Potential potential)
           
 void printTo(EasyFile file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

energy

protected double[] energy
the ideal energies for bodies


bodies

protected Bodies[] bodies
Constructor Detail

PotentialEnergyTestCase

public PotentialEnergyTestCase(double[] e,
                               Bodies[] b)
Parameters:
e - the energies, a copy is not made
b - the bodies, a copy is not made
Method Detail

getDifference

public double[] getDifference(Potential potential)
Returns:
the energies calculated with the input potential for this.bodies minus the ideal energies stored in this.energy.

printTo

public void printTo(EasyFile file)

JavaGenes, NASA Ames. Written largely by Al Globus