AtomsetIterator
, MoleculesetIterator
, MoleculesetIteratorBoxDependent
, java.io.Serializable
public class MpiIntraspeciesAA extends java.lang.Object implements MoleculesetIteratorBoxDependent, java.io.Serializable
Constructor | Description |
---|---|
MpiIntraspeciesAA(ISpecies species) |
Modifier and Type | Method | Description |
---|---|---|
int |
nBody() |
Returns 2, indicating that this is a pair iterator
|
IMoleculeList |
next() |
Returns the next iterate pair.
|
void |
reset() |
Sets iterator in condition to begin iteration.
|
void |
setBox(Box box) |
Configures iterator to return molecules from the set species in the given
box.
|
int |
size() |
Returns the number of iterates, which is list.size*(list.size-1)/2
|
void |
unset() |
Sets iterator such that next is null.
|
public MpiIntraspeciesAA(ISpecies species)
species
- species whose molecules will form the pair iteratespublic void setBox(Box box)
setBox
in interface MoleculesetIteratorBoxDependent
java.lang.NullPointerException
- if the Box is nullpublic void reset()
reset
in interface AtomsetIterator
public void unset()
unset
in interface AtomsetIterator
public int size()
size
in interface AtomsetIterator
public IMoleculeList next()
next
in interface MoleculesetIterator
public int nBody()
nBody
in interface AtomsetIterator