etomica.nbr.cell
Class ApiAACell
java.lang.Object
etomica.nbr.cell.ApiAACell
- All Implemented Interfaces:
- AtomsetIteratorCellular, Serializable
public class ApiAACell
- extends Object
- implements AtomsetIteratorCellular, Serializable
Returns iterates formed from all cell-based neighbor pairs.
- See Also:
- Serialized Form
|
Constructor Summary |
ApiAACell(int D,
double range,
IBox box)
Constructor makes iterator that must have box specified and then be
reset() before iteration. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
periodicity
protected final boolean[] periodicity
ApiAACell
public ApiAACell(int D,
double range,
IBox box)
- Constructor makes iterator that must have box specified and then be
reset() before iteration.
- Parameters:
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 separation
setLattice
public void setLattice(CellLattice lattice)
size
public int size()
- Returns the number of atom pairs the iterator will return if reset and
iterated in its present state.
nextPair
public IAtomList nextPair()
unset
public void unset()
nBody
public int nBody()
- Returns 2, indicating that this is a pair iterator.
reset
public void reset()
getNbrCellIterator
public CellLattice.NeighborIterator getNbrCellIterator()
- Specified by:
getNbrCellIterator in interface AtomsetIteratorCellular
- Returns:
- Returns the cellIterator.