AtomSource
, java.io.Serializable
AtomSourceRandomMonomer
public class AtomSourceRandomLeaf extends java.lang.Object implements AtomSource, java.io.Serializable
Modifier and Type | Field | Description |
---|---|---|
protected IAtomList |
list |
|
protected IRandom |
random |
Constructor | Description |
---|---|
AtomSourceRandomLeaf() |
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
|
public void setRandomNumberGenerator(IRandom newRandom)
public IRandom getRandomNumberGenerator()
public void setBox(Box p)
AtomSource
setBox
in interface AtomSource
public IAtom getAtom()
getAtom
in interface AtomSource