Class SmartsStereoMatch

  • All Implemented Interfaces:
    Predicate<int[]>

    @Deprecated
    public final class SmartsStereoMatch
    extends Object
    implements Predicate<int[]>
    Deprecated.
    use QueryStereoFilter
    Filters SMARTS matches for those that have valid stereochemistry configuration. Note: This class is internal and will be private in future.
    Author:
    John May
    Source code:
    main
    Belongs to CDK module:
    smarts
    • Constructor Detail

      • SmartsStereoMatch

        public SmartsStereoMatch​(IAtomContainer query,
                                 IAtomContainer target)
        Deprecated.
        Create a predicate for checking mappings between a provided query and target.
        Parameters:
        query - query container
        target - target container
    • Method Detail

      • test

        public boolean test​(int[] mapping)
        Deprecated.
        Is the mapping of the stereochemistry in the query preserved in the target.
        Specified by:
        test in interface Predicate<int[]>
        Parameters:
        mapping - permutation of the query vertices
        Returns:
        the stereo chemistry is value
      • apply

        public boolean apply​(int[] ints)
        Deprecated.
        Backwards compatible method from when we used GUAVA predicates.
        Parameters:
        ints - atom index bijection
        Returns:
        true/false
        See Also:
        test(int[])