SiteIterator
CellLattice.NeighborIterator
public 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, wait
D, getDirection, getLattice, hasNext, next, nextIndex, peek, reset, setDirection, setPeriodicity, setSite, size, unset
protected 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 RectangularLatticeNbrIterator
public void setLattice(FiniteLattice newLattice)
RectangularLatticeNbrIterator
setLattice
in interface SiteIterator
setLattice
in class RectangularLatticeNbrIterator
public int[] getRange()
public void setRange(int[] newRange)