AtomsetIterator, AtomsetIteratorDirectable, MoleculesetIterator, MoleculesetIteratorBoxDependent, MoleculesetIteratorPDT, MoleculesetIteratorTargetable, java.io.Serializablepublic class MpiIntraspecies1A extends java.lang.Object implements MoleculesetIteratorPDT, java.io.Serializable
| Modifier and Type | Field | Description |
|---|---|---|
protected MoleculeIteratorSinglet |
aiOuter |
|
protected MpiInnerVariable |
apiDown |
|
protected MpiInnerVariable |
apiUp |
|
protected MoleculeToMoleculeListSpecies |
atomToAtomSet |
|
protected Box |
box |
|
protected IteratorDirective.Direction |
direction |
|
protected boolean |
doGoDown |
|
protected boolean |
upListNow |
| Modifier | Constructor | Description |
|---|---|---|
|
MpiIntraspecies1A(ISpecies species) |
|
protected |
MpiIntraspecies1A(ISpecies species,
MoleculeToMoleculeListSpecies atomToAtomSet) |
| Modifier and Type | Method | Description |
|---|---|---|
int |
nBody() |
Returns the number of atoms given in each iterate, i.e., the
size of the atom array returned with each call to next().
|
IMoleculeList |
next() |
Returns the next AtomSet iterate, or null if hasNext() is false.
|
void |
reset() |
Resets the iterator to loop through its iterates again.
|
void |
setBox(Box newBox) |
Configures iterator to return molecules from the set species in the given
box.
|
void |
setDirection(IteratorDirective.Direction direction) |
Specifies the direction, which applies only if iterating pairs
with a target atom; otherwise, if all pairs from group are indicated,
direction is ignored.
|
void |
setTarget(IMolecule newTargetAtom) |
Sets the target molecule with which all pairs are formed.
|
int |
size() |
Returns the number of atom pairs the iterator will return if
reset and iterated in its present state.
|
void |
unset() |
Puts iterator in a state in which hasNext() returns false.
|
protected final MoleculeIteratorSinglet aiOuter
protected IteratorDirective.Direction direction
protected final MpiInnerVariable apiUp
protected final MpiInnerVariable apiDown
protected boolean doGoDown
protected boolean upListNow
protected Box box
protected MoleculeToMoleculeListSpecies atomToAtomSet
public MpiIntraspecies1A(ISpecies species)
species - species whose molecules will form the pair iteratesprotected MpiIntraspecies1A(ISpecies species, MoleculeToMoleculeListSpecies atomToAtomSet)
public int nBody()
AtomsetIteratornBody in interface AtomsetIteratorpublic void setBox(Box newBox)
setBox in interface MoleculesetIteratorBoxDependentjava.lang.NullPointerException - if the Box is nullpublic void setTarget(IMolecule newTargetAtom)
setTarget in interface MoleculesetIteratorTargetablejava.lang.NullPointerException - if targetAtom is nullpublic void reset()
AtomsetIteratorreset in interface AtomsetIteratorpublic void unset()
AtomsetIteratorunset in interface AtomsetIteratorpublic void setDirection(IteratorDirective.Direction direction)
setDirection in interface AtomsetIteratorDirectablepublic int size()
size in interface AtomsetIteratorpublic IMoleculeList next()
MoleculesetIteratornext in interface MoleculesetIterator