SiteIteratorpublic static class CellLattice.NeighborIterator extends RectangularLatticeNbrIteratorSquare
cursor, D, doDown, doUp, isPeriodic, lattice, needNeighborUpdate, neighborCount, neighborsfurthestNeighborDelta, 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, waitD, getDirection, getLattice, hasNext, next, nextIndex, peek, setDirection, setPeriodicity, setSite, size, unsetgetRange, main, setRange, updateNeighborListpublic void setLattice(FiniteLattice lattice)
RectangularLatticeNbrIteratorsetLattice in interface SiteIteratorsetLattice in class RectangularLatticeNbrIteratorSquarepublic double getNeighborDistance()
public void setNeighborDistance(double newNeighborDistance)
public void reset()
RectangularLatticeNbrIteratorreset in interface SiteIteratorreset in class RectangularLatticeNbrIteratorpublic void checkDimensions()