org.openscience.cdk.pharmacophore
Class PharmacophoreQueryBond

java.lang.Object
  extended by org.openscience.cdk.ChemObject
      extended by org.openscience.cdk.ElectronContainer
          extended by org.openscience.cdk.Bond
              extended by org.openscience.cdk.pharmacophore.PharmacophoreQueryBond
All Implemented Interfaces:
Serializable, Cloneable, IBond, ICDKObject, IChemObject, IElectronContainer, IQueryBond

@TestClass(value="org.openscience.cdk.pharmacophore.PharmacophoreQueryBondTest")
public class PharmacophoreQueryBond
extends Bond
implements IQueryBond

Represents a pharmacophore query distance constraint.

Author:
Rajarshi Guha
See Also:
PharmacophoreQueryAtom, PharmacophoreMatcher, QueryAtomContainer, Serialized Form
Keywords:
pharmacophore, 3D isomorphism
Belongs to CDK module:
pcore
Source code:
cdk-1.4.x

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.openscience.cdk.interfaces.IBond
IBond.Order, IBond.Stereo
 
Constructor Summary
PharmacophoreQueryBond()
           
PharmacophoreQueryBond(PharmacophoreQueryAtom atom1, PharmacophoreQueryAtom atom2, double distance)
          Create a query distance constraint between two query groups.
PharmacophoreQueryBond(PharmacophoreQueryAtom atom1, PharmacophoreQueryAtom atom2, double lower, double upper)
          Create a query distance constraint between two query groups.
 
Method Summary
 double getLower()
           
 double getUpper()
           
 boolean matches(IBond bond)
          Checks whether the query distance constraint matches a target distance.
 String toString()
          String representation of a distance constraint.
 
Methods inherited from class org.openscience.cdk.Bond
atoms, clone, compare, contains, get2DCenter, get3DCenter, getAtom, getAtomCount, getConnectedAtom, getConnectedAtoms, getOrder, getStereo, isConnectedTo, setAtom, setAtoms, setOrder, setStereo
 
Methods inherited from class org.openscience.cdk.ElectronContainer
getElectronCount, setElectronCount
 
Methods inherited from class org.openscience.cdk.ChemObject
addListener, getBuilder, getFlag, getFlags, getID, getListenerCount, getNotification, getProperties, getProperty, notifyChanged, notifyChanged, removeListener, removeProperty, setFlag, setFlags, setID, setNotification, setProperties, setProperty, shallowCopy
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.openscience.cdk.interfaces.IBond
atoms, compare, contains, get2DCenter, get3DCenter, getAtom, getAtomCount, getConnectedAtom, getConnectedAtoms, getOrder, getStereo, isConnectedTo, setAtom, setAtoms, setOrder, setStereo
 
Methods inherited from interface org.openscience.cdk.interfaces.IElectronContainer
getElectronCount, setElectronCount
 
Methods inherited from interface org.openscience.cdk.interfaces.IChemObject
addListener, clone, getFlag, getFlags, getID, getListenerCount, getNotification, getProperties, getProperty, notifyChanged, notifyChanged, removeListener, removeProperty, setFlag, setFlags, setID, setNotification, setProperties, setProperty
 
Methods inherited from interface org.openscience.cdk.interfaces.ICDKObject
getBuilder
 

Constructor Detail

PharmacophoreQueryBond

public PharmacophoreQueryBond()

PharmacophoreQueryBond

public PharmacophoreQueryBond(PharmacophoreQueryAtom atom1,
                              PharmacophoreQueryAtom atom2,
                              double lower,
                              double upper)
Create a query distance constraint between two query groups. Note that the distance is only considered upto 2 decimal places.

Parameters:
atom1 - The first pharmacophore group
atom2 - The second pharmacophore group
lower - The lower bound of the distance between the two groups
upper - The upper bound of the distance between the two groups
See Also:
PharmacophoreQueryBond(PharmacophoreQueryAtom,PharmacophoreQueryAtom,double)

PharmacophoreQueryBond

public PharmacophoreQueryBond(PharmacophoreQueryAtom atom1,
                              PharmacophoreQueryAtom atom2,
                              double distance)
Create a query distance constraint between two query groups.

This constructor allows you to define a query distance constraint such that the distance between the two query groups is exact (i.e., not a range). Note that the distance is only considered upto 2 decimal places.

Parameters:
atom1 - The first pharmacophore group
atom2 - The second pharmacophore group
distance - The exact distance between the two groups
See Also:
PharmacophoreQueryBond(PharmacophoreQueryAtom, PharmacophoreQueryAtom, double, double)
Method Detail

matches

@TestMethod(value="testMatches")
public boolean matches(IBond bond)
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.

Specified by:
matches in interface IQueryBond
Parameters:
bond - The distance relationship in a target molecule
Returns:
true if the target distance lies within the range of the query constraint

getUpper

@TestMethod(value="testUpper")
public double getUpper()

getLower

@TestMethod(value="testLower")
public double getLower()

toString

@TestMethod(value="testToString")
public String toString()
String representation of a distance constraint.

Specified by:
toString in interface IChemObject
Overrides:
toString in class Bond
Returns:
String representation of a distance constraint