|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchemaxon.util.iterator.IteratorFactory.NeighbourIterator<E>
public abstract class IteratorFactory.NeighbourIterator<E>
The NeighbourIterator class provides an iterator to process the bonds connecting to the
specified atom according to the atom and bond related behavior of this factory.
| Field Summary | |
|---|---|
protected MolAtom |
atom
The atom whose the neighbours are processed. |
protected int |
currentBond
Current bond pointer of the iterator. |
protected java.util.List<MolBond> |
secondaryBonds
Secondary bonds that replace a coordinate bond to the multicenter with coordinate bonds from the metal to the represented atoms (in the MulticenterSgroup of the multicenter). |
| Constructor Summary | |
|---|---|
IteratorFactory.NeighbourIterator(MolAtom atom)
Constructs an iterator to process the bonds connecting to the specified atom. |
|
| Method Summary | |
|---|---|
protected MolBond |
getBond(int index)
Returns a bond of a specified index. |
boolean |
hasNext()
Decides whether the iteration has more element. |
protected int |
nextBondIndex(int index)
Returns the next bond index in the iteration according to the atom and bond related behavior specified in the factory. |
void |
remove()
The remove operation is not supported by this Iterator implementation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Iterator |
|---|
next |
| Field Detail |
|---|
protected MolAtom atom
protected int currentBond
protected java.util.List<MolBond> secondaryBonds
| Constructor Detail |
|---|
public IteratorFactory.NeighbourIterator(MolAtom atom)
atom - the atom whose bonds to be iterated| Method Detail |
|---|
protected MolBond getBond(int index)
index - the specified index of the bond
public boolean hasNext()
hasNext in interface java.util.Iterator<E>protected int nextBondIndex(int index)
index - the current index to get the subsequent index from
public void remove()
remove in interface java.util.Iterator<E>java.lang.UnsupportedOperationExceptionIterator.remove()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||