Class RingBond
java.lang.Object
org.openscience.cdk.isomorphism.matchers.QueryChemObject
org.openscience.cdk.isomorphism.matchers.QueryBond
org.openscience.cdk.isomorphism.matchers.smarts.SMARTSBond
org.openscience.cdk.isomorphism.matchers.smarts.RingBond
- All Implemented Interfaces:
Cloneable, IBond, ICDKObject, IChemObject, IElectronContainer, IQueryBond
Deprecated.
This smarts bond matches any bond that is in a ring.
- Keywords:
- SMARTS
-
Nested Class Summary
Nested classes/interfaces inherited from interface IBond
IBond.Display, IBond.Order, IBond.StereoModifier and TypeInterfaceDescriptionstatic enumBond display style, controlling how bonds appear in a 2D depiction.static enumA list of permissible bond orders.static enumDeprecated. -
Field Summary
Fields inherited from class QueryBond
atomCount, atoms, electronCount, order, stereoModifier and TypeFieldDescriptionprotected intNumber of atoms contained by this object.protected IAtom[]A list of atoms participating in this query bond.protected IntegerNumber of electrons in the ElectronContainer.protected IBond.OrderThe bond order of this query bond.protected IBond.StereoA descriptor the stereochemical orientation of this query bond.Fields inherited from interface IChemObject
ALIPHATIC, AROMATIC, CONJUGATED, HIDDEN, HYDROGEN_BOND_ACCEPTOR, HYDROGEN_BOND_DONOR, IN_RING, MAPPED, MARKUSH, NOT_IN_RING, PLACED, REACTIVE_CENTER, SINGLE_OR_DOUBLE, TYPEABLE, VISITEDModifier and TypeFieldDescriptionstatic final intFlag that is set if a ChemObject is part of an aliphatic chain.static final intFlag is set if ChemObject is part of an aromatic system.static final intFlag is set if ChemObject is part of a conjugated system.static final intThis flag can be used when depicted structures to hide certain parts, for example the things are abbreviated (display shortcuts).static final intSets to true if the atom is a hydrogen bond acceptor.static final intSets to true if the atom is a hydrogen bond donor.static final intFlag that is set when the ChemObject is part of a ring.static final intFlag is set if a ChemObject is mapped to another ChemObject.static final intFlag to indicate a flattened molecule holds a Markush structure, you can work on it as is or it might make more sense to repack into something sensible like a RGroupQuery.static final intFlag that is set when the ChemObject is part of a ring.static final intFlag that is set if the ChemObject is placed when calculating 2D/3D layouts.static final intFlag is set if a ChemObject has reactive center.static final intFlag used for marking uncertainty of the bond order.static final intFlag is set if an atom could be typed.static final intFlag is set if ChemObject has been visited. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class QueryBond
atoms, clone, compare, contains, equals, get2DCenter, get3DCenter, getAtom, getAtomCount, getBegin, getConnectedAtom, getConnectedAtoms, getContainer, getDisplay, getElectronCount, getEnd, getExpression, getIndex, getOrder, getOther, getStereo, hashCode, isAromatic, isConnectedTo, isInRing, setAtom, setAtoms, setDisplay, setElectronCount, setExpression, setIsAromatic, setIsInRing, setOrder, setStereo, toStringModifier and TypeMethodDescriptionatoms()Returns the Iterator to atoms making up this query bond.clone()Clones this query bond object, including clones of the atoms between which the query bond is defined.booleanCompares a query bond with this query bond.booleanReturns true if the given atom participates in this query bond.booleanjavax.vecmath.Point2dReturns the geometric 2D center of the query bond.javax.vecmath.Point3dReturns the geometric 3D center of the query bond.getAtom(int position) Returns an Atom from this query bond.intReturns the number of Atoms in this Bond.getBegin()Access the begin (or first) atom of the bond.getConnectedAtom(IAtom atom) Returns the other atom in the bond, the atom is connected to the given atom.IAtom[]getConnectedAtoms(IAtom atom) Returns all the atoms in the bond connected to the given atom.Not used for query bonds.Returns the number of electrons in this bondgetEnd()Access the end (or second) atom of the bond.Access the bond expression predicate associated with this query bond.intgetIndex()getOrder()Returns the query bond order of this query bond.Returns the other atom in the bond, the atom is connected to the given atom.This method is only correct for two-centre bonds, for n-centre bonds the behaviour is undefined and the more correctIBond.getConnectedAtoms(IAtom)should be used.Returns the stereo descriptor for this query bond.inthashCode()booleanAccess whether this bond has been marked as aromatic.booleanisConnectedTo(IBond bond) Checks whether a query bond is connected to another one.booleanisInRing()Access whether this bond has been flagged as in a ring.voidSets an atom in this query bond.voidSets the array of atoms making up this query bond.voidsetDisplay(IBond.Display display) Not used for query bonds.voidsetElectronCount(Integer electronCount) Sets the number of electrons in this bondvoidsetExpression(Expr expr) Set the bond expression for this query bond.voidsetIsAromatic(boolean arom) Mark this bond as being aromatic.voidsetIsInRing(boolean ring) Mark this bond as being in a ring.voidsetOrder(IBond.Order order) Sets the bond order of this query bond.voidsetStereo(IBond.Stereo stereo) Sets the stereo descriptor for this query bond.toString()Returns a one line string representation of this query bond.Methods inherited from class QueryChemObject
addListener, addProperties, clear, flags, getBuilder, getFlag, getFlags, getFlagValue, getID, getListenerCount, getNotification, getProperties, getProperty, getProperty, is, matches, notifyChanged, notifyChanged, removeListener, removeProperty, set, setFlag, setFlags, setID, setNotification, setProperties, setPropertyModifier and TypeMethodDescriptionvoidUse this to add yourself to this IChemObject as a listener.voidaddProperties(Map<Object, Object> properties) Sets the properties of this object.voidclear(int flags) Clear the provided flags.intflags()Access the current value of the flags for this ChemObject.Returns aIChemObjectBuilderfor the data classes that extend this class.booleangetFlag(int mask) Returns the value of a given flag.boolean[]getFlags()Returns the whole set of flags.Access the internal value used to store the flags.getID()Returns the identifier (ID) of this object.intReturns the number of ChemObjectListeners registered with this object.booleanReturns the flag that indicates whether notification messages are sent around.Returns a Map with the IChemObject's properties.<T> TgetProperty(Object description) Returns a property for the IChemObject.<T> TgetProperty(Object description, Class<T> c) Access a property of the given description and cast the specified class.booleanis(int flags) Test if a flag(s) are set on this ChemObject.booleanvoidThis should be triggered by an method that changes the content of an object to that the registered listeners can react to it.voidThis should be triggered by an method that changes the content of an object to that the registered listeners can react to it.voidUse this to remove a ChemObjectListener from the ListenerList of this IChemObject.voidremoveProperty(Object description) Removes a property for a IChemObject.voidset(int flags) Set the provided flags.voidsetFlag(int mask, boolean value) Sets the value of some flag.voidsetFlags(boolean[] flagsNew) Sets the whole set of flags.voidSets the identifier (ID) of this object.voidsetNotification(boolean bool) Set a flag to use or not use notification.voidsetProperties(Map<Object, Object> properties) Set the properties of this object to the provided map (shallow copy).voidsetProperty(Object description, Object property) Sets a property for a IChemObject.Methods inherited from interface IBond
getConnectedAtomModifier and TypeMethodDescriptiondefault IAtomgetConnectedAtom(IBond other) Get the connected atom between two bonds.
-
Constructor Details
-
RingBond
-
-
Method Details
-
matches
Deprecated.Description copied from class:QueryBondReturns true of the givenbondmatches this IQueryBond.- Specified by:
matchesin interfaceIQueryBond- Overrides:
matchesin classSMARTSBond- Parameters:
bond- IBond to match against- Returns:
- true, if this IQueryBond matches the given IBond
-