AtomIterator
, AtomIteratorBasisDependent
, AtomLeafsetIterator
, AtomsetIterator
, AtomsetIteratorBasisDependent
, AtomsetIteratorTargetable
AtomIteratorBasisFilteredType
, AtomIteratorBasisFilteredType2
public 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.
|
nextAtom
getList, nBody, next, nextAtom, setList, size, unset
next
nBody, size, unset
public AtomIteratorBasis()
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 AtomIteratorArrayListSimple
public int basisSize()
basisSize
in interface AtomsetIteratorBasisDependent