MoleculesetIteratorCellular
, java.io.Serializable
public class MpiAACell extends java.lang.Object implements MoleculesetIteratorCellular, java.io.Serializable
Modifier and Type | Field | Description |
---|---|---|
protected boolean[] |
periodicity |
Constructor | Description |
---|---|
MpiAACell(int D,
double range,
Box box) |
Constructor makes iterator that must have box specified and then be
reset() before iteration.
|
Modifier and Type | Method | Description |
---|---|---|
CellLattice.NeighborIterator |
getNbrCellIterator() |
|
int |
nBody() |
Returns 2, indicating that this is a pair iterator.
|
IMoleculeList |
nextPair() |
|
void |
reset() |
|
void |
setLattice(CellLattice lattice) |
|
int |
size() |
Returns the number of atom pairs the iterator will return if reset and
iterated in its present state.
|
void |
unset() |
public MpiAACell(int D, double range, Box box)
D
- the dimension of the space of the simulation (used to
construct cell iterators)range
- the distance within which pairs of atoms are considered
neighbors. Used to define neighbor cells; some iterates may
exceed this separationpublic void setLattice(CellLattice lattice)
public int size()
public IMoleculeList nextPair()
public void unset()
public int nBody()
public void reset()
public CellLattice.NeighborIterator getNbrCellIterator()
getNbrCellIterator
in interface MoleculesetIteratorCellular