public class IteratorFactory.BondNeighbourIterator extends IteratorFactory.NeighbourIterator<MolBond>
BondNeighbourIterator
class provides an iterator to
process the bonds connecting to the specified atom according to the atom
and bond related behavior of this factory. The following bonds are
excluded:
If the atom related behavior of the factory is set to skip the
multicenter and the bond related behavior is set to include the
coordinate bonds the BondNeighbourIterator
returns secondary
bonds instead of coordinate bonds of multicenter atoms. Secondary bonds
replace a coordinate bond to the multicenter with coordinate bonds from
the metal to the represented atoms (represented atoms: the atoms in the
MulticenterSgroup of the multicenter). These secondary bonds are NOT PART
OF the molecule of the factory, so DO NOT USE Molecule.indexOf for the
secondary bonds!
atom, currentBond, secondaryBonds
Constructor and Description |
---|
IteratorFactory.BondNeighbourIterator(MolAtom atom)
Constructs an iterator to process the bonds connecting to the
specified atom.
|
Modifier and Type | Method and Description |
---|---|
MolBond |
next()
Returns the next bond in the iteration.
|
MolBond |
nextBond()
Deprecated.
As of Marvin 6.2, Use
next() instead. |
getBond, hasNext, nextBondIndex, remove
public IteratorFactory.BondNeighbourIterator(MolAtom atom)
If the atom related behavior of the factory is set to skip the
multicenter and the bond related behavior is set to include the
coordinate bonds the BondNeighbourIterator
returns
secondary bonds instead of coordinate bonds of multicenter atoms.
Secondary bonds replace a coordinate bond to the multicenter with
coordinate bonds from the metal to the represented atoms (represented
atoms: the atoms in the MulticenterSgroup of the multicenter). These
secondary bond are NOT ADDED to the molecule of the factory, so DO
NOT USE Molecule.indexOf for the secondary bonds!
atom
- the atom whose bonds to be iterated@Deprecated public MolBond nextBond()
next()
instead.public MolBond next()
NoSuchElementException