JavaGenes, NASA Ames. Written largely by Al Globus

gov.nasa.javaGenes.forceFields
Class TwoBody

java.lang.Object
  extended bygov.nasa.javaGenes.forceFields.MultiBody
      extended bygov.nasa.javaGenes.forceFields.TwoBody
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class TwoBody
extends MultiBody

See Also:
Serialized Form

Field Summary
protected  double _radialDistance
           
 
Fields inherited from class gov.nasa.javaGenes.forceFields.MultiBody
_name, howMany
 
Constructor Summary
TwoBody(Atom atomi, Atom atomj)
           
TwoBody(Atom atomi, Atom atomj, UnitCell unitCell)
           
TwoBody(java.lang.String atomi, java.lang.String atomj)
           
TwoBody(java.lang.String atomi, java.lang.String atomj, double distance)
           
 
Method Summary
 double getR()
           
 boolean isReasonable()
           
 boolean nearlyEqual(TwoBody other)
           
 void scaleLengthsBy(double scaleFactor)
           
 void setR(double r)
           
 java.lang.String tabSeparatedString()
           
 java.lang.String toString()
           
 boolean withinCutoff(double cutoff)
           
 boolean withinCutoff(Potential potential)
           
 
Methods inherited from class gov.nasa.javaGenes.forceFields.MultiBody
copy, divideHowManyBy, getHowMany, getName, incrementHowMany, removeInternalElementsOutsideOfCutoff, setHowMany, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_radialDistance

protected double _radialDistance
Constructor Detail

TwoBody

public TwoBody(java.lang.String atomi,
               java.lang.String atomj,
               double distance)

TwoBody

public TwoBody(java.lang.String atomi,
               java.lang.String atomj)

TwoBody

public TwoBody(Atom atomi,
               Atom atomj)

TwoBody

public TwoBody(Atom atomi,
               Atom atomj,
               UnitCell unitCell)
Method Detail

getR

public double getR()

setR

public void setR(double r)

scaleLengthsBy

public void scaleLengthsBy(double scaleFactor)
Specified by:
scaleLengthsBy in class MultiBody

withinCutoff

public boolean withinCutoff(Potential potential)
Specified by:
withinCutoff in class MultiBody

withinCutoff

public boolean withinCutoff(double cutoff)

isReasonable

public boolean isReasonable()

toString

public java.lang.String toString()

tabSeparatedString

public java.lang.String tabSeparatedString()
Specified by:
tabSeparatedString in class MultiBody

nearlyEqual

public boolean nearlyEqual(TwoBody other)

JavaGenes, NASA Ames. Written largely by Al Globus