AtomIterator, AtomIteratorBasisDependent, AtomLeafsetIterator, AtomsetIterator, AtomsetIteratorBasisDependent, AtomsetIteratorTargetableAtomIteratorBasisFilteredType, AtomIteratorBasisFilteredType2public class AtomIteratorBasis extends AtomIteratorArrayListSimple implements AtomIteratorBasisDependent
atomSetSinglet, cursor, list| Constructor | Description |
|---|---|
AtomIteratorBasis() |
Constructor makes iterator in an unset condition; must set basis and call reset before
beginning iteration.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
basisSize() |
Returns 1, indicating that only a single-atom basis is appropriate.
|
boolean |
haveTarget(IAtom target) |
Returns true if the given target with the present basis could
yield an iterate.
|
void |
reset() |
Puts iterator in a state ready to begin iteration.
|
void |
setBasis(IMoleculeList atoms) |
Sets the basis for iteration, such that the childList atoms of the given
atom will be subject to iteration (within any specifications given by a
prior or subsequent call to setTarget).
|
void |
setTarget(IAtom newTargetAtom) |
Method to specify a target atom.
|
nextAtomgetList, nBody, next, nextAtom, setList, size, unsetnextnBody, size, unsetpublic AtomIteratorBasis()
public void setTarget(IAtom newTargetAtom)
setTarget in interface AtomsetIteratorTargetablepublic void setBasis(IMoleculeList atoms)
setBasis 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.java.lang.IllegalArgumentException - if atoms.count() is not 0 or 1public boolean haveTarget(IAtom target)
haveTarget in interface AtomsetIteratorBasisDependentpublic void reset()
reset in interface AtomsetIteratorreset in class AtomIteratorArrayListSimplepublic int basisSize()
basisSize in interface AtomsetIteratorBasisDependent