AtomLeafsetIterator
, AtomsetIterator
, AtomsetIteratorBasisDependent
, AtomsetIteratorTargetable
public class Atomset3IteratorIndexList extends java.lang.Object implements AtomsetIteratorBasisDependent
Constructor | Description |
---|---|
Atomset3IteratorIndexList(int[][] index) |
Constructs iterator without defining set of atoms.
|
Modifier and Type | Method | Description |
---|---|---|
int |
basisSize() |
Indicates the size of the basis needed to set the iterator.
|
protected boolean |
hasNext() |
Returns true if three non-null atoms have set and a call to reset() has
been performed, without any subsequent calls to next() or nextPair().
|
boolean |
haveTarget(IAtom a) |
Returns true if the iterator with its current basis
would return an iterate for the given target.
|
int |
nBody() |
Returns 3, indicating that this is a set of three iterator.
|
IAtomList |
next() |
Same as nextSet().
|
AtomListFromArray |
nextSet() |
Returns the iterator's pair and unsets iterator.
|
void |
reset() |
Resets iterator to a state where hasNext is true, if atoms in pair are
not null.
|
void |
setBasis(IMoleculeList parent) |
Identifies the atoms that form the basis for iteration, such that
the childList atoms of those given will form the iterates.
|
void |
setTarget(IAtom a) |
|
int |
size() |
The number of iterates returned by this iterator in its current state.
|
void |
unset() |
Sets iterator to a state where hasNext() returns false.
|
public Atomset3IteratorIndexList(int[][] index)
public int basisSize()
AtomsetIteratorBasisDependent
basisSize
in interface AtomsetIteratorBasisDependent
public boolean haveTarget(IAtom a)
AtomsetIteratorBasisDependent
haveTarget
in interface AtomsetIteratorBasisDependent
public void setTarget(IAtom a)
setTarget
in interface AtomsetIteratorTargetable
public void setBasis(IMoleculeList parent)
AtomsetIteratorBasisDependent
setBasis
in interface AtomsetIteratorBasisDependent
parent
- 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.public int size()
AtomsetIterator
size
in interface AtomsetIterator
protected boolean hasNext()
public void unset()
unset
in interface AtomsetIterator
public void reset()
reset
in interface AtomsetIterator
public AtomListFromArray nextSet()
public IAtomList next()
next
in interface AtomLeafsetIterator
public final int nBody()
nBody
in interface AtomsetIterator