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, setTotalAtoms
private final java.util.ArrayList<AbstractAtom> surface
private boolean clean
private double Ri_DeltaI
public LinearList(Parser parser)
public double getDiffusionProbabilityFromList()
getDiffusionProbabilityFromList
in class AbstractList
public void addDiffusionProbability(double probabilityChange)
addDiffusionProbability
in interface IProbabilityHolder
probabilityChange
- probability change.public void reset()
reset
in class AbstractList
public int cleanup()
cleanup
in class AbstractList
public void addAtom(AbstractAtom atom)
addAtom
in class AbstractList
public void deleteAtom(AbstractAtom atom)
deleteAtom
in class AbstractList
public AbstractAtom nextEvent()
nextEvent
in class AbstractList
public int getSize()
getSize
in class AbstractList
public AbstractAtom getAtomAt(int position)
getAtomAt
in class AbstractList
public java.util.ListIterator<AbstractAtom> getIterator()
getIterator
in class AbstractList
public double getRi_DeltaI()