AtomLeafsetIterator, AtomsetIterator, AtomsetIteratorBasisDependent, AtomsetIteratorTargetablepublic 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, unsetprotected 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 AtomsetIteratorsize in class ApiIntergrouppublic IAtomList next()
next in interface AtomLeafsetIteratornext in class ApiIntergrouppublic void reset()
AtomsetIteratorreset in interface AtomsetIteratorreset in class ApiIntergrouppublic void setBasis(IMoleculeList basisAtoms)
ApiIntergroupsetBasis in interface AtomsetIteratorBasisDependentsetBasis in class ApiIntergroupbasisAtoms - 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.