AtomsetIterator
, AtomsetIteratorDirectable
, MoleculesetIterator
, MoleculesetIteratorBoxDependent
, MoleculesetIteratorPDT
, MoleculesetIteratorTargetable
, java.io.Serializable
public 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()
AtomsetIterator
nBody
in interface AtomsetIterator
public void setBox(Box newBox)
setBox
in interface MoleculesetIteratorBoxDependent
java.lang.NullPointerException
- if the Box is nullpublic void setTarget(IMolecule newTargetAtom)
setTarget
in interface MoleculesetIteratorTargetable
java.lang.NullPointerException
- if targetAtom is nullpublic void reset()
AtomsetIterator
reset
in interface AtomsetIterator
public void unset()
AtomsetIterator
unset
in interface AtomsetIterator
public void setDirection(IteratorDirective.Direction direction)
setDirection
in interface AtomsetIteratorDirectable
public int size()
size
in interface AtomsetIterator
public IMoleculeList next()
MoleculesetIterator
next
in interface MoleculesetIterator