public class IteratorFactory
Class for construction of iterators of molecules. Iterators are given for looping
over single molecules and pairs of molecules. Different pair iterators are provided
for looping pairs from the same species, and pairs from different species.
Straightforward iterators are given by IteratorFactorySimple, which generates pairs
from the childlists of species agents. Iteration based on cell lists is performed by
iterators given by IteratorFactoryCell, in the etomica.nbr.cell package.
Selects an appropriate iterator for the given species array. If array contains
only one element, an atom iterator is returned. If array contains two elements,
an atom-pair iterator is returned, as given by the makeIntraSpeciesPairIterator
method if both elements of the array are equal, or as given by the
makeInterSpeciesPairIterator method if the array elements are different.
species - array used to determine type of iterator to return
an appropriate iterator for looping over molecules of the given species