SiteIteratorCellLattice.NeighborIteratorpublic class RectangularLatticeNbrIteratorSquare extends RectangularLatticeNbrIterator
| Modifier and Type | Field | Description |
|---|---|---|
protected int |
furthestNeighborDelta |
|
protected int |
halfNeighborCount |
|
protected int[] |
range |
cursor, D, doDown, doUp, isPeriodic, lattice, needNeighborUpdate, neighborCount, neighbors| Constructor | Description |
|---|---|
RectangularLatticeNbrIteratorSquare(int D) |
| Modifier and Type | Method | Description |
|---|---|---|
int[] |
getRange() |
Returns (a copy of) the array specifying the neighbor range.
|
static void |
main(java.lang.String[] args) |
Method to test the neighbor iterator.
|
void |
setLattice(FiniteLattice newLattice) |
Sets the lattice from which the iterates are given.
|
void |
setRange(int[] newRange) |
Sets the range used to define the neighboring sites.
|
protected void |
updateNeighborList() |
Method called on reset if any calls were previously made
to setLattice, setSite, setRange, or setDirection.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitD, getDirection, getLattice, hasNext, next, nextIndex, peek, reset, setDirection, setPeriodicity, setSite, size, unsetprotected final int[] range
protected int furthestNeighborDelta
protected int halfNeighborCount
public RectangularLatticeNbrIteratorSquare(int D)
D - public static void main(java.lang.String[] args)
args - protected void updateNeighborList()
updateNeighborList in class RectangularLatticeNbrIteratorpublic void setLattice(FiniteLattice newLattice)
RectangularLatticeNbrIteratorsetLattice in interface SiteIteratorsetLattice in class RectangularLatticeNbrIteratorpublic int[] getRange()
public void setRange(int[] newRange)