|
|||||||||
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.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class chemaxon.struc.MoleculeGraph |
---|
MoleculeGraph.ValenceCheckState |
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. |
protected void |
addAtomToFragment(MolAtom atom)
Adds an atom to a fragment. |
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()
Checks the consistency of S-groups. |
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()
|
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()
|
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()
|
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)
|
void |
removeRgroup(int definition)
Removes an R-group Note: the R-group definitions are always indexed continuously starting with 0 |
void |
removeRgroupMember(int definition,
int member)
Removes an R-group member. |
void |
removeRgroupMembers(int definition,
int[] members)
Removes R-group members. |
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)
|
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 ValuesConstructor 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.RgMoleculeGraphIface
public int getRgroupCount()
getRgroupCount
in interface chemaxon.struc.RgMoleculeGraphIface
public int getRgroupMemberCount(int i)
getRgroupMemberCount
in interface chemaxon.struc.RgMoleculeGraphIface
i
- 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.RgMoleculeGraphIface
i
- R-group indexj
- member index
public int getRgroupId(int i)
getRgroupId
in interface chemaxon.struc.RgMoleculeGraphIface
i
- R-group index
MolAtom.RGROUP_MAX
public int findRgroupIndex(int rgid)
findRgroupIndex
in interface chemaxon.struc.RgMoleculeGraphIface
rgid
- 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_MAX
m
- the R-group
public void removeRgroupMember(int definition, int member) throws chemaxon.struc.IllegalRgroupDefinitionException, chemaxon.struc.IllegalRgroupMemberException
definition
- the iteration number of the R-group definitionmember
- the iteration number of the member
IllegalRgroupDefinitionException
- If the definition
index is not valid
IllegalRgroupMemberException
- If the member index
is not validpublic void removeRgroupMembers(int definition, int[] members) throws chemaxon.struc.IllegalRgroupDefinitionException, chemaxon.struc.IllegalRgroupMemberException
definition
- the iteration number of the R-group definitionmembers
- the array of the iteration numbers of the members
IllegalRgroupDefinitionException
- If the definition
index is not valid
IllegalRgroupMemberException
- If a member index
is not validpublic void removeRgroup(int definition) throws chemaxon.struc.IllegalRgroupDefinitionException
definition
- the iteration number of the R-group definition
IllegalRgroupDefinitionException
- If the definition
index is not validpublic 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.RgMoleculeGraphIface
i
- 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_RESTH
public java.lang.String getRlogicRange(int i)
getRlogicRange
in interface chemaxon.struc.RgMoleculeGraphIface
i
- 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 rangepublic 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 Molecule
fmt
- 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 Molecule
s
- the molecule name, empty string or null
(null is equivalent to empty string)public java.lang.String getName()
getName
in interface Incomplecule
getName
in class Molecule
public void setComment(java.lang.String s)
setComment
in class Molecule
s
- the comment, empty string or null
(null is equivalent to empty string)public java.lang.String getComment()
getComment
in class Molecule
public MPropertyContainer properties()
properties
in interface Incomplecule
properties
in class MoleculeGraph
public void revalidateCoordDependentProps()
revalidateCoordDependentProps
in class MoleculeGraph
public void setInputFormat(java.lang.String format)
setInputFormat
in class Molecule
format
- the input formatMolecule.getInputFormat()
public MolAtom reuseAtom(int z, int i)
reuseAtom
in class Molecule
z
- atomic numberi
- atom index
public void endReuse(int n)
endReuse
in class Molecule
n
- number of atomspublic int[][] getCtab()
getCtab
in class MoleculeGraph
public int[][] getBtab()
getBondTable()
instead
getBtab
in class MoleculeGraph
public chemaxon.core.util.BondTable getBondTable()
getBondTable
in class MoleculeGraph
public int rgroupIdOf(MolAtom node)
rgroupIdOf
in interface chemaxon.struc.RgMoleculeGraphIface
node
- the atom
public int rgroupIndexOf(MolAtom node)
rgroupIndexOf
in interface chemaxon.struc.RgMoleculeGraphIface
node
- the atom
public long getRgroupMemberID(MolAtom node)
getRgroupMemberID
in interface chemaxon.struc.RgMoleculeGraphIface
node
- the atom
public int getRgroupIndex(long id)
getRgroupIndex
in interface chemaxon.struc.RgMoleculeGraphIface
id
- the R-group member ID or -1
public int getRgroupMemberIndex(long id)
getRgroupMemberIndex
in interface chemaxon.struc.RgMoleculeGraphIface
id
- the R-group member ID or -1
public void setDim(int d)
setDim
in class Molecule
d
- 0, 2 or 3MoleculeGraph.getFlags()
public int getFlags()
getFlags
in class MoleculeGraph
protected void setFlags(int f)
setFlags
in class MoleculeGraph
f
- the flagsMoleculeGraph.flags
protected void setFlags(int f, int mask)
setFlags
in class MoleculeGraph
f
- new value of the specified bitsmask
- bits to setpublic void setAbsStereo(boolean c, int i, int j)
MoleculeGraph.setAbsStereo(boolean)
for the
component
public void setAbsStereo(boolean c)
setAbsStereo
in class MoleculeGraph
c
- the absolute stereoconfiguration flagMoleculeGraph.setFlags(int)
public int getAtomCount()
getAtomCount
in interface Incomplecule
getAtomCount
in class MoleculeGraph
public int getAtomCount(int atomicNumber)
getAtomCount
in class MoleculeGraph
atomicNumber
- atomic number of atoms looked for
public MolAtom getAtom(int i)
getAtom
in class MoleculeGraph
i
- node index
public void setAtom(int iu, MolAtom node)
setAtom
in class MoleculeGraph
iu
- the atom indexnode
- the atompublic void add(MolAtom node)
add
in class MoleculeGraph
node
- the atomprotected void addAtomToFragment(MolAtom atom)
addAtomToFragment
in class Molecule
atom
- the atom referenceprotected void insertNullAtoms(int i, int count)
insertNullAtoms
in class MoleculeGraph
i
- starting indexcount
- number of new entriesprotected void insertNullBonds(int i, int count)
insertNullBonds
in class MoleculeGraph
i
- starting indexcount
- number of new entriespublic int getBondCount()
getBondCount
in interface Incomplecule
getBondCount
in class MoleculeGraph
public MolBond getBond(int i)
getBond
in class MoleculeGraph
i
- edge index
public void setBond(int iu, MolBond edge)
setBond
in class MoleculeGraph
iu
- the bond indexedge
- the bondpublic void replaceBond(MolBond olde, MolBond newe)
replaceBond
in class MoleculeGraph
olde
- the old edgenewe
- the new edgepublic void add(MolBond edge)
add
in class MoleculeGraph
edge
- the bond to addpublic int indexOf(MolAtom node)
indexOf
in class MoleculeGraph
node
- the node
public int indexOf(MolBond edge)
indexOf
in class MoleculeGraph
edge
- the edge
public boolean contains(MolAtom node)
contains
in class Molecule
node
- the node object
public boolean contains(MolBond edge)
contains
in class MoleculeGraph
edge
- the edge object
public boolean isEmpty()
isEmpty
in class Molecule
public boolean isQuery()
isQuery
in class MoleculeGraph
true
if there are R-definitions for this molecule
or the root has query features.MolAtom.isQuery()
,
MolBond.isQuery()
public boolean isAtom()
isAtom
in class MoleculeGraph
public boolean isBond()
isBond
in class MoleculeGraph
public boolean isReaction()
isReaction
in class Molecule
public boolean canBeReactionComponent()
false
, an RgMolecule cannot
be a reaction component.
canBeReactionComponent
in class Molecule
true
if it can be a reactant, product or agent,
false
if adding it to an RxnMolecule
is not
supportedpublic boolean hasAtomSet()
hasAtomSet
in class MoleculeGraph
true
if there are atom sets,
false
otherwisepublic boolean hasBondSet()
hasBondSet
in class MoleculeGraph
true
if there are atom sets,
false
otherwiseprotected Molecule getMostSimplifiedMolecule()
getMostSimplifiedMolecule
in class Molecule
this
otherwiseprotected MDocument getDocumentForChild(MoleculeGraph g)
getDocumentForChild
in class MoleculeGraph
g
- 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 Molecule
node
- 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 Molecule
i
- 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.RgMoleculeGraphIface
m
- the removed R-group memberf
- clean-up flagsprotected void removeBond(MolBond edge, int cleanupFlags)
removeBond
in class Molecule
edge
- 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 Molecule
i
- the bond indexcleanupFlags
- extra clean-up methodsMoleculeGraph.RMCLEANUP_NONE
,
MoleculeGraph.RMCLEANUP_ALL
,
MoleculeGraph.RMCLEANUP_EDGES
,
MoleculeGraph.RMCLEANUP_STEREO
,
Molecule.RMCLEANUP_SGROUPATOMS
,
Molecule.RMCLEANUP_FROMSGROUPS
public void removeAllBonds()
removeAllBonds
in class Molecule
public void removeAll()
removeAll
in class Molecule
protected boolean isRealAtomParent()
isRealAtomParent
in class MoleculeGraph
public void regenBonds()
regenBonds
in class MoleculeGraph
public void sortBondsAccordingTo(MolBond[] order)
sortBondsAccordingTo
in class MoleculeGraph
order
- the arraypublic void setLocation(DPoint3 p)
setLocation
in class MoleculeGraph
p
- the locationMoleculeGraph.orix
public void fuse(MoleculeGraph g, boolean check)
fuse
in class MoleculeGraph
g
- 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 Molecule
java.lang.RuntimeException
- if inconsistency foundprotected void fuse0(MoleculeGraph graph, boolean check)
fuse0
in class MoleculeGraph
graph
- 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 skippedpublic void mergeAtoms(MolAtom that, MolAtom a)
mergeAtoms
in class Molecule
that
- the atoma
- the other atompublic void setSgroupParent(MolAtom a, Sgroup sg, boolean set)
setSgroupParent
in class Molecule
a
- 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 Molecule
g
- the target moleculepublic void clonecopy(int[] iatoms, MoleculeGraph g)
clonecopy
in class Molecule
iatoms
- array of atom indices to copyg
- the target graphpublic boolean isSelfReference(MProp p)
isSelfReference
in class MoleculeGraph
p
- the propertyprotected boolean fixSelfReferringProperty(MProp prop)
fixSelfReferringProperty
in class Molecule
prop
- the propertyMoleculeGraph.clonecopy(MoleculeGraph)
public void clonelesscopy(MoleculeGraph g)
clonelesscopy
in class Molecule
g
- the target moleculepublic Molecule cloneMolecule()
cloneMolecule
in class Molecule
public java.lang.String getFormula()
getFormula
in class MoleculeGraph
public double getMass()
getMass
in class MoleculeGraph
public MoleculeGraph newInstance()
newInstance
in class Molecule
public SelectionMolecule newSelectionMolecule()
newSelectionMolecule
in class Molecule
protected void makeItSimilar(MoleculeGraph g)
makeItSimilar
in class Molecule
g
- the molecule to changepublic boolean isIncompleteReaction()
public void transform(CTransform3D t, boolean incg)
transform
in class Molecule
t
- 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 MoleculeGraph
Molecule.getGraphUnionAsSelection()
protected final int getSubGraphCount()
getSubGraphCount
in class MoleculeGraph
MoleculeGraph.getSubGraphs(MoleculeGraph[], int)
protected final void getSubGraphs(MoleculeGraph[] arr, int off)
getSubGraphs
in class MoleculeGraph
arr
- the output arrayoff
- offsetMoleculeGraph.getSubGraphs()
,
MoleculeGraph.getSubGraphCount()
protected void fillSelectionMolecule(SelectionMolecule s)
fillSelectionMolecule
in class Molecule
s
- the selection moleculepublic int getLonePairCount(int i)
getLonePairCount
in class MoleculeGraph
i
- atom index
public void aromatize(int method)
aromatize
in class Molecule
method
- 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 aromatizationpublic void aromatize(int method, boolean checkAmbiguity)
aromatize
in class Molecule
method
- 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 Molecule
java.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 MoleculeGraph
RxnMolecule.isIncompleteReaction()
protected chemaxon.struc.gearch.MoleculeGraphGearch createGearch()
createGearch
in class Molecule
public int getMaxAttachmentPointOrder(int rgroupID)
rgroupID
- the rgroup identifier to specify the R-group definition molecules.
public void clearObjects()
clearObjects
in interface chemaxon.struc.MObjectContainer
clearObjects
in class Molecule
public int getObjectCount()
getObjectCount
in interface chemaxon.struc.MObjectContainer
getObjectCount
in class Molecule
public void removeObject(MObject mo)
removeObject
in interface chemaxon.struc.MObjectContainer
removeObject
in class Molecule
public void selectAllObjects(boolean s)
selectAllObjects
in interface chemaxon.struc.MObjectContainer
selectAllObjects
in class Molecule
public java.util.List<MObject> getAllObjects()
getAllObjects
in interface chemaxon.struc.MObjectContainer
getAllObjects
in class Molecule
public int getParity(int i)
getParity
in class MoleculeGraph
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
,
MoleculeGraph.isAbsStereo()
,
setAbsStereo(boolean, int, int)
,
MoleculeGraph.getParity(int)
public int getLocalParity(int i)
getLocalParity
in class MoleculeGraph
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
,
MoleculeGraph.isAbsStereo()
,
setAbsStereo(boolean, int, int)
,
MoleculeGraph.getLocalParity(int)
public boolean stereoClean()
stereoClean
in class MoleculeGraph
MoleculeGraph.stereoClean()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |