CellLattice.NeighborIterator
, RectangularLattice.Iterator
, RectangularLatticeNbrIterator
, RectangularLatticeNbrIteratorAdjacent
, RectangularLatticeNbrIteratorSquare
public interface SiteIterator
Modifier and Type | Method | Description |
---|---|---|
boolean |
hasNext() |
Indicates whether the iterator has another site to return.
|
java.lang.Object |
next() |
Returns the next iterate.
|
int[] |
nextIndex() |
Returns the index of the next iterate while advancing iterator.
|
java.lang.Object |
peek() |
Returns the next iterate without advancing the iterator.
|
void |
reset() |
Puts the iterator in a state ready to begin iteration.
|
void |
setLattice(FiniteLattice lattice) |
Sets the lattice having the sites to be given by this iterator.
|
int |
size() |
Returns the number of iterates that this iterator would give
if reset.
|
void |
unset() |
Puts the iterator in a state such that hasNext is false.
|
boolean hasNext()
int[] nextIndex()
java.lang.Object next()
java.lang.Object peek()
void reset()
int size()
void unset()
void setLattice(FiniteLattice lattice)