AtomsetIterator
, AtomsetIteratorDirectable
, MoleculesetIterator
, MoleculesetIteratorBoxDependent
, MoleculesetIteratorPDT
, MoleculesetIteratorTargetable
public 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)
MoleculesetIteratorBoxDependent
setBox
in interface MoleculesetIteratorBoxDependent
public void setTarget(IMolecule target)
setTarget
in interface MoleculesetIteratorTargetable
public void setDirection(IteratorDirective.Direction direction)
setDirection
in interface AtomsetIteratorDirectable
public int nBody()
AtomsetIterator
nBody
in interface AtomsetIterator
public IMoleculeList next()
MoleculesetIterator
next
in interface MoleculesetIterator
public void reset()
AtomsetIterator
reset
in interface AtomsetIterator
public int size()
AtomsetIterator
size
in interface AtomsetIterator
public void unset()
AtomsetIterator
unset
in interface AtomsetIterator