AtomsetIterator, AtomsetIteratorDirectable, MoleculeIterator, MoleculeIteratorBoxDependent, MoleculesetIterator, MoleculesetIteratorBoxDependent, MoleculesetIteratorPDT, MoleculesetIteratorTargetablepublic class MoleculeIteratorMolecule extends MoleculeIteratorArrayListSimple implements MoleculesetIteratorPDT, MoleculeIteratorBoxDependent
atomSetSinglet, cursor, list| Constructor | Description |
|---|---|
MoleculeIteratorMolecule(ISpecies species) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
reset() |
Puts iterator in state ready to begin iteration.
|
void |
setBox(Box newBox) |
Sets the box containing the molecules for iteration.
|
void |
setDirection(IteratorDirective.Direction direction) |
Has no effect, but is included as part of the AtomsetIteratorPDT interface.
|
void |
setTarget(IMolecule newTargetAtom) |
Specifies molecule returned by this iterator, as the one containing
the given target atom.
|
nBody, size, unsetnextMoleculenBody, next, nextMolecule, setList, size, unsetnextpublic MoleculeIteratorMolecule(ISpecies species)
species - species for which molecules are returned as iterates.
species must not be null.public void setBox(Box newBox)
setBox in interface MoleculesetIteratorBoxDependentjava.lang.NullPointerException - if the Box is nullpublic void reset()
MoleculeIteratorArrayListSimplereset in interface AtomsetIteratorreset in class MoleculeIteratorArrayListSimplepublic void setTarget(IMolecule newTargetAtom)
setTarget in interface MoleculesetIteratorTargetablejava.lang.NullPointerException - if targetAtom is nulljava.lang.IllegalArgumentException - if targetAtom.count() is not 0 or 1public void setDirection(IteratorDirective.Direction direction)
setDirection in interface AtomsetIteratorDirectable