AtomIterator
, AtomIteratorAtomDependent
, AtomLeafsetIterator
, AtomsetIterator
, AtomsetIteratorDirectable
public static class MCMoveInsertDeleteLatticeVacancy.AtomIteratorNbr extends java.lang.Object implements AtomIteratorAtomDependent, AtomsetIteratorDirectable
Modifier and Type | Field | Description |
---|---|---|
protected int |
cursor |
|
protected IteratorDirective.Direction |
direction |
|
protected IAtom |
myAtom |
|
protected AtomArrayList |
nbrs |
|
protected NeighborListManager |
neighborManager |
Constructor | Description |
---|---|
AtomIteratorNbr(NeighborListManager neighborManager) |
Modifier and Type | Method | Description |
---|---|---|
int |
nBody() |
Returns the number of atoms given in each iterate, i.e., the
size of the atom array returned with each call to next().
|
IAtomList |
next() |
Returns the next AtomSet iterate, or null if hasNext() is false.
|
IAtom |
nextAtom() |
Returns the next atom in the iteration sequence, or
null if hasNext() is false.
|
void |
reset() |
Resets the iterator to loop through its iterates again.
|
void |
setAtom(IAtom atom) |
|
void |
setDirection(IteratorDirective.Direction direction) |
|
int |
size() |
The number of iterates returned by this iterator in its current state.
|
void |
unset() |
Puts iterator in a state in which hasNext() returns false.
|
protected final AtomArrayList nbrs
protected final NeighborListManager neighborManager
protected int cursor
protected IteratorDirective.Direction direction
protected IAtom myAtom
public AtomIteratorNbr(NeighborListManager neighborManager)
public IAtom nextAtom()
AtomIterator
nextAtom
in interface AtomIterator
public IAtomList next()
AtomLeafsetIterator
next
in interface AtomLeafsetIterator
public void reset()
AtomsetIterator
reset
in interface AtomsetIterator
public void unset()
AtomsetIterator
unset
in interface AtomsetIterator
public int size()
AtomsetIterator
size
in interface AtomsetIterator
public int nBody()
AtomsetIterator
nBody
in interface AtomsetIterator
public void setAtom(IAtom atom)
setAtom
in interface AtomIteratorAtomDependent
public void setDirection(IteratorDirective.Direction direction)
setDirection
in interface AtomsetIteratorDirectable