Class AtomContainerAtomPermutor

  • All Implemented Interfaces:
    Iterator<IAtomContainer>

    public class AtomContainerAtomPermutor
    extends AtomContainerPermutor
    An atom container atom permutor that uses ranking and unranking to calculate the next permutation in the series.

    Typical use:

     AtomContainerAtomPermutor permutor = new AtomContainerAtomPermutor(container);
     while (permutor.hasNext()) {
       IAtomContainer permutedContainer = permutor.next();
       ...
     }
    Author:
    maclean
    Source code:
    main
    Belongs to CDK module:
    standard
    Keywords:
    permutation
    Created on:
    2009-09-09
    • Constructor Detail

      • AtomContainerAtomPermutor

        public AtomContainerAtomPermutor​(IAtomContainer atomContainer)
        A permutor wraps the original atom container, and produces cloned (and permuted!) copies on demand.
        Parameters:
        atomContainer - the atom container to permute
    • Method Detail

      • containerFromPermutation

        public IAtomContainer containerFromPermutation​(int[] permutation)
        Generate the atom container with this permutation of the atoms.
        Specified by:
        containerFromPermutation in class AtomContainerPermutor
        Parameters:
        permutation - the permutation to use
        Returns:
        the