public abstract class QueryBond extends QueryChemObject implements IQueryBond
IBond.Order, IBond.Stereo| Modifier and Type | Field and Description |
|---|---|
protected int |
atomCount
Number of atoms contained by this object.
|
protected IAtom[] |
atoms
A list of atoms participating in this query bond.
|
protected Integer |
electronCount
Number of electrons in the ElectronContainer.
|
protected IBond.Order |
order
The bond order of this query bond.
|
protected IBond.Stereo |
stereo
A descriptor the stereochemical orientation of this query bond.
|
| Constructor and Description |
|---|
QueryBond(IAtom[] atoms,
IBond.Order order,
IChemObjectBuilder builder)
Constructs a multi-center query bond, with a specified order and no stereo information.
|
QueryBond(IAtom[] atoms,
IChemObjectBuilder builder)
Constructs a multi-center query bond, with undefined order and no stereo information.
|
QueryBond(IAtom atom1,
IAtom atom2,
IBond.Order order,
IBond.Stereo stereo,
IChemObjectBuilder builder)
Constructs a query bond with a given order and stereo orientation from an array
of atoms.
|
QueryBond(IAtom atom1,
IAtom atom2,
IBond.Order order,
IChemObjectBuilder builder)
Constructs a query bond with a given order.
|
QueryBond(IAtom atom1,
IAtom atom2,
IChemObjectBuilder builder)
Constructs a query bond with a single query bond order..
|
QueryBond(IChemObjectBuilder builder)
Constructs an empty query bond.
|
| Modifier and Type | Method and Description |
|---|---|
Iterable<IAtom> |
atoms()
Returns the Iterator to atoms making up this query bond.
|
IQueryBond |
clone()
Clones this query bond object, including clones of the atoms between which the
query bond is defined.
|
boolean |
compare(Object object)
Compares a query bond with this query bond.
|
boolean |
contains(IAtom atom)
Returns true if the given atom participates in this query bond.
|
javax.vecmath.Point2d |
get2DCenter()
Returns the geometric 2D center of the query bond.
|
javax.vecmath.Point3d |
get3DCenter()
Returns the geometric 3D center of the query bond.
|
IAtom |
getAtom(int position)
Returns an Atom from this query bond.
|
int |
getAtomCount()
Returns the number of Atoms in this Bond.
|
IAtom |
getBegin() |
IAtom |
getConnectedAtom(IAtom atom) |
IAtom[] |
getConnectedAtoms(IAtom atom) |
IAtomContainer |
getContainer() |
Integer |
getElectronCount()
Returns the number of electrons in this bond
|
IAtom |
getEnd() |
int |
getIndex() |
IBond.Order |
getOrder()
Returns the query bond order of this query bond.
|
IAtom |
getOther(IAtom atom) |
IBond.Stereo |
getStereo()
Returns the stereo descriptor for this query bond.
|
boolean |
isAromatic() |
boolean |
isConnectedTo(IBond bond)
Checks whether a query bond is connected to another one.
|
boolean |
isInRing() |
void |
setAtom(IAtom atom,
int position)
Sets an atom in this query bond.
|
void |
setAtoms(IAtom[] atoms)
Sets the array of atoms making up this query bond.
|
void |
setElectronCount(Integer electronCount)
Sets the number of electrons in this bond
|
void |
setIsAromatic(boolean arom) |
void |
setIsInRing(boolean ring) |
void |
setOrder(IBond.Order order)
Sets the bond order of this query bond.
|
void |
setStereo(IBond.Stereo stereo)
Sets the stereo descriptor for this query bond.
|
String |
toString()
Returns a one line string representation of this query bond.
|
addListener, addProperties, getBuilder, getFlag, getFlags, getFlagValue, getID, getListenerCount, getNotification, getProperties, getProperty, getProperty, matches, notifyChanged, notifyChanged, removeListener, removeProperty, setFlag, setFlags, setID, setNotification, setProperties, setPropertyequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitmatchesaddListener, addProperties, getFlag, getFlags, getFlagValue, getID, getListenerCount, getNotification, getProperties, getProperty, getProperty, notifyChanged, notifyChanged, removeListener, removeProperty, setFlag, setFlags, setID, setNotification, setProperties, setPropertygetBuilderprotected IBond.Order order
protected int atomCount
protected IAtom[] atoms
protected IBond.Stereo stereo
protected Integer electronCount
public QueryBond(IChemObjectBuilder builder)
public QueryBond(IAtom atom1, IAtom atom2, IChemObjectBuilder builder)
atom1 - the first Atom in the query bondatom2 - the second Atom in the query bondpublic QueryBond(IAtom atom1, IAtom atom2, IBond.Order order, IChemObjectBuilder builder)
atom1 - the first Atom in the query bondatom2 - the second Atom in the query bondorder - the query bond orderpublic QueryBond(IAtom[] atoms, IChemObjectBuilder builder)
atoms - An array of IAtom containing the atoms constituting the query bondpublic QueryBond(IAtom[] atoms, IBond.Order order, IChemObjectBuilder builder)
atoms - An array of IAtom containing the atoms constituting the query bondorder - The order of the query bondpublic QueryBond(IAtom atom1, IAtom atom2, IBond.Order order, IBond.Stereo stereo, IChemObjectBuilder builder)
atom1 - the first Atom in the query bondatom2 - the second Atom in the query bondorder - the query bond orderstereo - a descriptor the stereochemical orientation of this query bondpublic Iterable<IAtom> atoms()
atoms in interface IBondsetAtoms(org.openscience.cdk.interfaces.IAtom[])public IAtomContainer getContainer()
getContainer in interface IBondpublic void setAtoms(IAtom[] atoms)
public int getAtomCount()
getAtomCount in interface IBondpublic IAtom getAtom(int position)
getAtom in interface IBondposition - The position in this query bond where the atom issetAtom(org.openscience.cdk.interfaces.IAtom, int)public IAtom getConnectedAtom(IAtom atom)
getConnectedAtom in interface IBondpublic IAtom[] getConnectedAtoms(IAtom atom)
getConnectedAtoms in interface IBondpublic boolean contains(IAtom atom)
public void setAtom(IAtom atom, int position)
setAtom in interface IBondatom - The atom to be setposition - The position in this query bond where the atom is to be insertedgetAtom(int)public IBond.Order getOrder()
getOrder in interface IBondorg.openscience.cdk.CDKConstants
for predefined values.,
setOrder(org.openscience.cdk.interfaces.IBond.Order)public void setOrder(IBond.Order order)
setOrder in interface IBondorder - The query bond order to be assigned to this query bondorg.openscience.cdk.CDKConstants for predefined values.,
getOrder()public IBond.Stereo getStereo()
getStereo in interface IBondsetStereo(org.openscience.cdk.interfaces.IBond.Stereo),
for predefined values.public void setStereo(IBond.Stereo stereo)
setStereo in interface IBondstereo - The stereo descriptor to be assigned to this query bond.getStereo(),
for predefined values.public javax.vecmath.Point2d get2DCenter()
get2DCenter in interface IBondpublic javax.vecmath.Point3d get3DCenter()
get3DCenter in interface IBondpublic boolean compare(Object object)
public boolean isConnectedTo(IBond bond)
isConnectedTo in interface IBondbond - bond The query bond which is checked to be connect with this onepublic IQueryBond clone() throws CloneNotSupportedException
clone in interface IBondclone in interface IChemObjectclone in class QueryChemObjectCloneNotSupportedExceptionpublic String toString()
toString in interface IChemObjecttoString in class Objectpublic Integer getElectronCount()
getElectronCount in interface IElectronContainersetElectronCount(java.lang.Integer)public boolean isAromatic()
isAromatic in interface IBondpublic void setIsAromatic(boolean arom)
setIsAromatic in interface IBondpublic void setIsInRing(boolean ring)
setIsInRing in interface IBondpublic void setElectronCount(Integer electronCount)
setElectronCount in interface IElectronContainerelectronCount - The number of electrons in this electron container.getElectronCount()Copyright © 2017. All rights reserved.