etomica.nbr.cell
Class ApiAACell

java.lang.Object
  extended by 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

Field Summary
protected  boolean[] periodicity
           
 
Constructor Summary
ApiAACell(int D, double range, IBox box)
          Constructor makes iterator that must have box specified and then be reset() before iteration.
 
Method Summary
 CellLattice.NeighborIterator getNbrCellIterator()
           
 int nBody()
          Returns 2, indicating that this is a pair iterator.
 IAtomList 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

periodicity

protected final boolean[] periodicity
Constructor Detail

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
Method Detail

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.