AtomLeafsetIterator, AtomsetIterator, AtomsetIteratorBasisDependent, AtomsetIteratorTargetablepublic class AtomsetIteratorAllLeafAtoms extends java.lang.Object implements AtomsetIteratorBasisDependent
This class is designed to work and conform to the API... not to be efficient or pleasant to look at! Use neighbor lists.
| Constructor | Description |
|---|---|
AtomsetIteratorAllLeafAtoms() |
| Modifier and Type | Method | Description |
|---|---|---|
int |
basisSize() |
Indicates the size of the basis needed to set the iterator.
|
boolean |
haveTarget(IAtom target) |
Returns true if the iterator with its current basis
would return an iterate for the given target.
|
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.
|
void |
reset() |
Resets the iterator to loop through its iterates again.
|
void |
setBasis(IMoleculeList atoms) |
Identifies the atoms that form the basis for iteration, such that
the childList atoms of those given will form the iterates.
|
void |
setTarget(IAtom newTargetAtom) |
Sets the target of iteration...
|
int |
size() |
Returns the number of iterates given by this iterator, if iterated after
a call to reset().
|
void |
unset() |
Puts iterator in a state in which hasNext() returns false.
|
public void setTarget(IAtom newTargetAtom)
setTarget in interface AtomsetIteratorTargetablepublic void reset()
AtomsetIteratorreset in interface AtomsetIteratorpublic void unset()
AtomsetIteratorunset in interface AtomsetIteratorpublic IAtomList next()
AtomLeafsetIteratornext in interface AtomLeafsetIteratorpublic int nBody()
AtomsetIteratornBody in interface AtomsetIteratorpublic int size()
size in interface AtomsetIteratorpublic int basisSize()
AtomsetIteratorBasisDependentbasisSize in interface AtomsetIteratorBasisDependentpublic boolean haveTarget(IAtom target)
AtomsetIteratorBasisDependenthaveTarget in interface AtomsetIteratorBasisDependentpublic void setBasis(IMoleculeList atoms)
AtomsetIteratorBasisDependentsetBasis in interface AtomsetIteratorBasisDependentatoms - The basis atoms; a null basis will
condition the iterator to give no iterates until a valid basis
is specified via another call to this method.