public class LinearList extends AbstractList implements IProbabilityHolder
| Modifier and Type | Field and Description |
|---|---|
private boolean |
clean
Stores if the current totalProbability and the probability calculated from the list are the same.
|
private double |
Ri_DeltaI |
private java.util.ArrayList<AbstractAtom> |
surface |
EVENTS_PER_CLEANUP| Constructor and Description |
|---|
LinearList(Parser parser) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAtom(AbstractAtom atom) |
void |
addDiffusionProbability(double probabilityChange)
Updates the diffusion probability.
|
int |
cleanup() |
void |
deleteAtom(AbstractAtom atom) |
AbstractAtom |
getAtomAt(int position) |
double |
getDiffusionProbabilityFromList() |
java.util.ListIterator<AbstractAtom> |
getIterator() |
double |
getRi_DeltaI() |
int |
getSize() |
AbstractAtom |
nextEvent() |
void |
reset() |
addRemovalsSinceLastCleanup, addTime, addTime, autoCleanup, autoCleanup, getDeltaTime, getDepositionProbability, getDiffusionProbability, getGlobalProbability, getLevel, getParent, getRemovalsSinceLastCleanup, getTime, getTotalAtoms, nextReaction, resetRemovalsSinceLastCleanup, resetTime, setDepositionProbability, setDiffusionProbability, setLevel, setParent, setRates, setTotalAtomsprivate final java.util.ArrayList<AbstractAtom> surface
private boolean clean
private double Ri_DeltaI
public LinearList(Parser parser)
public double getDiffusionProbabilityFromList()
getDiffusionProbabilityFromList in class AbstractListpublic void addDiffusionProbability(double probabilityChange)
addDiffusionProbability in interface IProbabilityHolderprobabilityChange - probability change.public void reset()
reset in class AbstractListpublic int cleanup()
cleanup in class AbstractListpublic void addAtom(AbstractAtom atom)
addAtom in class AbstractListpublic void deleteAtom(AbstractAtom atom)
deleteAtom in class AbstractListpublic AbstractAtom nextEvent()
nextEvent in class AbstractListpublic int getSize()
getSize in class AbstractListpublic AbstractAtom getAtomAt(int position)
getAtomAt in class AbstractListpublic java.util.ListIterator<AbstractAtom> getIterator()
getIterator in class AbstractListpublic double getRi_DeltaI()