public class ModifiedBuffer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.List<AbstractGrowthAtom> |
buffer |
private java.util.List<AbstractGrowthAtom> |
bufferL |
Constructor and Description |
---|
ModifiedBuffer() |
Modifier and Type | Method and Description |
---|---|
void |
addBondAtom(AbstractGrowthAtom atom)
Adds a bond atom to the current modified buffer list.
|
void |
addOwnAtom(AbstractGrowthAtom atom)
Adds an atom to the current modified buffer list.
|
void |
clear()
Empties current modified buffer.
|
private void |
updateAllNeighbours(AbstractGrowthAtom atom,
AbstractList list) |
private void |
updateAllRates(AbstractGrowthAtom atom,
AbstractList list) |
void |
updateAtoms(AbstractList list)
Update rates list with the current modified atoms list.
|
private final java.util.List<AbstractGrowthAtom> buffer
private final java.util.List<AbstractGrowthAtom> bufferL
public void addOwnAtom(AbstractGrowthAtom atom)
atom
- atom to be added.public void addBondAtom(AbstractGrowthAtom atom)
atom
- atom to be added.public void updateAtoms(AbstractList list)
list
- list to be changed.private void updateAllRates(AbstractGrowthAtom atom, AbstractList list)
private void updateAllNeighbours(AbstractGrowthAtom atom, AbstractList list)
public void clear()