|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchemaxon.struc.MoleculeGraph
chemaxon.struc.Molecule
chemaxon.struc.RgMolecule
public class RgMolecule
A molecule or reaction containing R-groups.
| Field Summary | |
|---|---|
static int |
RG_ID_MASK
R-group id mask in R-logic. |
static int |
RG_ID2_FLAG
Other R-group ID's presence flag in R-logic. |
static int |
RG_ID2_MASK
Mask of the other R-group's id in R-logic. |
static int |
RG_ID2_OFF
Offset of the other R-group's id in R-logic. |
static int |
RG_RESTH
The RestH flag in R-logic. |
| Fields inherited from class chemaxon.struc.Molecule |
|---|
DEFAULT_UNGROUP, RECURSIVE_UNGROUP, RMCLEANUP_FROMSGROUPS, RMCLEANUP_SGROUPATOMS, RMSG_DEFAULT, RMSG_KEEP_CHILDREN, RMSG_KEEP_MULTICENTER, RMSG_KEEP_PARENT |
| Fields inherited from interface chemaxon.struc.StereoConstants |
|---|
ANTI, ATOMSTEREO_EITHER, ATOMSTEREO_MASK, ATOMSTEREO_NONE, ATOMSTEREO_SPECIFIC, CHIRALITY_M, CHIRALITY_MASK, CHIRALITY_P, CHIRALITY_r, CHIRALITY_R, CHIRALITY_s, CHIRALITY_S, CHIRALITYSUPPORT_ALL, CHIRALITYSUPPORT_NONE, CHIRALITYSUPPORT_SELECTED, CIS, CTUMASK, CTUNKNOWN, CTUNSPEC, DBS_ALL, DBS_MARKED, DBS_NONE, ENDO, EXO, PARITY_ALLENE, PARITY_EITHER, PARITY_EVEN, PARITY_MASK, PARITY_ODD, PARITY_TETRAHEDRAL, PARITY_UNSPEC, STGRP_ABS, STGRP_AND, STGRP_NONE, STGRP_OR, SYN, TRANS |
| Constructor Summary | |
|---|---|
RgMolecule()
Creates a 2 dimensional RgMolecule. |
|
| Method Summary | |
|---|---|
void |
add(MolAtom node)
Adds an atom to the root structure. |
void |
add(MolBond edge)
Adds a bond to the root structure. |
int |
addRgroup(int rl,
Molecule m)
Adds an R-group member. |
RgMolecule |
addRgroupsTo(Molecule m)
Creates a read only RgMolecule from a simple molecule object. |
void |
aromatize(int method)
Aromatizes molecule. |
void |
aromatize(int method,
boolean checkAmbiguity)
Aromatizes molecule. |
boolean |
canBeReactionComponent()
Tests whether an object of this class can be a reaction component. |
void |
checkConsistency()
Deprecated. |
java.lang.String |
checkRlogicRange(int index,
java.lang.String range)
Checks an R-logic occurence range string for syntax errors and returns a "normalized" string. |
protected void |
checkSgroupConsistency()
Deprecated. |
void |
cleanupRemovedRgroupMember(MoleculeGraph m,
int f)
Clean-up after R-group removal. |
void |
clearForImport(java.lang.String fmt)
Clear the edges vector and the properties. |
void |
clearObjects()
Removes all MObjects that belong to a chemical structure. |
void |
clonecopy(int[] iatoms,
MoleculeGraph g)
Copies the specified atoms of this graph to another one. |
void |
clonecopy(MoleculeGraph g)
Make another molecule identical to this one. |
void |
clonelesscopy(MoleculeGraph g)
Copy to selection. |
Molecule |
cloneMolecule()
Make an identical copy of the molecule. |
boolean |
contains(MolAtom node)
Checks if the root structure or an R-group contains the specified node. |
boolean |
contains(MolBond edge)
Checks if the root structure or an R-group contains the specified edge. |
protected chemaxon.struc.gearch.MoleculeGraphGearch |
createGearch()
|
static Molecule |
createMol(java.lang.String fmt)
Deprecated. As of Marvin 3.4, MolImportModule.createMol() must be used. |
void |
endReuse(int n)
End reusing atoms. |
protected void |
fillSelectionMolecule(SelectionMolecule s)
Adds all atoms and bonds of the root structure and the R-groups to the specified molecule. |
int |
findRgroupIndex(int rgid)
Finds R-group R#. |
protected boolean |
fixSelfReferringProperty(MProp prop)
Fix a property containing reference to the molecule. |
void |
fuse(MoleculeGraph g,
boolean check)
Add the atoms and bonds of another molecule. |
protected void |
fuse0(MoleculeGraph graph,
boolean check)
Add those nodes and edges of a graph that are not already elements. |
java.util.List<MObject> |
getAllObjects()
Gets all MObjects that belong to a chemical structure. |
MolAtom |
getAtom(int i)
Gets a node in the graph union. |
int |
getAtomCount()
Gets the number of nodes in the root structure. |
int |
getAtomCount(int atomicNumber)
Gets the number of atoms with the given atomic number in the root structure. |
MolBond |
getBond(int i)
Gets an edge in the graph union. |
int |
getBondCount()
Gets the number of edges in the root structure. |
chemaxon.core.util.BondTable |
getBondTable()
Gets the bond table of the root structre. |
int[][] |
getBtab()
Deprecated. as of Marvin 5.4, please use getBondTable() instead |
java.lang.String |
getComment()
Gets the comment of the root molecule. |
int[][] |
getCtab()
Gets the connection table of the root structure. |
protected MDocument |
getDocumentForChild(MoleculeGraph g)
Gets the parent document for a child graph. |
int |
getFlags()
Gets the dimension and chiral flags. |
java.lang.String |
getFormula()
Gets the molecular formula in Hill order. |
MoleculeGraph |
getGraphUnion()
Gets a graph containing all the atoms and bonds. |
int |
getLocalParity(int i)
Computes the local parity of an atom of the RgMolecule instance based on both the coordinates of the neighboring atoms and the stereo information of the bonds to those. |
int |
getLonePairCount(int i)
Gets the number of lone pairs. |
double |
getMass()
Calculates the molecular weight of the molecule. |
int |
getMaxAttachmentPointOrder(int rgroupID)
Gets the maximal attachment point order of R-group definition molecules specified by an R-group ID. |
protected Molecule |
getMostSimplifiedMolecule()
Gets the simplified molecule object even if there is a parent document with other objects. |
java.lang.String |
getName()
Gets the name of the root molecule. |
int |
getObjectCount()
Returns the count of the MObjects that belong to a chemical structure. |
int |
getParity(int i)
Computes the parity of an atom of the RgMolecule instance based on both the coordinates of the neighboring atoms and the stereo information of the bonds to those. |
int |
getRgroupCount()
Gets the number of R-groups. |
int |
getRgroupId(int i)
Gets the ID of an R-group. |
int |
getRgroupIndex(long id)
Gets the R-group index from the R-group member ID. |
Molecule |
getRgroupMember(int i,
int j)
Gets an R-group member. |
int |
getRgroupMemberCount(int i)
Gets the number of R-group members. |
MoleculeGraph |
getRgroupMemberG(int i,
int j)
Gets an R-group member. |
long |
getRgroupMemberID(MolAtom node)
Gets the unique indentifier of the R-group member that contains the specified atom. |
int |
getRgroupMemberIndex(long id)
Gets the R-group member index from the R-group member ID. |
int |
getRlogic(int i)
Gets R-logic flags. |
java.lang.String |
getRlogicRange(int i)
Gets R-logic occurence range. |
Molecule |
getRoot()
Gets the root structure. |
MoleculeGraph |
getRootG()
Gets the root structure. |
protected int |
getSubGraphCount()
Gets the number of all "submolecules". |
protected void |
getSubGraphs(MoleculeGraph[] arr,
int off)
Gets all "submolecules". |
boolean |
hasAtomSet()
Tests whether the molecule graph has atom sets. |
boolean |
hasBondSet()
Tests whether the molecule graph has atom sets. |
boolean |
hasRgroupContainedBy(java.util.Set set)
Tests whether the molecule has an R-group that is a subset of the specified set of atoms. |
int |
indexOf(MolAtom node)
Gets the index of the specified node in the graph union. |
int |
indexOf(MolBond edge)
Gets the index of the specified edge in the graph union. |
protected void |
insertNullAtoms(int i,
int count)
Insert nulls into the atom array. |
protected void |
insertNullBonds(int i,
int count)
Insert nulls into the bond array. |
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 |
isEmpty()
Ask if the molecule is empty or not. |
boolean |
isIncompleteReaction()
Check whether the reaction is incomplete or not. |
boolean |
isQuery()
Indicates if the molecule has query features. |
boolean |
isReaction()
Checks if the structure represents a reaction or not. |
protected boolean |
isRealAtomParent()
R-group molecule objects cannot be real node parents. |
boolean |
isSelfReference(MProp p)
Tests whether the specified property is a self reference to the molecule. |
protected void |
makeItSimilar(MoleculeGraph g)
Copies some properties of this molecule to the other one specified as argument. |
void |
mergeAtoms(MolAtom that,
MolAtom a)
Merges bonds of an atom with another atom, then add the atom to the molecule. |
MoleculeGraph |
newInstance()
Creates a new RgMolecule object. |
SelectionMolecule |
newSelectionMolecule()
Creates a new SelectionMolecule object appropriate for storing selection from this molecule. |
MPropertyContainer |
properties()
Gets the property container. |
void |
regenBonds()
Regenerate the edge vectors: remove their elements, then put the edge objects from the nodes into it. |
void |
removeAll()
Remove all the atoms and bonds from the root structure, and from all the R-groups. |
void |
removeAllBonds()
Remove all bonds from the root structure, and from all the R-groups. |
void |
removeAtom(int i,
int cleanupFlags)
Removes an atom and its bonds from the root structure. |
void |
removeAtom(MolAtom node,
int cleanupFlags)
Removes an atom and its bonds from the root structure and from all the R-groups. |
protected void |
removeBond(int i,
int cleanupFlags)
Remove a bond from the root structure. |
protected void |
removeBond(MolBond edge,
int cleanupFlags)
Remove a bond from the root structure, and from all the R-groups. |
void |
removeObject(MObject mo)
Removes an MObject that belongs to a chemical structure. |
void |
replaceAtomsWithNewRgroup(SelectionMolecule sel,
int rgid)
Replaces selected atoms with a new R-group. |
void |
replaceBond(MolBond olde,
MolBond newe)
Replaces an edge by another one. |
MolAtom |
reuseAtom(int z,
int i)
Reuse an atom or create a new one. |
void |
revalidateCoordDependentProps()
Revalidate coordinate dependent properties. |
int |
rgroupIdOf(MolAtom node)
Finds the ID of the R-group (the number in R#) that contains the specified atom. |
int |
rgroupIndexOf(MolAtom node)
Finds the index of the R-group (the number in R#) that contains the specified atom. |
void |
selectAllObjects(boolean s)
Selects or deselects all MObjects that belong to a chemical structure. |
void |
setAbsStereo(boolean c)
Sets the absolute stereoconfiguration flag for the root structure and the R-groups. |
void |
setAbsStereo(boolean c,
int i,
int j)
Deprecated. as of Marvin 5.1.1, please call MoleculeGraph.setAbsStereo(boolean) for the
component |
void |
setAtom(int iu,
MolAtom node)
Sets the node at the specified index in the graph union. |
void |
setBond(int iu,
MolBond edge)
Sets the edge at the specified index in the graph union. |
void |
setComment(java.lang.String s)
Sets the comment of the root molecule. |
void |
setDim(int d)
Sets the dimension of the root structure and the R-groups. |
protected void |
setFlags(int f)
Sets the dimension and chiral flags. |
protected void |
setFlags(int f,
int mask)
Sets specified bits in the flags. |
void |
setInputFormat(java.lang.String format)
Sets the input file format. |
void |
setLocation(DPoint3 p)
Set the origin of the molecule. |
void |
setName(java.lang.String s)
Sets the name of the root molecule. |
void |
setRlogic(int i,
int f)
Sets R-logic flags. |
void |
setRlogicRange(int index,
java.lang.String range)
Sets R-logic occurence range. |
void |
setRoot(Molecule mol)
Sets the root structure. |
void |
setSgroupParent(MolAtom a,
Sgroup sg,
boolean set)
Sets or unsets an S-group as a parent of an atom in the root structure or an R-group. |
void |
sortBondsAccordingTo(MolBond[] order)
Sort edges in the same order as they appear in the specified array. |
boolean |
stereoClean()
Reset the wedges of the molecule, based on the actual parity information in 2D remove wedges in 3D. |
protected void |
sumConservedQuantities(MolAtom a,
int[] atoms,
int sign)
For internal use only. |
java.lang.String |
toString()
Overrides Object.toString() to ease debugging. |
void |
transform(CTransform3D t,
boolean incg)
Apply a transformation matrix to the atomic coordinates. |
int |
unRgroupAtoms(java.util.Set set)
Ungroup R-groups consisting of the specified atoms and make the be part of root. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int RG_ID_MASK
getRlogic(int),
setRlogic(int, int),
Constant Field Valuespublic static final int RG_ID2_FLAG
getRlogic(int),
setRlogic(int, int),
Constant Field Valuespublic static final int RG_ID2_OFF
getRlogic(int),
setRlogic(int, int),
Constant Field Valuespublic static final int RG_ID2_MASK
getRlogic(int),
setRlogic(int, int),
Constant Field Valuespublic static final int RG_RESTH
getRlogic(int),
setRlogic(int, int),
Constant Field Values| Constructor Detail |
|---|
public RgMolecule()
| Method Detail |
|---|
public void setRoot(Molecule mol)
mol - the root structurepublic Molecule getRoot()
public final MoleculeGraph getRootG()
getRootG in interface chemaxon.struc.RgMoleculeGraphIfacepublic int getRgroupCount()
getRgroupCount in interface chemaxon.struc.RgMoleculeGraphIfacepublic int getRgroupMemberCount(int i)
getRgroupMemberCount in interface chemaxon.struc.RgMoleculeGraphIfacei - R-group index
public Molecule getRgroupMember(int i,
int j)
i - R-group indexj - member index
public final MoleculeGraph getRgroupMemberG(int i,
int j)
getRgroupMemberG in interface chemaxon.struc.RgMoleculeGraphIfacei - R-group indexj - member index
public int getRgroupId(int i)
getRgroupId in interface chemaxon.struc.RgMoleculeGraphIfacei - R-group index
MolAtom.RGROUP_MAXpublic int findRgroupIndex(int rgid)
findRgroupIndex in interface chemaxon.struc.RgMoleculeGraphIfacergid - number between 0 and MolAtom.RGROUP_MAX
public int addRgroup(int rl,
Molecule m)
rl - R-logic flags or an R-group ID number between 0 and
MolAtom.RGROUP_MAXm - the R-group
public boolean hasRgroupContainedBy(java.util.Set set)
set - set of atomspublic int unRgroupAtoms(java.util.Set set)
set - selected atoms
public void replaceAtomsWithNewRgroup(SelectionMolecule sel,
int rgid)
sel - selected atomsrgid - R-group IDpublic int getRlogic(int i)
getRlogic in interface chemaxon.struc.RgMoleculeGraphIfacei - R-group index
RG_ID_MASK,
RG_ID2_FLAG,
RG_ID2_OFF,
RG_ID2_MASK,
RG_RESTH
public void setRlogic(int i,
int f)
i - R-group indexf - R-logic flagsRG_ID_MASK,
RG_ID2_FLAG,
RG_ID2_OFF,
RG_ID2_MASK,
RG_RESTHpublic java.lang.String getRlogicRange(int i)
getRlogicRange in interface chemaxon.struc.RgMoleculeGraphIfacei - R-group index
public void setRlogicRange(int index,
java.lang.String range)
throws java.lang.IllegalArgumentException
index - R-group indexrange - range of occurance
java.lang.IllegalArgumentException - bad occurence range
public java.lang.String checkRlogicRange(int index,
java.lang.String range)
throws java.lang.IllegalArgumentException
index - R-group indexrange - range of occurance
java.lang.IllegalArgumentException - bad occurence rangepublic void clearForImport(java.lang.String fmt)
clearForImport in class Moleculefmt - input file format.
See the text formats on the
File Formats in
Marvin page.MoleculeGraph.theBonds,
MoleculeGraph.orix,
MoleculeGraph.oriy,
MoleculeGraph.oriz,
MoleculeGraph.setFlags(int)public void setName(java.lang.String s)
setName in class Molecules - the molecule name, empty string or null
(null is equivalent to empty string)public java.lang.String getName()
getName in interface IncompleculegetName in class Moleculepublic void setComment(java.lang.String s)
setComment in class Molecules - the comment, empty string or null
(null is equivalent to empty string)public java.lang.String getComment()
getComment in class Moleculepublic MPropertyContainer properties()
properties in interface Incompleculeproperties in class MoleculeGraphpublic void revalidateCoordDependentProps()
revalidateCoordDependentProps in class MoleculeGraphpublic void setInputFormat(java.lang.String format)
setInputFormat in class Moleculeformat - the input formatMolecule.getInputFormat()
public MolAtom reuseAtom(int z,
int i)
reuseAtom in class Moleculez - atomic numberi - atom index
public void endReuse(int n)
endReuse in class Moleculen - number of atomspublic int[][] getCtab()
getCtab in class MoleculeGraphpublic int[][] getBtab()
getBondTable() instead
getBtab in class MoleculeGraphpublic chemaxon.core.util.BondTable getBondTable()
getBondTable in class MoleculeGraphpublic int rgroupIdOf(MolAtom node)
rgroupIdOf in interface chemaxon.struc.RgMoleculeGraphIfacenode - the atom
public int rgroupIndexOf(MolAtom node)
rgroupIndexOf in interface chemaxon.struc.RgMoleculeGraphIfacenode - the atom
public long getRgroupMemberID(MolAtom node)
getRgroupMemberID in interface chemaxon.struc.RgMoleculeGraphIfacenode - the atom
public int getRgroupIndex(long id)
getRgroupIndex in interface chemaxon.struc.RgMoleculeGraphIfaceid - the R-group member ID or -1
public int getRgroupMemberIndex(long id)
getRgroupMemberIndex in interface chemaxon.struc.RgMoleculeGraphIfaceid - the R-group member ID or -1
public void setDim(int d)
setDim in class Moleculed - 0, 2 or 3MoleculeGraph.getFlags()public int getFlags()
getFlags in class MoleculeGraphprotected void setFlags(int f)
setFlags in class MoleculeGraphf - the flagsMoleculeGraph.flags
protected void setFlags(int f,
int mask)
setFlags in class MoleculeGraphf - new value of the specified bitsmask - bits to set
public void setAbsStereo(boolean c,
int i,
int j)
MoleculeGraph.setAbsStereo(boolean) for the
component
public void setAbsStereo(boolean c)
setAbsStereo in class MoleculeGraphc - the absolute stereoconfiguration flagMoleculeGraph.setFlags(int)public int getAtomCount()
getAtomCount in interface IncompleculegetAtomCount in class MoleculeGraphpublic int getAtomCount(int atomicNumber)
getAtomCount in class MoleculeGraphatomicNumber - atomic number of atoms looked for
public MolAtom getAtom(int i)
getAtom in class MoleculeGraphi - node index
public void setAtom(int iu,
MolAtom node)
setAtom in class MoleculeGraphiu - the atom indexnode - the atompublic void add(MolAtom node)
add in class MoleculeGraphnode - the atom
protected void insertNullAtoms(int i,
int count)
insertNullAtoms in class MoleculeGraphi - starting indexcount - number of new entries
protected void insertNullBonds(int i,
int count)
insertNullBonds in class MoleculeGraphi - starting indexcount - number of new entriespublic int getBondCount()
getBondCount in interface IncompleculegetBondCount in class MoleculeGraphpublic MolBond getBond(int i)
getBond in class MoleculeGraphi - edge index
public void setBond(int iu,
MolBond edge)
setBond in class MoleculeGraphiu - the bond indexedge - the bond
public void replaceBond(MolBond olde,
MolBond newe)
replaceBond in class MoleculeGrapholde - the old edgenewe - the new edgepublic void add(MolBond edge)
add in class MoleculeGraphedge - the bond to addpublic int indexOf(MolAtom node)
indexOf in class MoleculeGraphnode - the node
public int indexOf(MolBond edge)
indexOf in class MoleculeGraphedge - the edge
public boolean contains(MolAtom node)
contains in class Moleculenode - the node object
public boolean contains(MolBond edge)
contains in class MoleculeGraphedge - the edge object
public boolean isEmpty()
isEmpty in class Moleculepublic boolean isQuery()
isQuery in class MoleculeGraphtrue if there are R-definitions for this molecule
or the root has query features.MolAtom.isQuery(),
MolBond.isQuery()public boolean isAtom()
isAtom in class MoleculeGraphpublic boolean isBond()
isBond in class MoleculeGraphpublic boolean isReaction()
isReaction in class Moleculepublic boolean canBeReactionComponent()
false, an RgMolecule cannot
be a reaction component.
canBeReactionComponent in class Moleculetrue if it can be a reactant, product or agent,
false if adding it to an RxnMolecule is not
supportedpublic boolean hasAtomSet()
hasAtomSet in class MoleculeGraphtrue if there are atom sets,
false otherwisepublic boolean hasBondSet()
hasBondSet in class MoleculeGraphtrue if there are atom sets,
false otherwiseprotected Molecule getMostSimplifiedMolecule()
getMostSimplifiedMolecule in class Moleculethis otherwiseprotected MDocument getDocumentForChild(MoleculeGraph g)
getDocumentForChild in class MoleculeGraphg - the child graph or this
public RgMolecule addRgroupsTo(Molecule m)
m - the simple molecule object
public void removeAtom(MolAtom node,
int cleanupFlags)
MoleculeGraph.removeAtom(MolAtom)
instead unless you are sure what you are doing.
removeAtom in class Moleculenode - the atomcleanupFlags - extra clean-up methodsMoleculeGraph.RMCLEANUP_NONE,
MoleculeGraph.RMCLEANUP_ALL,
MoleculeGraph.RMCLEANUP_EDGES,
MoleculeGraph.RMCLEANUP_STEREO,
Molecule.RMCLEANUP_SGROUPATOMS,
Molecule.RMCLEANUP_FROMSGROUPS
public void removeAtom(int i,
int cleanupFlags)
MoleculeGraph.removeAtom(MolAtom)
instead unless you are sure what you are doing.
removeAtom in class Moleculei - the atom indexcleanupFlags - extra clean-up methodsMoleculeGraph.RMCLEANUP_NONE,
MoleculeGraph.RMCLEANUP_ALL,
MoleculeGraph.RMCLEANUP_EDGES,
MoleculeGraph.RMCLEANUP_STEREO,
Molecule.RMCLEANUP_SGROUPATOMS,
Molecule.RMCLEANUP_FROMSGROUPS
public void cleanupRemovedRgroupMember(MoleculeGraph m,
int f)
cleanupRemovedRgroupMember in interface chemaxon.struc.RgMoleculeGraphIfacem - the removed R-group memberf - clean-up flags
protected void removeBond(MolBond edge,
int cleanupFlags)
removeBond in class Moleculeedge - the bondcleanupFlags - extra clean-up methodsMoleculeGraph.RMCLEANUP_NONE,
MoleculeGraph.RMCLEANUP_ALL,
MoleculeGraph.RMCLEANUP_EDGES,
MoleculeGraph.RMCLEANUP_STEREO,
Molecule.RMCLEANUP_SGROUPATOMS,
Molecule.RMCLEANUP_FROMSGROUPS
protected void removeBond(int i,
int cleanupFlags)
removeBond in class Moleculei - the bond indexcleanupFlags - extra clean-up methodsMoleculeGraph.RMCLEANUP_NONE,
MoleculeGraph.RMCLEANUP_ALL,
MoleculeGraph.RMCLEANUP_EDGES,
MoleculeGraph.RMCLEANUP_STEREO,
Molecule.RMCLEANUP_SGROUPATOMS,
Molecule.RMCLEANUP_FROMSGROUPSpublic void removeAllBonds()
removeAllBonds in class Moleculepublic void removeAll()
removeAll in class Moleculeprotected boolean isRealAtomParent()
isRealAtomParent in class MoleculeGraphpublic void regenBonds()
regenBonds in class MoleculeGraphpublic void sortBondsAccordingTo(MolBond[] order)
sortBondsAccordingTo in class MoleculeGraphorder - the arraypublic void setLocation(DPoint3 p)
setLocation in class MoleculeGraphp - the locationMoleculeGraph.orix
public void fuse(MoleculeGraph g,
boolean check)
fuse in class MoleculeGraphg - the other moleculecheck - true if a containment check should be performed to ensure that
only those nodes and edges are added that are not already elements -
false if the graph is known to be disjoint from this graph and
this check can be safely skippedpublic void checkConsistency()
checkConsistency in class Moleculejava.lang.RuntimeException - if inconsistency found
protected void fuse0(MoleculeGraph graph,
boolean check)
fuse0 in class MoleculeGraphgraph - the graph that will be fused into this moleculecheck - true if a containment check should be performed to ensure that
only those nodes and edges are added that are not already elements -
false if the graph is known to be disjoint from this graph and
this check can be safely skipped
public void mergeAtoms(MolAtom that,
MolAtom a)
mergeAtoms in class Moleculethat - the atoma - the other atom
public void setSgroupParent(MolAtom a,
Sgroup sg,
boolean set)
setSgroupParent in class Moleculea - the atomsg - the S-groupset - set (true) or unset (false)
java.lang.IllegalArgumentException - if neither root, nor any R-group
contains the atompublic void clonecopy(MoleculeGraph g)
clonecopy in class Moleculeg - the target molecule
public void clonecopy(int[] iatoms,
MoleculeGraph g)
clonecopy in class Moleculeiatoms - array of atom indices to copyg - the target graphpublic boolean isSelfReference(MProp p)
isSelfReference in class MoleculeGraphp - the propertyprotected boolean fixSelfReferringProperty(MProp prop)
fixSelfReferringProperty in class Moleculeprop - the propertyMoleculeGraph.clonecopy(MoleculeGraph)public void clonelesscopy(MoleculeGraph g)
clonelesscopy in class Moleculeg - the target moleculepublic Molecule cloneMolecule()
cloneMolecule in class Moleculepublic java.lang.String getFormula()
getFormula in class MoleculeGraphpublic double getMass()
getMass in class MoleculeGraphpublic MoleculeGraph newInstance()
newInstance in class Moleculepublic SelectionMolecule newSelectionMolecule()
newSelectionMolecule in class Moleculeprotected void makeItSimilar(MoleculeGraph g)
makeItSimilar in class Moleculeg - the molecule to changepublic boolean isIncompleteReaction()
public void transform(CTransform3D t,
boolean incg)
transform in class Moleculet - the transformation matrixincg - increase grinvCC or notpublic static Molecule createMol(java.lang.String fmt)
MolImportModule.createMol() must be used.
fmt - the file format
public MoleculeGraph getGraphUnion()
getGraphUnion in class MoleculeGraphMolecule.getGraphUnionAsSelection()protected final int getSubGraphCount()
getSubGraphCount in class MoleculeGraphMoleculeGraph.getSubGraphs(MoleculeGraph[], int)
protected final void getSubGraphs(MoleculeGraph[] arr,
int off)
getSubGraphs in class MoleculeGrapharr - the output arrayoff - offsetMoleculeGraph.getSubGraphs(),
MoleculeGraph.getSubGraphCount()protected void fillSelectionMolecule(SelectionMolecule s)
fillSelectionMolecule in class Molecules - the selection moleculepublic int getLonePairCount(int i)
getLonePairCount in class MoleculeGraphi - atom index
public void aromatize(int method)
aromatize in class Moleculemethod - Specifies the algorithm for aromatization. Possible
values:
java.lang.SecurityException - cannot load module because of a security
problem (firewall)MoleculeGraph.AROM_BASIC,
MoleculeGraph.AROM_GENERAL,
Document about aromatization
public void aromatize(int method,
boolean checkAmbiguity)
aromatize in class Moleculemethod - Specifies the algorithm for aromatization. Possible
values:
checkAmbiguity - Specifies whether ANY bonds should be considered
during aromatization.
java.lang.SecurityException - cannot load module because of a security
problem (firewall)MoleculeGraph.AROM_BASIC,
MoleculeGraph.AROM_GENERAL,
Document about aromatizationprotected void checkSgroupConsistency()
checkSgroupConsistency in class Moleculejava.lang.RuntimeException - if inconsistency foundpublic java.lang.String toString()
toString in class MoleculeGraph
protected void sumConservedQuantities(MolAtom a,
int[] atoms,
int sign)
sumConservedQuantities in class MoleculeGraphRxnMolecule.isIncompleteReaction()protected chemaxon.struc.gearch.MoleculeGraphGearch createGearch()
createGearch in class Moleculepublic int getMaxAttachmentPointOrder(int rgroupID)
rgroupID - the rgroup identifier to specify the R-group definition molecules.
public void clearObjects()
chemaxon.struc.MObjectContainer
clearObjects in interface chemaxon.struc.MObjectContainerclearObjects in class Moleculepublic int getObjectCount()
chemaxon.struc.MObjectContainer
getObjectCount in interface chemaxon.struc.MObjectContainergetObjectCount in class Moleculepublic void removeObject(MObject mo)
chemaxon.struc.MObjectContainer
removeObject in interface chemaxon.struc.MObjectContainerremoveObject in class Moleculemo - the object to removepublic void selectAllObjects(boolean s)
chemaxon.struc.MObjectContainer
selectAllObjects in interface chemaxon.struc.MObjectContainerselectAllObjects in class Molecules - the value to set the selection state of the graphic objectspublic java.util.List<MObject> getAllObjects()
chemaxon.struc.MObjectContainer
getAllObjects in interface chemaxon.struc.MObjectContainergetAllObjects in class Moleculepublic int getParity(int i)
getParity in class MoleculeGraphi - 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,
MoleculeGraph.isAbsStereo(),
setAbsStereo(boolean, int, int),
MoleculeGraph.getParity(int)public int getLocalParity(int i)
getLocalParity in class MoleculeGraphi - 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,
MoleculeGraph.isAbsStereo(),
setAbsStereo(boolean, int, int),
MoleculeGraph.getLocalParity(int)public boolean stereoClean()
stereoClean in class MoleculeGraphMoleculeGraph.stereoClean()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||