AtomSourcepublic class AtomSourceRandomSpecies extends java.lang.Object implements AtomSource
| Modifier and Type | Field | Description |
|---|---|---|
protected Box |
box |
|
protected IMoleculeList |
list |
|
protected IRandom |
random |
|
protected ISpecies |
species |
| Constructor | Description |
|---|---|
AtomSourceRandomSpecies() |
|
AtomSourceRandomSpecies(IRandom random,
ISpecies s) |
| Modifier and Type | Method | Description |
|---|---|---|
IAtom |
getAtom() |
returns a random atom from the box's leaf atom list
|
IRandom |
getRandomNumberGenerator() |
Returns the random number generator used to pick atoms
|
void |
setBox(Box p) |
sets the Box the source should pull Atoms from.
|
void |
setRandomNumberGenerator(IRandom newRandom) |
Sets the random number generator used to pick atoms
|
void |
setSpecies(ISpecies s) |
protected IMoleculeList list
protected IRandom random
protected Box box
protected ISpecies species
public void setRandomNumberGenerator(IRandom newRandom)
public IRandom getRandomNumberGenerator()
public void setSpecies(ISpecies s)
public void setBox(Box p)
AtomSourcesetBox in interface AtomSourcepublic IAtom getAtom()
getAtom in interface AtomSource