AtomsetIterator, MoleculesetIterator, MoleculesetIteratorBoxDependent, java.io.Serializablepublic 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 MoleculesetIteratorBoxDependentjava.lang.NullPointerException - if the Box is nullpublic void reset()
reset in interface AtomsetIteratorpublic void unset()
unset in interface AtomsetIteratorpublic int size()
size in interface AtomsetIteratorpublic IMoleculeList next()
next in interface MoleculesetIteratorpublic int nBody()
nBody in interface AtomsetIterator