public class AtomContainerAtomPermutor extends AtomContainerPermutor
Typical use:
AtomContainerAtomPermutor permutor = new AtomContainerAtomPermutor(container); while (permutor.hasNext()) { IAtomContainer permutedContainer = permutor.next(); ... }
atomContainer
Constructor and Description |
---|
AtomContainerAtomPermutor(IAtomContainer atomContainer)
A permutor wraps the original atom container, and produces cloned
(and permuted!) copies on demand.
|
Modifier and Type | Method and Description |
---|---|
IAtomContainer |
containerFromPermutation(int[] permutation)
Generate the atom container with this permutation of the atoms.
|
next, randomNext, remove
calculateMaxRank, getCurrentPermutation, getNextPermutation, getRandomNextPermutation, getRank, hasNext, setPermutation, setRank
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining, hasNext
public AtomContainerAtomPermutor(IAtomContainer atomContainer)
atomContainer
- the atom container to permutepublic IAtomContainer containerFromPermutation(int[] permutation)
containerFromPermutation
in class AtomContainerPermutor
permutation
- the permutation to useCopyright © 2021. All rights reserved.