|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectchemaxon.struc.CGraph
chemaxon.struc.MoleculeGraph
A graph consisting of MolAtom vertices and MolBond edges.
MolAtom,
MolBond,
Serialized Form| Field Summary | |
static int |
AROM_BASIC
Basic aromatization. |
static int |
AROM_CHEMAXON
Deprecated. please use AROM_BASIC instead. Chemaxon aromatization. |
static int |
AROM_DAYLIGHT
Deprecated. please use AROM_GENERAL instead. Daylight aromatization (modified Huckel rule). |
static int |
AROM_GENERAL
General (Daylight conform) aromatization. |
static int |
CACHE_REMOVE_AROMATAMODULE
Cache removal option for remove module used in aromatization. |
static int |
CACHE_REMOVE_GRINVMODULE
Cache removal option for remove module used in graph invariant calculation. |
static int |
CACHE_REMOVE_PARITYMODULE
Cache removal option for remove module used in parity calculation. |
static int |
CACHE_REMOVE_SSSRMODULE
Cache removal option for remove module used in sssr. |
protected static int |
DIM_MASK
Dimension bits in flags. |
protected int |
flags
Stores the dimension (0, 2 or 3) and the chiral flag. |
static int |
GRINV_DONT_STORE
Graph invariant option to instruct that the graph invariant should not be stored in MoleculeGraph. |
static int |
GRINV_NOHYDROGEN
Graph invariant option for ignoring explicit hydrogens. |
static int |
GRINV_OLDSTEREO
Graph invariant option for calculating graph invariants using the old stereo method. |
static int |
GRINV_STEREO
Graph invariant option for calculating graph invariants using stereo information. |
static int |
GRINV_VALUE_OPTIONS
Unified mask of graph invariant options affecting grinv value. |
static java.lang.String |
INVALID_LINKNODE_MESSAGE
|
protected boolean |
isMultiChiral
true if there are at least two chiral centres |
static int |
MIN_RING_SIZE_FOR_TRANS_DB
The minimal size of the ring for the existence of TRANS double bond. |
protected double |
orix
Origin x. |
protected double |
oriy
Origin y. |
protected double |
oriz
Origin z. |
protected MPropertyContainer |
propertyContainer
|
static int |
RMCLEANUP_MOBJECT
Remove graphics objects containing the removed node. |
static int |
RMCLEANUP_STEREO
When removing a H atom, keep stereo information unchanged. |
| Fields inherited from class chemaxon.struc.CGraph |
btab, CACHE_REMOVE_ALL, CACHE_REMOVE_CACHEMEMORY, cacheMemory, ctab, edgeCount, edges, fragIds, grinv, grinvCC, grinvOptions, INITIAL_CAPACITY, nFrags, nGrinv, nodeCount, nodes, parentGraph, RMCLEANUP_ALL, RMCLEANUP_EDGES, RMCLEANUP_NONE, sssr, sssrl2idx, superGraph |
| Fields inherited from interface chemaxon.struc.ReadableMolecule |
HS_S, HS_SP, HS_SP2, HS_SP3, HS_UNKNOWN |
| 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 | |
MoleculeGraph()
Construct a molecule. |
|
MoleculeGraph(MoleculeGraph p,
int na,
int nb)
Construct a molecule or fragment with the specified number of atoms and bonds. |
|
| Method Summary | |
protected void |
addAtomsAndBondsTo(MoleculeGraph s)
Adds all atoms and bonds to the specified molecule. |
void |
addExplicitLonePairs()
Adds explicit lone pairs. |
void |
adjustMultiChiralFlag()
Checks whether the molecule has multiple chiral centres |
void |
aromatize()
Aromatize molecule using the default general aromatization method. |
void |
aromatize(boolean a)
Aromatize (using the default general aromatization method) or dearomatize molecule. |
void |
aromatize(int method)
Aromatize molecule. |
void |
arrangeComponents()
Arranges molecule components (reactants, agents, products, R-group definitions) nicely. |
double |
bondlength()
Calculates the regular bond length. |
DPoint3 |
calcCenter()
Calculates the geometrical center. |
void |
calcCenter(DPoint3 p)
Calculates the geometrical center. |
int |
calcDehydrogenizedGrinv(int[] gi)
Calculates the graph invariants with the assumption that hydrogens are removed. |
double |
calcHeight()
Calculates the molecule height. |
void |
calcHybridization()
Calculates and sets hybridazation state for each atom. |
DPoint3 |
calcOutRect()
Calculates the outer rectangle. |
void |
calcOutRect(DPoint3 p)
Calculates the outer rectangle. |
DPoint3 |
calcOutRectCenter()
Calculates the center of the outer rectangle. |
void |
calcOutRectCenter(DPoint3 p)
|
double |
calcWidth()
Calculates the molecule width. |
boolean |
canBeCT(int i2,
int i3)
Determines whether the bond between the specified atoms can be a CIS/TRANS or not. |
boolean |
canBeCT(int i2,
int i3,
boolean grcheck)
Determines whether the bond between the specified atoms can be a CIS/TRANS or not. |
boolean |
clean(int dim,
java.lang.String opts)
Calculates atom coordinates. |
boolean |
clean(int dim,
java.lang.String opts,
chemaxon.marvin.util.MProgressMonitor pmon)
Calculates atom coordinates. |
void |
clear()
Clears the molecule. |
void |
clearCachedInfo(int options)
Deletes the cached information depending on the given options. |
void |
clearForImport(java.lang.String format)
Clears the edges vector, the properties, the flags, and sets the origin coordinates to 0. |
java.lang.Object |
clone()
Make an identical copy of the molecule. |
void |
clonecopy(CGraph g)
Make another molecule identical to this one. |
void |
clonelesscopy(CGraph g)
Copy to selection. |
boolean |
contains(CGraph graph)
Does the graph contain the specified fragment? |
int[][] |
createBHtab()
Creates the bond table extended with implicit hydrogen atoms. |
int[][] |
createCHtab()
Creates the connection table extended with implicit hydrogen atoms. |
protected MoleculeGraph |
createDehydrogenizedReadOnlyGraph()
Creates a dehydrogenized version of the molecule. |
void |
dearomatize()
Dearomatize molecule. |
MolAtom |
findAtomClone(MolAtom a)
Finds the clone of an atom. |
protected void |
fuse0(CGraph g)
Add the atoms and bonds of another molecule. |
int[][][] |
getAromaticAndAliphaticRings(int aromatizationType,
boolean onlyAromrings,
boolean aromatize,
int maxRingSize,
int ringsLimit)
Get aromatic and or aliphatic ring atom indexes. |
int[][] |
getAromrings()
Deprecated. please use getAromaticAndAliphaticRings instead. |
int[][] |
getAromrings(int size)
Deprecated. please use getAromaticAndAliphaticRings instead. |
MolAtom |
getAtom(int n)
Gets the nth atom. |
MolAtom[] |
getAtomArray()
Creates an array of atoms. |
int |
getAtomCount()
Gets the number of atoms. |
MolBond |
getBond(int n)
Gets the nth bond. |
MolBond[] |
getBondArray()
Creates an array of bonds. |
int |
getBondCount()
Gets the number of bonds. |
int |
getCharge(int k)
Gets the charge of an atom. |
int |
getChirality(int i)
Computes the chirality of an atom of the Molecule instance based on both the coordinates of the neighbouring atoms and the stereo information of the bonds to those. |
double |
getDesiredLength(int atno1,
int atno2,
int type)
Gets the ideal bond length in Angstroms. |
double |
getDesiredLength(MolBond b)
Gets the ideal bond length in Angstroms. |
int |
getDim()
Gets the dimension. |
MDocument |
getDocument()
Gets the document object. |
protected MDocument |
getDocumentForChild(MoleculeGraph g)
Gets the parent document for a child graph. |
CEdge[] |
getEdgeArray()
Creates an array of bonds. |
java.util.Vector |
getEdgeVector()
Creates an array of atoms. |
double |
getExactMass()
Calculates the molecular exact weight of the molecule. |
int |
getExplicitHcount()
Gets the total number of explicit hydrogens attached to the molecule. |
java.lang.String |
getFormula()
Gets the molecular formula. |
MoleculeGraph |
getGraphUnion()
Gets a graph containing all the atoms and bonds. |
int |
getGrinv(int[] gi)
Gets the graph invariants. |
int |
getGrinv(int[] gi,
boolean uniqueFlag)
Deprecated. Please use getGrinv(int[], int) instead. |
int |
getGrinv(int[] gi,
int options)
Gets the graph invariants (canonical labels). |
int |
getHybridizationState(int k)
Gets the hybridization state. |
int |
getImplicitHcount()
Gets the total number of implicit hydrogens attached to the molecule. |
int |
getLocalChirality(int idx,
int[] ch)
Get local chirality. |
int |
getLocalParity(int i)
Computes the local parity of an atom of the Molecule instance based on both the coordinates of the neighbouring atoms and the stereo information of the bonds to those. |
DPoint3 |
getLocation()
Gets the origin of the molecule. |
int |
getLonePairCount(int i)
Gets the number of lone pairs. |
double |
getMass()
Calculates the molecular weight of the molecule. |
int |
getMassno(int k)
Gets the mass number of an atom. |
java.lang.String |
getName()
Gets the molecule name. |
int |
getNeighbor(int k,
int i)
Gets the index of a neighbor of an atom. |
int |
getNeighborCount(int k)
Gets the number of neighbors of an atom. |
java.util.Vector |
getNodeVector()
Creates an array of atoms. |
int[][] |
getNonAromrings()
Deprecated. please use getAromaticAndAliphaticRings instead. |
int[][] |
getNonAromrings(int size)
Deprecated. please use getAromaticAndAliphaticRings instead. |
protected MDocument |
getParentDocument()
Gets the document or the document of the parent graph. |
int |
getParity(int i)
Computes the parity of an atom of the Molecule instance based on both the coordinates of the neighbouring atoms and the stereo information of the bonds to those. |
DPoint3[] |
getPoints()
Gets an array containing the atom coordinates. |
int |
getRadical(int k)
Gets the radical value of an atom. |
int[] |
getSSSRBondSet()
Deprecated. please use getSSSRBondSetInLong() instead. |
long[] |
getSSSRBondSetInLong()
Get SSSR bond bitsets in long array. |
int |
getStereo2(CNode a1,
int i2,
int i3,
CNode a4)
Gets cis/trans stereo information for an A1-A2=A3-A4 atom configuration. |
int |
getStereo2(int i1,
int i2,
int i3,
int i4)
Gets cis/trans stereo information for an A1-A2=A3-A4 atom configuration. |
int |
getStereo2(MolBond b)
Gets cis/trans (Z/E) stereo information for the given bond. |
int |
getStereo2(MolBond b,
CNode a1,
CNode a4)
Gets cis/trans stereo information for an A1-A2=A3-A4 atom configuration. |
int |
getStereo2(MolBond b,
CNode a1,
CNode a4,
boolean grcheck)
Gets cis/trans stereo information for an A1-A2=A3-A4 atom configuration. |
protected int |
getStereo2(MolBond b,
CNode a1,
int i2,
int i3,
CNode a4)
Gets cis/trans stereo information for an A1-A2=A3-A4 atom configuration. |
protected int |
getStereo2(MolBond b,
CNode a1,
int i2,
int i3,
CNode a4,
boolean grcheck)
Gets cis/trans stereo information for an A1-A2=A3-A4 atom configuration. |
protected int |
getSubGraphCount()
Gets the number of all "submolecules". |
MoleculeGraph[] |
getSubGraphs()
Gets all "submolecules". |
protected void |
getSubGraphs(MoleculeGraph[] m,
int off)
Gets all "submolecules". |
double[] |
getVisibleCoords(MolAtom ma)
Returns the coordinates of the given atom (contained in the molecule). |
boolean |
hasAtomSet()
Tests whether the molecule graph has atom sets. |
boolean |
hasBondSet()
Tests whether the molecule graph has atom sets. |
boolean |
hasExplicitLonePairs()
Tests whether the molecule has implicit explici lone pair nodes. |
boolean |
hasExtraLabelSet()
|
boolean |
hasImplicitH()
Indicates, whether the molecule has implicit hydrogen atoms. |
boolean |
hasValenceError()
Determines if this molecule has a valence error on any of its atoms. |
boolean |
hydrogenize(boolean add)
Implicit/explicit Hydrogen conversion. |
void |
implicitizeHydrogens(int f)
Removes explicit bound Hydrogens from the graph and converts them to implicit. |
boolean |
isAbsStereo()
Gets the absolute stereoconfiguration flag. |
boolean |
isAtom()
Determines whether the structure represents only one atom and an arbitrary number of bonds. |
boolean |
isBond()
Determines whether the structure represents only one bond and zero or two atoms. |
boolean |
isMultiChiral()
Returns the multiple chirality flag. |
boolean |
isQuery()
Indicates if the molecule has query features. |
boolean |
isRingBond(int idx)
Is this bond in ring? |
boolean |
isSimilarTo(CGraph g)
Checks if the graph is similar to another graph. |
boolean |
isValidLinkNode(int linkAtomIdx,
int outer1,
int outer2)
Checks whether the specified link atom is valid or not. |
protected void |
makeItSimilar(CGraph g)
Copies some properties of this molecule to the other one specified as argument. |
void |
mergeNodes(CNode that,
CNode a)
Merges edges of a node with another node, then adds the node to the molecule. |
void |
moveTo(DPoint3 o)
Move the molecule. |
CGraph |
newInstance()
Creates a new MoleculeGraph object. |
boolean |
partialClean(int dim,
int[] fixed,
java.lang.String opts)
Calculates atom coordinates by using fixed atoms. |
MPropertyContainer |
properties()
Gets the property container. |
void |
qpropCheck(java.util.Vector v)
Check for query property errors. |
void |
removeExplicitLonePairs()
Removes explicit lone pairs. |
void |
removeNode(CNode node,
int cleanupFlags)
Removes a node and its edges with extra options. |
void |
removeNode(int i,
int cleanupFlags)
Removes a node and its edges with extra options. |
protected java.lang.Object[] |
restoreCache(int n)
Restores caches like connection table, bond table, etc. |
void |
revalidateCoordDependentProps()
Revalidate coordinate dependent properties. |
protected java.lang.Object[] |
saveCache(int n)
Saves caches like connection table, bond table, etc. |
void |
setAbsStereo(boolean c)
Sets the absolute stereoconfiguration flag. |
void |
setAtomSetSeqs(int id)
Sets the set sequence number of all atoms. |
void |
setBondSetSeqs(int id)
Sets the set sequence number of all bonds. |
boolean |
setChirality(int i,
int c)
Set chirality of an atom of the Molecule instance based on both the coordinates of the neighbouring atoms and the stereo information of the bonds to those. |
void |
setDim(int d)
Sets the dimension. |
void |
setEdge(int i,
CEdge edge)
Sets the edge at the specified index. |
void |
setLinkNodeDefaultOuters(MolAtom atom)
Sets link node outer atoms to default values, if they are not set yet; making sure that the resulting link node configuration is valid. |
void |
setLocation(DPoint3 o)
Set the origin of the molecule. |
protected void |
setNode0(int i,
CNode node)
Sets the node at the specified index. |
boolean |
setParity(int[] p)
Change the bonds flag (UP/DOWN) connected to the whole molecule to achieve the specified parity array. |
boolean |
setParity(int[] p,
boolean useActualWedges)
Change the bonds flag (UP/DOWN) connected to the whole molecule to achieve the specified parity array. |
boolean |
setParity(int i,
int p)
Change the bonds flag (UP/DOWN) connected to the given atom to achieve the specified parity. |
void |
setSetSeqs(int id)
Deprecated. as of Marvin 4.0, replaced by setAtomSetSeq |
boolean |
stereoClean()
Reset the wedges of the molecule, based on the actual parity information. |
java.lang.String |
toString()
Overrides CGraph.toString() to ease debugging. |
void |
transform(CTransform3D t)
Apply a transformation matrix to the atomic coordinates. |
void |
transform(CTransform3D t,
boolean incg)
Apply a transformation matrix to the atomic coordinates. |
protected void |
updateDim(MoleculeGraph m)
Updates the dimensions when fusing two structures. |
void |
valenceCheck()
Check valence and query property errors for each atoms. |
void |
valenceCheck(java.util.Vector v)
Check valence and query property errors. |
| Methods inherited from class chemaxon.struc.CGraph |
add, add, addEdge0, addEdgeWithoutChangingIt, addNode0, addNodeWithoutChangingIt, contains, findComponentIds, findComponentIds, findEdge, findFrag, findFragById, findFrags, findNode, fuse, getBtab, getCtab, getEdge, getEdgeCount, getForefather, getFragCount, getFragIds, getGrinv, getGrinvCC, getLock, getNode, getNodeCount, getParent, getSmallestRingSizeForIdx, getSSSR, incGrinvCC, incGrinvCCOnly, indexOf, indexOf, insertEdge, insertNode, insertNullEdges, insertNullNodes, isEmpty, isRealNodeParent, isRing, isSymmetric, pack, regenCtabs, regenEdges, removeAll, removeAllEdges, removeEdge, removeEdge, removeEdge, removeEdge, removeNode, removeNode, replaceEdge, resetCtab, resetGrinvInParents, setGrinvCC, setNode, sortEdgesAccordingTo |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int AROM_BASIC
aromatize(int),
Constant Field Valuespublic static final int AROM_CHEMAXON
aromatize(int),
Constant Field Valuespublic static final int AROM_GENERAL
aromatize(int),
Constant Field Valuespublic static final int AROM_DAYLIGHT
aromatize(int),
Constant Field Valuespublic static final java.lang.String INVALID_LINKNODE_MESSAGE
protected static final int DIM_MASK
flags,
Constant Field Valuespublic static final int RMCLEANUP_STEREO
removeNode(CNode, int),
removeNode(int, int),
CGraph.RMCLEANUP_NONE,
CGraph.RMCLEANUP_ALL,
CGraph.RMCLEANUP_EDGES,
Constant Field Valuespublic static final int RMCLEANUP_MOBJECT
removeNode(CNode, int),
removeNode(int, int),
CGraph.RMCLEANUP_NONE,
CGraph.RMCLEANUP_ALL,
CGraph.RMCLEANUP_EDGES,
Constant Field Valuespublic static final int GRINV_NOHYDROGEN
getGrinv(int[], int),
Constant Field Valuespublic static final int GRINV_STEREO
getGrinv(int[], int),
Constant Field Valuespublic static final int GRINV_OLDSTEREO
getGrinv(int[], int),
Constant Field Valuespublic static final int GRINV_VALUE_OPTIONS
public static final int GRINV_DONT_STORE
getGrinv(int[], int),
Constant Field Valuespublic static final int CACHE_REMOVE_GRINVMODULE
clearCachedInfo(int),
Constant Field Valuespublic static final int CACHE_REMOVE_PARITYMODULE
clearCachedInfo(int),
Constant Field Valuespublic static final int CACHE_REMOVE_AROMATAMODULE
clearCachedInfo(int),
Constant Field Valuespublic static final int CACHE_REMOVE_SSSRMODULE
clearCachedInfo(int),
Constant Field Valuespublic static final int MIN_RING_SIZE_FOR_TRANS_DB
protected transient double orix
protected transient double oriy
protected transient double oriz
protected transient int flags
getDim(),
isAbsStereo()protected transient boolean isMultiChiral
protected transient MPropertyContainer propertyContainer
| Constructor Detail |
public MoleculeGraph(MoleculeGraph p,
int na,
int nb)
p - the molecule that contains the created fragmentna - no reallocation needed until the number of atoms is less than
this valuenb - no reallocation needed until the number of bonds is less than
this valuepublic MoleculeGraph()
| Method Detail |
public MDocument getDocument()
protected MDocument getParentDocument()
protected MDocument getDocumentForChild(MoleculeGraph g)
g - the child graph or this
public void setDim(int d)
d - 0, 2, or 3flagspublic int getDim()
flagspublic boolean isAbsStereo()
flagspublic void setAbsStereo(boolean c)
c - the absolute stereoconfiguration flagflagspublic void clear()
clearForImport(java.lang.String),
CGraph.nodespublic void clearForImport(java.lang.String format)
format - input file format, neglectedCGraph.edges,
orix,
oriy,
oriz,
flags
public void removeNode(CNode node,
int cleanupFlags)
CGraph.removeNode(CNode)
instead unless you are sure what you are doing.
removeNode in class CGraphnode - the nodecleanupFlags - extra clean-up methodsCGraph.RMCLEANUP_NONE,
CGraph.RMCLEANUP_ALL,
CGraph.RMCLEANUP_EDGES,
RMCLEANUP_STEREO
public void removeNode(int i,
int cleanupFlags)
CGraph.removeNode(CNode)
instead unless you are sure what you are doing.
removeNode in class CGraphi - the node indexcleanupFlags - extra clean-up methodsCGraph.RMCLEANUP_NONE,
CGraph.RMCLEANUP_ALL,
CGraph.RMCLEANUP_EDGES,
RMCLEANUP_STEREO
protected void setNode0(int i,
CNode node)
setNode0 in class CGraphi - node indexnode - new node reference
public void setEdge(int i,
CEdge edge)
setEdge in class CGraphi - edge indexedge - the edge referencepublic final void setAtomSetSeqs(int id)
id - the set sequence numberpublic final void setBondSetSeqs(int id)
id - the set sequence numberpublic final void setSetSeqs(int id)
id - the set sequence numberpublic boolean hydrogenize(boolean add)
add - add explicit H atoms if true, remove if false
java.lang.SecurityException - cannot load module because
of a security problem (firewall)public void addExplicitLonePairs()
java.lang.SecurityException - cannot load module because
of a security problem (firewall)public void removeExplicitLonePairs()
java.lang.SecurityException - cannot load module because
of a security problem (firewall)public void implicitizeHydrogens(int f)
MolAtom.isImplicitizableH(int) returns true.
f - flags specifying special H atom types to includeMolAtom.LONELY_H,
MolAtom.ISOTOPE_H,
MolAtom.CHARGED_H,
MolAtom.RADICAL_H,
MolAtom.MAPPED_H,
MolAtom.WEDGED_H,
MolAtom.HCONNECTED_Hpublic int getGrinv(int[] gi)
Notes:
1. For normal molecules and R-groups, graph invariants are
recalculated only if an atom or bond changed, removed or added.
2. For selections, graph invariants are recalculated
each time this function is called, because atoms and bonds cannot
notify selections about their changes.
getGrinv in class CGraphgi - output array, its length must be equal to the number of atoms
java.lang.SecurityException - the GraphInvariants module cannot be
loaded because of security reasons (firewall)
public int getGrinv(int[] gi,
boolean uniqueFlag)
gi - output array, its length must be equal to the number of atomsuniqueFlag - boolean flag
java.lang.SecurityException - the GraphInvariants module cannot be
loaded because of security reasons (firewall)getGrinv(int[], int)
public int getGrinv(int[] gi,
int options)
gi - output array, its length must be equal to the number of
atomsoptions - options for the generation of graph invariants
java.lang.SecurityException - the GraphInvariants module cannot be loaded
because of security reasons (firewall)GRINV_NOHYDROGEN,
GRINV_STEREO,
GRINV_DONT_STOREpublic int calcDehydrogenizedGrinv(int[] gi)
gi - output array, its length must be equal to the number of atoms
java.lang.SecurityException - the GraphInvariants module cannot be
loaded because of security reasons (firewall)getGrinv(int[])protected MoleculeGraph createDehydrogenizedReadOnlyGraph()
protected void fuse0(CGraph g)
fuse0 in class CGraphg - the other moleculeprotected final void updateDim(MoleculeGraph m)
m - the other molecule
public void mergeNodes(CNode that,
CNode a)
mergeNodes in class CGraphthat - the nodea - the other nodepublic boolean hasValenceError()
true if there is an atom with valence error,
false if there is no valence errorvalenceCheck(),
MolAtom.hasValenceError()public void valenceCheck()
MolAtom.valenceCheck(),
MolAtom.getImplicitHcount(),
hasValenceError()public void valenceCheck(java.util.Vector v)
v - contains the atoms to checkMolAtom.valenceCheck(),
valenceCheck()public void qpropCheck(java.util.Vector v)
v - contains the atoms to checkMolAtom.qpropCheck()public final boolean contains(CGraph graph)
contains in class CGraphgraph - the fragment
public boolean isSimilarTo(CGraph g)
isSimilarTo in class CGraphtrue if the graphs are similar,
false otherwiseCNode.haveEqualProperties(CNode),
CNode.haveSimilarEdges(CNode)public boolean isAtom()
public boolean isBond()
public java.lang.String getName()
ReadableMolecule interface
but it returns empty string in this basic implementation.
getName in interface chemaxon.struc.ReadableMoleculepublic MPropertyContainer properties()
properties in interface chemaxon.struc.ReadableMoleculepublic void revalidateCoordDependentProps()
public final int getAtomCount()
getAtomCount in interface chemaxon.struc.ReadableMoleculepublic final int getBondCount()
getBondCount in interface chemaxon.struc.ReadableMoleculepublic int getCharge(int k)
getCharge in interface chemaxon.struc.ReadableMoleculek - the atom index
public int getRadical(int k)
getRadical in interface chemaxon.struc.ReadableMoleculek - the atom index
public int getHybridizationState(int k)
getHybridizationState in interface chemaxon.struc.ReadableMoleculek - the atom index
ReadableMolecule.HS_UNKNOWN,
ReadableMolecule.HS_S,
ReadableMolecule.HS_SP,
ReadableMolecule.HS_SP2,
ReadableMolecule.HS_SP3public int getMassno(int k)
getMassno in interface chemaxon.struc.ReadableMoleculek - the atom index
public int getNeighborCount(int k)
getNeighborCount in interface chemaxon.struc.ReadableMoleculek - the atom index
public int getNeighbor(int k,
int i)
getNeighbor in interface chemaxon.struc.ReadableMoleculek - the atom indexi - the neighbor index
public MolAtom getAtom(int n)
n - the atom index
public MolBond getBond(int n)
n - the bond index
public java.util.Vector getNodeVector()
getNodeVector in class CGraphpublic java.util.Vector getEdgeVector()
getEdgeVector in class CGraphpublic MolAtom[] getAtomArray()
public final CEdge[] getEdgeArray()
getEdgeArray in class CGraphpublic MolBond[] getBondArray()
public void calcCenter(DPoint3 p)
p - reference to the object that will hold the resultpublic DPoint3 calcOutRect()
public void calcOutRect(DPoint3 p)
p - reference to the object that will hold the result
(x, y, and z direction width of the outer rectangle)public DPoint3 calcOutRectCenter()
public void calcOutRectCenter(DPoint3 p)
public DPoint3 calcCenter()
public double calcWidth()
public double calcHeight()
public double getDesiredLength(int atno1,
int atno2,
int type)
atno1 - atomic number of first moleculeatno2 - atomic number of second moleculetype - bond type
public double getDesiredLength(MolBond b)
b - the bond
public double bondlength()
public DPoint3 getLocation()
orixpublic void setLocation(DPoint3 o)
o - the originorixpublic void moveTo(DPoint3 o)
o - the new originorixpublic void transform(CTransform3D t)
transform in interface MTransformablet - the transformation matrix
public void transform(CTransform3D t,
boolean incg)
t - the transformation matrixincg - graph invariants are changed (true) or not (false)public DPoint3[] getPoints()
public void clonecopy(CGraph g)
clonecopy in class CGraphg - the target moleculepublic void clonelesscopy(CGraph g)
clonelesscopy in class CGraphg - the target molecule object (the selection)public java.lang.String toString()
@', and the unsigned
hexadecimal representation of the hash code of the object.
If the graph is not empty and it has more than one nodes, then the
string also contains the number of nodes and edges in "[Na,Mb]" form.
If there is only one atom, then its symbol appears between the
square brackets.
toString in class CGraphpublic java.lang.Object clone()
clone in class CGraphpublic int getParity(int i)
i - the index of the atom whose parity is to be determined
java.lang.SecurityException - the Parity module cannot be
loaded because of security reasons (firewall)StereoConstants.PARITY_ODD,
StereoConstants.PARITY_EVEN,
isAbsStereo(),
setAbsStereo(boolean)public int getLocalParity(int i)
i - the index of the atom whose parity is to be determined
java.lang.SecurityException - the Parity module cannot be
loaded because of security reasons (firewall)StereoConstants.PARITY_ODD,
StereoConstants.PARITY_EVEN,
StereoConstants.PARITY_EITHER,
isAbsStereo(),
setAbsStereo(boolean)
public boolean setParity(int i,
int p)
setParity(int[] p) is more efficient.
i - the index of the atom whose parity is to be setp - parity to be set (PARITY_ODD,PARITY_EVEN)
java.lang.SecurityException - the Parity module cannot be
loaded because of security reasons (firewall)StereoConstants.PARITY_ODD,
StereoConstants.PARITY_EVEN,
MolBond.UP,
MolBond.DOWN,
setParity(int[] p)public boolean setParity(int[] p)
p - the parity for each atom in the molecule
StereoConstants.PARITY_ODD,
StereoConstants.PARITY_EVEN,
isAbsStereo(),
setAbsStereo(boolean),
MolBond.UP,
MolBond.DOWN
public boolean setParity(int[] p,
boolean useActualWedges)
p - the parity for each atom in the moleculeuseActualWedges - use actual wedge setup and change
it if neccessary
StereoConstants.PARITY_ODD,
StereoConstants.PARITY_EVEN,
isAbsStereo(),
setAbsStereo(boolean),
MolBond.UP,
MolBond.DOWNpublic int getChirality(int i)
i - the index of the atom whose chirality is to be determined
java.lang.SecurityException - the Parity module cannot be
loaded because of security reasons (firewall)StereoConstants.CHIRALITY_R,
StereoConstants.CHIRALITY_S
public boolean setChirality(int i,
int c)
i - the index of the atom whose chirality is to be setc - chirality to be set (CHIRALITY_R,CHIRALITY_S)
java.lang.SecurityException - the Parity module cannot be
loaded because of security reasons (firewall)StereoConstants.CHIRALITY_R,
StereoConstants.CHIRALITY_S
public int getStereo2(int i1,
int i2,
int i3,
int i4)
i1 - index of atom A1i2 - index of atom A2i3 - index of atom A3i4 - index of atom A4
StereoConstants.CTUMASK,
MolBond.calcStereo2(),
for detailed examples.
public int getStereo2(CNode a1,
int i2,
int i3,
CNode a4)
a1 - atom A1i2 - index of atom A2i3 - index of atom A3a4 - atom A4
Returned values for the four Carbons ("O" means set flag):
| Dihedral | Returned flags | Remark | ||
| CIS | TRANS | CTUNSPEC | ||
| SMARTS bonds: | ||||
| C/C=C/C | - | O | - | |
| C/C=C\C | O | - | - | |
| CC=CC | O | O | - | |
| C/?C=C/C | - | O | O | |
| C/?C=C\C | O | - | O | |
| ISIS bonds: | ||||
| C-C=C-C | O | O | - | 180 degrees |
| C-C X C-C | O | O | - | "Cis" or "Trans" bond |
| C/C="C/T?"=C/C | - | O | O | "Not Cis" bond |
| C/C="C/T?"=C\C | O | - | O | "Not trans" bond |
| C-C="C/T?"=C-C | O | O | O | 180 degrees |
StereoConstants.CTUMASK,
MolBond.calcStereo2()
public int getStereo2(MolBond b,
CNode a1,
CNode a4)
b - the bonda1 - atom A1a4 - atom A4
StereoConstants.CTUMASK,
MolBond.calcStereo2(),
for detailed examples.
public int getStereo2(MolBond b,
CNode a1,
CNode a4,
boolean grcheck)
b - the bonda1 - atom A1a4 - atom A4grcheck - true if check atom equivalences using graph invariants
StereoConstants.CTUMASK,
MolBond.calcStereo2(),
for detailed examples.public int getStereo2(MolBond b)
b - the bond
StereoConstants.CTUMASK,
MolBond.calcStereo2(),
for detailed examples.
protected final int getStereo2(MolBond b,
CNode a1,
int i2,
int i3,
CNode a4)
b - the bonda1 - atom A1i2 - index of atom A2i3 - index of atom A3a4 - atom A4
StereoConstants.CTUMASK,
MolBond.calcStereo2(),
for detailed examples.
protected final int getStereo2(MolBond b,
CNode a1,
int i2,
int i3,
CNode a4,
boolean grcheck)
b - the bonda1 - atom A1i2 - index of atom A2i3 - index of atom A3a4 - atom A4grcheck - true if check atom equivalences using graph invariants
StereoConstants.CTUMASK,
MolBond.calcStereo2(),
for detailed examples.
public boolean canBeCT(int i2,
int i3)
i2 - index of the first atomi3 - index of the second atom
public boolean canBeCT(int i2,
int i3,
boolean grcheck)
i2 - index of the first atomi3 - index of the second atomgrcheck - true if check atom equivalences using graph invariants
public int getLonePairCount(int i)
i - atom index
public void aromatize(boolean a)
throws java.lang.SecurityException
a - aromatize (true) or dearomatize (false)
java.lang.SecurityException - cannot load module because
of a security problem (firewall)public final void aromatize()
java.lang.SecurityException - cannot load module because
of a security problem (firewall)AROM_GENERALpublic void dearomatize()
java.lang.SecurityException - cannot load module because
of a security problem (firewall)public void aromatize(int method)
method - specifies the algorithm for aromatization. Possible
values:
java.lang.SecurityException - cannot load module because of a security
problem (firewall)AROM_BASIC,
AROM_GENERAL,
Document about aromatizationpublic void calcHybridization()
setHybridizationState( int )
can be called to set the appropriate value directly.
LonePairCounterpublic java.lang.String getFormula()
public double getMass()
double value.
public double getExactMass()
double value.
protected void makeItSimilar(CGraph g)
makeItSimilar in class CGraphg - the molecule to changepublic CGraph newInstance()
newInstance in class CGraphpublic MoleculeGraph getGraphUnion()
public final MoleculeGraph[] getSubGraphs()
getSubGraphCount()protected int getSubGraphCount()
RgMolecule, reactants, products and agents of an
RxnMolecule etc.
getSubGraphs(MoleculeGraph[], int)
protected void getSubGraphs(MoleculeGraph[] m,
int off)
m - the output arrayoff - offsetgetSubGraphs(),
getSubGraphCount()protected void addAtomsAndBondsTo(MoleculeGraph s)
s - the selection moleculepublic boolean hasExplicitLonePairs()
public boolean hasImplicitH()
public boolean hasAtomSet()
true if there are atom sets,
false otherwisepublic boolean hasBondSet()
true if there are atom sets,
false otherwisepublic boolean hasExtraLabelSet()
public boolean clean(int dim,
java.lang.String opts)
dim - dimensionsopts - cleaning options
java.lang.SecurityException - cannot load module because
of a security problem (firewall)
public boolean partialClean(int dim,
int[] fixed,
java.lang.String opts)
dim - dimensionsfixed - atom indexes to be fixedopts - cleaning options
java.lang.SecurityException - cannot load module because
of a security problem (firewall)
public boolean clean(int dim,
java.lang.String opts,
chemaxon.marvin.util.MProgressMonitor pmon)
dim - dimensionsopts - cleaning optionspmon - progress monitor or null
java.lang.SecurityException - cannot load module because
of a security problem (firewall)clean(int, java.lang.String)public boolean stereoClean()
public int[][] getAromrings()
public int[][] getNonAromrings()
public int[][] getAromrings(int size)
size - the maximum ring size during ring detection
public int[][] getNonAromrings(int size)
size - the maximum ring size during ring detection
public int[][][] getAromaticAndAliphaticRings(int aromatizationType,
boolean onlyAromrings,
boolean aromatize,
int maxRingSize,
int ringsLimit)
aromatizationType - use aromatization:
onlyAromrings - get only the aromatic rings (Aromatic ring
detection is faster than calculating Aliphatic and Aromatic rings
in case BASIC aromatization, in case of GENERAL aromatization
there is no difference in the speed),aromatize - whether to set the bonds to aromatic (true),
or keep the original form (false),maxRingSize - the maximum ring size during ring detection
(0: no limit)ringsLimit - limit of the number of rings (0: no limit)
AROM_BASIC,
AROM_GENERALpublic int[] getSSSRBondSet()
n' bond is in the sssr integer array
'r', use the following code:
static boolean get(int n, int[] r) {
return (r[n/32] & (((int)1) << (31-(n % 32)))) != 0 ;
}
public long[] getSSSRBondSetInLong()
n' bond is in the sssr long array
'r', use the following code:
static boolean get(int n, long[] r) {
return (r[n/64] & (((long)1) << (63-(n % 64)))) != 0 ;
}
public boolean isRingBond(int idx)
idx - the bond index
public int[][] createCHtab()
public int[][] createBHtab()
public int getImplicitHcount()
public int getExplicitHcount()
public MolAtom findAtomClone(MolAtom a)
a - the original atom
public boolean isValidLinkNode(int linkAtomIdx,
int outer1,
int outer2)
linkAtomIdx - atom index to be set to link atom.outer1 - outer bond to be set by setLinkNodeOuterAtom(0)outer2 - outer bond to be set by setLinkNodeOuterAtom(1)
public void setLinkNodeDefaultOuters(MolAtom atom)
atom - Atom to set to link node.
java.lang.IllegalArgumentException - if it is an invalid link node
configuration.MolAtom.setLinkNodeDefaultOuters(),
MolAtom.setLinkNodeOuterAtom(int, int)public double[] getVisibleCoords(MolAtom ma)
ma - The atom to be queried.
protected java.lang.Object[] saveCache(int n)
saveCache in class CGraphprotected java.lang.Object[] restoreCache(int n)
restoreCache in class CGraphpublic boolean isMultiChiral()
public void adjustMultiChiralFlag()
public boolean isQuery()
true if the molecule has query featurespublic void clearCachedInfo(int options)
clearCachedInfo in class CGraphoptions - options for the cache clearingCACHE_REMOVE_GRINVMODULE,
CACHE_REMOVE_PARITYMODULE,
CACHE_REMOVE_AROMATAMODULE,
CACHE_REMOVE_SSSRMODULE
public int getLocalChirality(int idx,
int[] ch)
idx - atom indexch - already calculated chiralities
CACHE_REMOVE_GRINVMODULEpublic void arrangeComponents()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||