AtomsetIterator, MoleculesetIterator, java.io.Serializablepublic class MpiInterArrayList extends java.lang.Object implements MoleculesetIterator, java.io.Serializable
| Constructor | Description |
|---|---|
MpiInterArrayList() |
Construct iterator with an empty lists.
|
MpiInterArrayList(IMoleculeList outerList,
IMoleculeList innerList) |
Constructs iterator to return pairs from the given lists.
|
| Modifier and Type | Method | Description |
|---|---|---|
IMoleculeList |
getInnerList() |
Returns the inner list used to generate the pairs.
|
IMoleculeList |
getOuterList() |
Returns the outer list used to generate the pairs.
|
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 |
setInnerList(IMoleculeList newList) |
Sets the list that will be used to generate the pairs.
|
void |
setOuterList(IMoleculeList newList) |
Sets the list that will be used to generate the pairs.
|
int |
size() |
Returns the number of iterates, which is list.size*(list.size-1)/2
|
void |
unset() |
Sets iterator such that hasNext is false.
|
public MpiInterArrayList()
public MpiInterArrayList(IMoleculeList outerList, IMoleculeList innerList)
java.lang.IllegalArgumentException - if both lists refer to the same instancepublic void reset()
reset in interface AtomsetIteratorjava.lang.IllegalStateException - if outer and inner lists have been set to the same instancepublic void unset()
unset in interface AtomsetIteratorpublic IMoleculeList next()
next in interface MoleculesetIteratorpublic int size()
size in interface AtomsetIteratorpublic int nBody()
nBody in interface AtomsetIteratorpublic void setOuterList(IMoleculeList newList)
newList - the new molecule list for iterationpublic void setInnerList(IMoleculeList newList)
newList - the new molecule list for iterationpublic IMoleculeList getOuterList()
public IMoleculeList getInnerList()