|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectetomica.atom.iterator.AtomIteratorArrayListAdjacent
public class AtomIteratorArrayListAdjacent
Returns one or both of the atoms adjacent to a specified atom in its parent's child list. If adjacent linker has no atom no corresponding atom is given as an iterate; thus iterator may give 0, 1, or 2 iterates depending on presence of adjacent atoms and specification of iteration direction.
| Field Summary | |
|---|---|
protected AtomSetSinglet |
atomSetSinglet
|
| Constructor Summary | |
|---|---|
AtomIteratorArrayListAdjacent(IteratorDirective.Direction direction)
Constructor gives iterator not ready for iteration. |
|
AtomIteratorArrayListAdjacent(IteratorDirective.Direction direction,
AtomToIndex atomToIndex,
AtomToAtomLeafList atomToAtomSet)
|
|
| Method Summary | |
|---|---|
int |
nBody()
Returns 1, indicating that this is an atom AtomSet iterator. |
IAtomList |
next()
Same as nextAtom. |
IAtom |
nextAtom()
Returns the next iterator, or null if hasNext is false. |
void |
reset()
Readies the iterator to begin iteration. |
void |
setAtom(IAtom atom)
Sets the first atom for iteration. |
int |
size()
Returns the number of iterates that iterator would give if reset and iterated in its current condition. |
void |
unset()
Puts iterator in a state where hasNext is false. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final AtomSetSinglet atomSetSinglet
| Constructor Detail |
|---|
public AtomIteratorArrayListAdjacent(IteratorDirective.Direction direction)
public AtomIteratorArrayListAdjacent(IteratorDirective.Direction direction,
AtomToIndex atomToIndex,
AtomToAtomLeafList atomToAtomSet)
| Method Detail |
|---|
public int size()
size in interface AtomsetIteratorpublic int nBody()
nBody in interface AtomsetIteratorpublic IAtomList next()
next in interface AtomLeafsetIteratorpublic IAtom nextAtom()
nextAtom in interface AtomIteratorpublic void reset()
reset in interface AtomsetIteratorpublic void unset()
unset in interface AtomsetIteratorpublic void setAtom(IAtom atom)
setAtom in interface AtomIteratorAtomDependent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||