JavaGenes, NASA Ames. Written largely by Al Globus

gov.nasa.javaGenes.forceFields
Class Body

java.lang.Object
  extended bygov.nasa.javaGenes.forceFields.MultiBody
      extended bygov.nasa.javaGenes.forceFields.Body
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable
Direct Known Subclasses:
OneBody, SecondBody, ThirdBody

public class Body
extends MultiBody

This is used as a superclass by OneBody, TwoBody, and ThreeBody

See Also:
Serialized Form

Field Summary
 Species species
          the species of this body (second body in TwoBody, third body in ThreeBody)
 int speciesIndex
          the species index.
 
Fields inherited from class gov.nasa.javaGenes.forceFields.MultiBody
_name, howMany
 
Constructor Summary
Body(Species s)
           
 
Method Summary
 void scaleLengthsBy(double scaleFactor)
           
protected  void setSpeciesIndex(Species2IndexMap map)
          used to set the species index
 java.lang.String tabSeparatedString()
           
 boolean withinCutoff(Potential form)
           
 
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, toString, wait, wait, wait
 

Field Detail

species

public Species species
the species of this body (second body in TwoBody, third body in ThreeBody)


speciesIndex

public int speciesIndex
the species index. Used for speed.

Constructor Detail

Body

public Body(Species s)
Method Detail

setSpeciesIndex

protected void setSpeciesIndex(Species2IndexMap map)
used to set the species index


scaleLengthsBy

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

withinCutoff

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

tabSeparatedString

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

JavaGenes, NASA Ames. Written largely by Al Globus