AtomsetIterator
, AtomsetIteratorDirectable
, MoleculeIterator
, MoleculeIteratorBoxDependent
, MoleculesetIterator
, MoleculesetIteratorBoxDependent
, MoleculesetIteratorPDT
, MoleculesetIteratorTargetable
public 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, unset
nextMolecule
nBody, next, nextMolecule, setList, size, unset
next
public 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 MoleculesetIteratorBoxDependent
java.lang.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