public abstract class AtomContainerPermutor extends Permutor implements Iterator<IAtomContainer>
containerFromPermutation that should be implemented in
concrete derived classes.| Modifier and Type | Field and Description |
|---|---|
protected IAtomContainer |
atomContainer
The atom container that is permuted at each step.
|
| Constructor and Description |
|---|
AtomContainerPermutor(int size,
IAtomContainer atomContainer)
Start the permutor off with an initial atom container, and the size of
the permutation.
|
| Modifier and Type | Method and Description |
|---|---|
abstract IAtomContainer |
containerFromPermutation(int[] permutation)
Convert a permutation (expressed as a list of numbers) into a permuted
atom container.
|
IAtomContainer |
next() |
IAtomContainer |
randomNext()
Get a new container, but randomly skip forwards in the list of possible
permutations to generate it.
|
void |
remove() |
calculateMaxRank, getCurrentPermutation, getNextPermutation, getRandomNextPermutation, getRank, hasNext, setPermutation, setRankclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, hasNextprotected IAtomContainer atomContainer
public AtomContainerPermutor(int size,
IAtomContainer atomContainer)
atomContainer - public abstract IAtomContainer containerFromPermutation(int[] permutation)
public IAtomContainer randomNext()
public IAtomContainer next()
next in interface Iterator<IAtomContainer>public void remove()
remove in interface Iterator<IAtomContainer>Copyright © 2017. All rights reserved.