AtomIterator, AtomIteratorAtomDependent, AtomIteratorBasisDependent, AtomLeafsetIterator, AtomsetIterator, AtomsetIteratorBasisDependent, AtomsetIteratorTargetablepublic class AtomIteratorBasisAdjustableStart extends AtomIteratorArrayList implements AtomIteratorBasisDependent
upListNowatomSetSinglet, cursor, list| Constructor | Description |
|---|---|
AtomIteratorBasisAdjustableStart() |
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.
|
nextAtomnextAtom, setAtom, size, unsetgetList, nBody, next, setListnextnBody, size, unsetpublic AtomIteratorBasisAdjustableStart()
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 AtomIteratorArrayListpublic int basisSize()
basisSize in interface AtomsetIteratorBasisDependent