AtomsetIterator, AtomsetIteratorDirectable, MoleculesetIterator, MoleculesetIteratorBoxDependent, MoleculesetIteratorPDT, MoleculesetIteratorTargetablepublic static class PotentialMaster.MoleculeIterator0 extends java.lang.Object implements MoleculesetIteratorPDT
| Modifier and Type | Field | Description |
|---|---|---|
protected boolean |
finished |
|
protected MoleculeArrayList |
list |
| Constructor | Description |
|---|---|
MoleculeIterator0() |
| 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().
|
IMoleculeList |
next() |
Returns the next AtomSet iterate, or null if hasNext() is false.
|
void |
reset() |
Resets the iterator to loop through its iterates again.
|
void |
setBox(Box box) |
Sets the Box to pull iterates from
|
void |
setDirection(IteratorDirective.Direction direction) |
|
void |
setTarget(IMolecule target) |
|
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 MoleculeArrayList list
protected boolean finished
public void setBox(Box box)
MoleculesetIteratorBoxDependentsetBox in interface MoleculesetIteratorBoxDependentpublic void setTarget(IMolecule target)
setTarget in interface MoleculesetIteratorTargetablepublic void setDirection(IteratorDirective.Direction direction)
setDirection in interface AtomsetIteratorDirectablepublic int nBody()
AtomsetIteratornBody in interface AtomsetIteratorpublic IMoleculeList next()
MoleculesetIteratornext in interface MoleculesetIteratorpublic void reset()
AtomsetIteratorreset in interface AtomsetIteratorpublic int size()
AtomsetIteratorsize in interface AtomsetIteratorpublic void unset()
AtomsetIteratorunset in interface AtomsetIterator