|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object chemaxon.struc.CEdge chemaxon.struc.MolBond
Chemical bond.
Field Summary | |
static int |
ANY
Any bond type. |
static int |
AROMATIC
Aromatic bond type. |
static int |
ARROW
Reaction arrow. |
static double |
CCLENGTH
Default bond length. |
static int |
DOUBLE_OR_AROMATIC
Double or aromatic query bond type. |
static int |
DOWN
Single bond down. |
static int |
SETSEQ_MAX
Maximum bond set sequence number. |
static int |
SETSEQ_OFF
Bond set sequence number offset in flags. |
static int |
SINGLE_OR_AROMATIC
Single or aromatic query bond type. |
static int |
SINGLE_OR_DOUBLE
Single or double query bond type. |
static int |
STEREO_MASK
Single and double bond stereo mask. |
static int |
STEREO1_MASK
Single bond stereo mask. |
static int |
STEREO2_CARE
Cis/trans info of this bond is taken care of during the SSS process if this flag is set - used only for query bonds. |
static int |
TOPOLOGY_CHAIN
Bond is in a chain. |
static int |
TOPOLOGY_MASK
Bond topology mask. |
static int |
TOPOLOGY_RING
Bond is in a ring. |
static int |
TYPE_MASK
The lowest bits of the flags that store the bond type. |
static int |
UP
Single bond up. |
Fields inherited from class chemaxon.struc.CEdge |
node1, node2 |
Fields inherited from interface chemaxon.struc.StereoConstants |
ATOMSTEREO_EITHER, ATOMSTEREO_MASK, ATOMSTEREO_NONE, ATOMSTEREO_SPECIFIC, CHIRALITY_MASK, CHIRALITY_R, CHIRALITY_S, CHIRALITYSUPPORT_ALL, CHIRALITYSUPPORT_NONE, CHIRALITYSUPPORT_SELECTED, CIS, CTUMASK, CTUNKNOWN, CTUNSPEC, DBS_ALL, DBS_MARKED, DBS_NONE, PARITY_EITHER, PARITY_EVEN, PARITY_MASK, PARITY_ODD, PARITY_UNSPEC, STGRP_ABS, STGRP_AND, STGRP_NONE, STGRP_OR, TRANS |
Constructor Summary | |
MolBond(MolAtom a1,
MolAtom a2)
Construct a single bond between two atoms. |
|
MolBond(MolAtom a1,
MolAtom a2,
int f)
Construct a bond between two atoms. |
Method Summary | |
int |
calcOrderFromLength()
Calculate the bond order from the atomic distances. |
int |
calcOrderFromValence()
Calculate bond order from the types and charges of the two atoms. |
int |
calcStereo2()
Computes the stereochemistry of the bond based on the atomic coordinates. |
int |
calcStereo2(MolAtom atom1,
MolAtom atom4)
Computes the stereochemistry of the bond based on the atomic coordinates. |
java.lang.Object |
clone()
Make a copy of this object. |
static double |
desiredLength(int atno1,
int atno2,
int type,
int dim)
Desired length of a bond between two atoms in Angstroms. |
MolAtom |
getAtom1()
Gets the first endpoint. |
MolAtom |
getAtom2()
Gets the second endpoint. |
MolAtom |
getCTAtom1()
Gets the first atom for cis/trans stereo calculation. |
MolAtom |
getCTAtom4()
Gets the fourth atom for cis/trans stereo calculation. |
int |
getFlags()
Gets bond type (3 bit), stereo (2+2+1 bit), topology (2 bit) and bond set (5 bit) information. |
double |
getLength()
Gets the actual length of the bond. |
MolAtom |
getOtherAtom(MolAtom atom)
Gets the other end of the bond. |
int |
getSetSeq()
Gets the bond set. |
int |
getStereo1(CNode o)
Gets wedge bond type relative to the specified chiral atom. |
int |
getType()
Gets the bond type. |
boolean |
isArrow()
Checks if this edge represents a reaction arrow or not. |
void |
setFlags(int f)
Sets bond type (3 bit), stereo (2+2+1 bit), topology (2 bit) and bond set (5 bit) information. |
void |
setFlags(int f,
int mask)
Sets bond type (3 bit), stereo (2+2+1 bit), and topology (2 bit) information. |
void |
setSetSeq(int g)
Sets the bond set. |
void |
setStereo2Flags(CNode a1,
CNode a4,
int stereo2)
Sets double bond stereo information. |
void |
setType(int t)
Sets bond type and does valence checking for the endpoints. |
boolean |
stepWedge()
Set the bond from 0 to UP or UP to DOWN. |
static boolean |
stepWedge(MolBond[] bs)
Flip the given bonds to the next state ONLY 1 bond is set to chiral starting from the last bond |
int |
transformCT(CNode a1,
CNode a4,
int f)
Transform cis/trans stereo information into the `reference frame' of this bond. |
Methods inherited from class chemaxon.struc.CEdge |
equals, getLock, getNode1, getNode2, getOtherNode, getParent, swap, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final double CCLENGTH
public static final int TYPE_MASK
public static final int AROMATIC
public static final int SINGLE_OR_DOUBLE
public static final int SINGLE_OR_AROMATIC
public static final int DOUBLE_OR_AROMATIC
public static final int ANY
public static final int UP
public static final int DOWN
public static final int ARROW
public static final int STEREO1_MASK
UP
,
DOWN
,
Constant Field Valuespublic static final int STEREO2_CARE
STEREO_MASK
,
Constant Field Valuespublic static final int STEREO_MASK
STEREO1_MASK
,
StereoConstants.CTUMASK
,
STEREO2_CARE
,
Constant Field Valuespublic static final int TOPOLOGY_RING
TOPOLOGY_MASK
,
Constant Field Valuespublic static final int TOPOLOGY_CHAIN
TOPOLOGY_MASK
,
Constant Field Valuespublic static final int SETSEQ_OFF
SETSEQ_MAX
,
Constant Field Valuespublic static final int SETSEQ_MAX
SETSEQ_OFF
,
Constant Field Valuespublic static final int TOPOLOGY_MASK
TOPOLOGY_CHAIN
,
TOPOLOGY_RING
,
Constant Field ValuesConstructor Detail |
public MolBond(MolAtom a1, MolAtom a2, int f)
a1
- the first atoma2
- the second atomf
- bond type and other flagspublic MolBond(MolAtom a1, MolAtom a2)
a1
- the first atoma2
- the second atomMethod Detail |
public MolAtom getAtom1()
public MolAtom getAtom2()
public final MolAtom getOtherAtom(MolAtom atom)
atom
- one of the edge endpoints
public final double getLength()
public final int getFlags()
TYPE_MASK
,
STEREO_MASK
,
TOPOLOGY_MASK
,
SETSEQ_OFF
public final void setFlags(int f)
Valence checking is omitted if you set the bond type this way, without setType.b.setFlags((b.getFlags() & ~MolBond.TYPE_MASK) | type);
f
- the flagsTYPE_MASK
,
STEREO_MASK
,
TOPOLOGY_MASK
,
SETSEQ_OFF
,
setType(int)
public final void setFlags(int f, int mask)
Valence checking is omitted if you set the bond type this way, without setType.b.setFlags(type, MolBond.TYPE_MASK);
f
- new value of the specified bitsmask
- bits to setTYPE_MASK
,
STEREO_MASK
,
TOPOLOGY_MASK
,
setFlags(int)
,
setType(int)
public final int getType()
AROMATIC
,
SINGLE_OR_DOUBLE
,
SINGLE_OR_AROMATIC
,
DOUBLE_OR_AROMATIC
,
ANY
public final void setType(int t)
getType()
public final int getSetSeq()
SETSEQ_MAX
public final void setSetSeq(int g)
g
- a number between 0 and SETSEQ_MAX
public final boolean isArrow()
ARROW
public int calcOrderFromLength()
public final int calcOrderFromValence()
public java.lang.Object clone()
clone
in class CEdge
public static double desiredLength(int atno1, int atno2, int type, int dim)
atno1
- atomic number of the first atomatno2
- atomic number of the second atomtype
- bond orderdim
- space dimension, 2 or 3
public final int getStereo1(CNode o)
o
- the chiral atom
UP
,
DOWN
,
STEREO1_MASK
,
getFlags()
public final MolAtom getCTAtom1()
calcStereo2()
public final MolAtom getCTAtom4()
calcStereo2()
public void setStereo2Flags(CNode a1, CNode a4, int stereo2)
a1
- atom number 1 in scheme a1-a2=a3-a4a4
- atom number 4stereo2
- CIS/TRANS informationStereoConstants.CIS
,
StereoConstants.TRANS
,
StereoConstants.CTUNSPEC
,
StereoConstants.CTUMASK
,
calcStereo2(MolAtom, MolAtom)
public int transformCT(CNode a1, CNode a4, int f)
a1
- atom connected to node1a4
- atom connected to node2f
- original flags
public int calcStereo2()
StereoConstants
,
getCTAtom1()
,
getCTAtom4()
,
calcStereo2(MolAtom, MolAtom)
public int calcStereo2(MolAtom atom1, MolAtom atom4)
atom1
- atom number 1 in scheme a1-a2=a3-a4atom4
- atom number 4
StereoConstants
public boolean stepWedge()
public static boolean stepWedge(MolBond[] bs)
bs
- bond array which elements can be flipped
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |