gov.nasa.javaGenes.forceFields
Class TwoBody
java.lang.Object
gov.nasa.javaGenes.forceFields.MultiBody
gov.nasa.javaGenes.forceFields.TwoBody
- All Implemented Interfaces:
- java.lang.Cloneable, java.io.Serializable
- public class TwoBody
- extends MultiBody
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
_radialDistance
protected double _radialDistance
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)
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)