AtomIterator
, AtomIteratorAtomDependent
, AtomIteratorBasisDependent
, AtomLeafsetIterator
, AtomsetIterator
, AtomsetIteratorBasisDependent
, AtomsetIteratorTargetable
public class AtomIteratorBasisAdjustableStart extends AtomIteratorArrayList implements AtomIteratorBasisDependent
upListNow
atomSetSinglet, 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.
|
nextAtom
nextAtom, setAtom, size, unset
getList, nBody, next, setList
next
nBody, size, unset
public AtomIteratorBasisAdjustableStart()
public void setTarget(IAtom newTargetAtom)
setTarget
in interface AtomsetIteratorTargetable
public void setBasis(IMoleculeList atoms)
setBasis
in interface AtomsetIteratorBasisDependent
atoms
- 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 AtomsetIteratorBasisDependent
public void reset()
reset
in interface AtomsetIterator
reset
in class AtomIteratorArrayList
public int basisSize()
basisSize
in interface AtomsetIteratorBasisDependent