public class MoleculeIteratorMolecule extends MoleculeIteratorArrayListSimple implements MoleculesetIteratorPDT, MoleculeIteratorBoxDependent
atomSetSinglet, cursor, list
Constructor and Description |
---|
MoleculeIteratorMolecule(ISpecies species) |
Modifier and Type | Method and Description |
---|---|
void |
reset()
Puts iterator in state ready to begin iteration.
|
void |
setBox(IBox 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, next, nextMolecule, setList, size, unset
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
nextMolecule
next
nBody, size, unset
public MoleculeIteratorMolecule(ISpecies species)
species
- species for which molecules are returned as iterates.
species must not be null.public void setBox(IBox newBox)
setBox
in interface MoleculesetIteratorBoxDependent
a
- NullPointerException if the Box is nullpublic void reset()
MoleculeIteratorArrayListSimple
reset
in interface AtomsetIterator
reset
in class MoleculeIteratorArrayListSimple
public void setTarget(IMolecule newTargetAtom)
setTarget
in interface MoleculesetIteratorTargetable
java.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