|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectetomica.atom.iterator.AtomIteratorArrayListSimple
etomica.atom.iterator.AtomIteratorBasis
public class AtomIteratorBasis
Elementary basis-dependent iterator that gives atoms meeting specification of a basis and a target. Iterates are determined as follows:
| Field Summary |
|---|
| Fields inherited from class etomica.atom.iterator.AtomIteratorArrayListSimple |
|---|
atomSetSinglet, cursor, list |
| Constructor Summary | |
|---|---|
AtomIteratorBasis()
Constructor makes iterator in an unset condition; must set basis and call reset before beginning iteration. |
|
| Method Summary | |
|---|---|
int |
basisSize()
Returns 1, indicating that only a single-atom basis is appropriate. |
boolean |
haveTarget(IAtom target)
Returns true if the given target with the present basis could yield an iterate. |
void |
reset()
Puts iterator in a state ready to begin iteration. |
void |
setBasis(IMoleculeList atoms)
Sets the basis for iteration, such that the childList atoms of the given atom will be subject to iteration (within any specifications given by a prior or subsequent call to setTarget). |
void |
setTarget(IAtom newTargetAtom)
Method to specify a target atom. |
| Methods inherited from class etomica.atom.iterator.AtomIteratorArrayListSimple |
|---|
nBody, next, nextAtom, setList, size, unset |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface etomica.atom.iterator.AtomLeafsetIterator |
|---|
next |
| Methods inherited from interface etomica.atom.iterator.AtomsetIterator |
|---|
nBody, size, unset |
| Constructor Detail |
|---|
public AtomIteratorBasis()
| Method Detail |
|---|
public void setTarget(IAtom newTargetAtom)
setTarget in interface AtomsetIteratorTargetablepublic void setBasis(IMoleculeList atoms)
setBasis in interface AtomsetIteratorBasisDependentatoms - The basis atoms; a null basis will
condition the iterator to give no iterates until a valid basis
is specified via another call to this method.
IllegalArgumentException - if atoms.count() is not 0 or 1public boolean haveTarget(IAtom target)
haveTarget in interface AtomsetIteratorBasisDependentpublic void reset()
reset in interface AtomsetIteratorreset in class AtomIteratorArrayListSimplepublic int basisSize()
basisSize in interface AtomsetIteratorBasisDependent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||