AtomLeafsetIterator
, AtomsetIterator
, AtomsetIteratorBasisDependent
, AtomsetIteratorTargetable
public class ApiIntergroupExchange extends ApiIntergroup
Modifier and Type | Field | Description |
---|---|---|
protected int |
aiInnerSize |
|
protected int |
aiOuterSize |
|
protected int |
atom1 |
|
protected int |
atom2 |
|
protected int |
monomer1 |
|
protected int |
P |
|
protected IAtom |
startAtom0 |
|
protected IAtom |
startAtom1 |
aiInner, aiOuter, atomSetSinglet, needSetupIterators, pair, targetAtom
Constructor | Description |
---|---|
ApiIntergroupExchange(int P) |
Modifier and Type | Method | Description |
---|---|---|
IAtomList |
next() |
Returns the next pair of atoms.
|
void |
reset() |
Resets the iterator to loop through its iterates again.
|
void |
setBasis(IMoleculeList basisAtoms) |
Specifies the basis, which identifies the atoms subject to iteration.
|
int |
size() |
Returns the number of pairs given by this iterator.
|
basisSize, getInnerIterator, getOuterIterator, haveTarget, nBody, setTarget, setupIterators, unset
protected final int P
protected int monomer1
protected int atom1
protected int atom2
protected IAtom startAtom0
protected IAtom startAtom1
protected int aiOuterSize
protected int aiInnerSize
public int size()
size
in interface AtomsetIterator
size
in class ApiIntergroup
public IAtomList next()
next
in interface AtomLeafsetIterator
next
in class ApiIntergroup
public void reset()
AtomsetIterator
reset
in interface AtomsetIterator
reset
in class ApiIntergroup
public void setBasis(IMoleculeList basisAtoms)
ApiIntergroup
setBasis
in interface AtomsetIteratorBasisDependent
setBasis
in class ApiIntergroup
basisAtoms
- 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.