|
JavaGenes, NASA Ames. Written largely by Al Globus | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.javaGenes.forceFields.MultiBody
gov.nasa.javaGenes.forceFields.Body
gov.nasa.javaGenes.forceFields.SecondBody
represents the second body and relevant parameters of a three-body.
Field Summary | |
double |
radialDistance
distance to the first body |
ThirdBody[] |
thirdBody
don't access until after createArrays has been called |
boolean |
twoBodyTermMatters
used to turn of calculation off two body energies so the three body terms will be more important. |
protected java.util.Vector |
vector
|
Fields inherited from class gov.nasa.javaGenes.forceFields.Body |
species, speciesIndex |
Fields inherited from class gov.nasa.javaGenes.forceFields.MultiBody |
_name, howMany |
Constructor Summary | |
SecondBody(Species s,
double distance)
|
|
SecondBody(Species s,
double distance,
boolean twoBodiesCount)
|
Method Summary | |
void |
add(ThirdBody body)
|
void |
createArrays()
moves the ThreeBody(s) from the vector to the array |
ThirdBody[] |
getThirdBodies()
|
static Bodies[] |
makeArray(Species[] species,
Distribution distribution)
make a set of Bodies to use in a fitness function. |
void |
removeInternalElementsOutsideOfCutoff(Potential form,
int iSpeciesIndex)
|
void |
setSpeciesIndices(Species2IndexMap map)
sets the array index for the species for each body for fast access |
java.lang.String |
toString()
|
Methods inherited from class gov.nasa.javaGenes.forceFields.Body |
scaleLengthsBy, setSpeciesIndex, tabSeparatedString, withinCutoff |
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 |
public double radialDistance
public boolean twoBodyTermMatters
protected java.util.Vector vector
public ThirdBody[] thirdBody
Constructor Detail |
public SecondBody(Species s, double distance)
s
- the species of the second bodydistance
- the distance to the first bodypublic SecondBody(Species s, double distance, boolean twoBodiesCount)
s
- the species of the second bodydistance
- the distance to the first bodytwoBodiesCount
- flag to turn of calculation of two body energiesMethod Detail |
public ThirdBody[] getThirdBodies()
public void removeInternalElementsOutsideOfCutoff(Potential form, int iSpeciesIndex)
public void add(ThirdBody body)
public void createArrays()
public java.lang.String toString()
public static Bodies[] makeArray(Species[] species, Distribution distribution)
species
- all the species to usedistribution
- provides lengthspublic void setSpeciesIndices(Species2IndexMap map)
|
JavaGenes, NASA Ames. Written largely by Al Globus | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |