Logo Search packages:      
Sourcecode: cdk version File versions  Download package

boolean org::openscience::cdk::pharmacophore::PharmacophoreQueryBond::matches ( IBond  bond ) [inline]

Checks whether the query distance constraint matches a target distance.

This method checks whether a query constraint is satisfied by an observed distance (represented by a PharmacophoreBond in the target molecule. Note that distance are compared upto 2 decimal places.

Parameters:
bondThe distance relationship in a target molecule
Returns:
true if the target distance lies within the range of the query constraint

Implements org::openscience::cdk::isomorphism::matchers::IQueryBond.

Definition at line 104 of file PharmacophoreQueryBond.java.

References org::openscience::cdk::pharmacophore::PharmacophoreBond::getBondLength().

                                       {
        if (bond instanceof PharmacophoreBond) {
        PharmacophoreBond pbond = (PharmacophoreBond) bond;
        double bondLength = round(pbond.getBondLength(), 2);
        return bondLength >= lower && bondLength <= upper;
        } else return false;
    }

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index