|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectetomica.atom.iterator.ApiIntragroup
public final class ApiIntragroup
Returns iterates from the childList of a single basis atom. Behavior is set via iterator directive: if no atom is specified there, all pairs formed from the childList are given; otherwise, if an atom is specified there, pairs will be formed from the childList atoms with the basis' child from which the target atom is descended.
| Constructor Summary | |
|---|---|
ApiIntragroup()
Constructor makes iterator that must have basis specified and then be reset() before iteration. |
|
ApiIntragroup(AtomIteratorAtomDependent aiInnerUp,
AtomIteratorAtomDependent aiInnerDn)
|
|
ApiIntragroup(AtomsetIteratorBasisDependent aiOuter,
AtomIteratorAtomDependent aiInnerUp,
AtomIteratorAtomDependent aiInnerDn)
|
|
| Method Summary | |
|---|---|
int |
basisSize()
Returns 1, indicating the the array given to the setBasis method should have only one element. |
boolean |
haveTarget(IAtom target)
Returns true if the iterator with its current basis would return an iterate for the given target. |
int |
nBody()
Returns the number of atoms given in each iterate, i.e., the size of the atom array returned with each call to next(). |
IAtomList |
next()
Returns the next AtomSet iterate, or null if hasNext() is false. |
void |
reset()
Puts iterator in a state to begin iteration. |
void |
setBasis(IMoleculeList atoms)
Specifies the parent atom of the iterates. |
void |
setDirection(IteratorDirective.Direction direction)
Specifies the direction, which applies only if iterating pairs with a target atom; otherwise, if all pairs from group are indicated, direction is ignored. |
void |
setTarget(IAtom newTargetAtom)
|
int |
size()
Returns the number of atom pairs the iterator will return if reset and iterated in its present state. |
void |
unset()
Puts iterator in a state in which hasNext() returns false. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ApiIntragroup()
public ApiIntragroup(AtomIteratorAtomDependent aiInnerUp,
AtomIteratorAtomDependent aiInnerDn)
public ApiIntragroup(AtomsetIteratorBasisDependent aiOuter,
AtomIteratorAtomDependent aiInnerUp,
AtomIteratorAtomDependent aiInnerDn)
| Method Detail |
|---|
public int nBody()
AtomsetIterator
nBody in interface AtomsetIteratorpublic void setTarget(IAtom newTargetAtom)
setTarget in interface AtomsetIteratorTargetablepublic boolean haveTarget(IAtom target)
AtomsetIteratorBasisDependent
haveTarget in interface AtomsetIteratorBasisDependentpublic void reset()
reset in interface AtomsetIteratorpublic void unset()
AtomsetIterator
unset in interface AtomsetIteratorpublic 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.public void setDirection(IteratorDirective.Direction direction)
setDirection in interface AtomsetIteratorDirectablepublic int size()
size in interface AtomsetIteratorpublic IAtomList next()
AtomLeafsetIterator
next in interface AtomLeafsetIteratorpublic int basisSize()
basisSize in interface AtomsetIteratorBasisDependent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||