SiteIterator
public static class CellLattice.NeighborIterator extends RectangularLatticeNbrIteratorSquare
cursor, D, doDown, doUp, isPeriodic, lattice, needNeighborUpdate, neighborCount, neighbors
furthestNeighborDelta, halfNeighborCount, range
Constructor | Description |
---|---|
NeighborIterator(int D,
double range) |
Modifier and Type | Method | Description |
---|---|---|
void |
checkDimensions() |
Checks whether lattice dimensions have changed, and updates integer
neighbor range if they have.
|
double |
getNeighborDistance() |
|
void |
reset() |
Resets the iterator to loop through its iterates again.
|
void |
setLattice(FiniteLattice lattice) |
Sets the lattice from which the iterates are given.
|
void |
setNeighborDistance(double newNeighborDistance) |
Defines neighbors to be all cells that are within the given distance
from a central cell.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
D, getDirection, getLattice, hasNext, next, nextIndex, peek, setDirection, setPeriodicity, setSite, size, unset
getRange, main, setRange, updateNeighborList
public void setLattice(FiniteLattice lattice)
RectangularLatticeNbrIterator
setLattice
in interface SiteIterator
setLattice
in class RectangularLatticeNbrIteratorSquare
public double getNeighborDistance()
public void setNeighborDistance(double newNeighborDistance)
public void reset()
RectangularLatticeNbrIterator
reset
in interface SiteIterator
reset
in class RectangularLatticeNbrIterator
public void checkDimensions()