|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchemaxon.struc.MolAtom
public class MolAtom
Atom object and the properties of the elements. Atom objects are identified by their reference values. Atom object can contain general properties (property value - property key pairs). The following methods are available to handle general atom properties:
Field Summary | |
---|---|
static int |
AAMAP_MASK
Atom map mask in flags. |
static int |
AAMAP_MAX
Maximum atom-atom mapping number. |
static int |
AAMAP_OFF
Atom map offset in flags. |
static int |
ALIPHATIC
Aliphatic query atom. |
static int |
ALL_H
Include any Hydrogen atom. |
static int |
ANY
"Atomic number" of the any atom A. |
static int |
AROMATIC
Aromatic query atom. |
static int |
AROMATIC_OR_ALIPHATIC
Aromatic or aliphatic query atom. |
static int |
ATOM_TYPE_COUNT
Number of atom types in the elements array |
static int |
ATOM_TYPE_MAX
Maximum atom number. |
static int |
ATTACH_BOTH
S-group attachment point on first and second site. |
static int |
ATTACH_NONE
There is no S-group attachment point setting on this atom. |
static int |
ATTACH1
S-group attachment point on first site. |
static int |
ATTACH2
S-group attachment point on second site. |
protected int |
bondCount
Number of bonds. |
static int |
BRIDGEHEAD_H
Hydrogen atom which is connected to a bridgehead atom. |
static int |
CHARGED_H
Include charged Hydrogen atom(s). |
static int |
CTSPECIFIC_H
Deprecated. graph invariants are checked by default when calculating CIS/TRANS stereo, so this option is out of use |
static int |
ELEMENT_COUNT
Number of elements in the periodic system |
static int |
EMPTY
Empty atom type. |
static int |
FIX_CHARGE
Valence checking will replace radicals with charges if this flag is set. |
static int |
HCONNECTED_H
Hydrogen atom(s) connected to another hydrogen only. |
static int |
HETERO
"Atomic number" of the hetero any atom Q. |
static int |
HS_S
S hybridization state. |
static int |
HS_SP
SP hybridization state. |
static int |
HS_SP2
SP2 hybridization state. |
static int |
HS_SP3
SP3 hybridization state. |
static int |
HS_UNKNOWN
Unknown hybridization state. |
static int |
ISOTOPE_H
Include Hydrogen isotope(s). |
static int |
LDIR_ABOVE
Implicit Hydrogen(s) are above the element symbol. |
static int |
LDIR_BELOW
Implicit Hydrogen(s) are below the element symbol. |
static int |
LDIR_LEFT
Implicit Hydrogen(s) are left to element symbol. |
static int |
LDIR_RIGHT
Implicit Hydrogen(s) are right to element symbol. |
static int |
LIST
"Atomic number" of the inclusive atom list. |
static int |
LONELY_H
Include lonely Hydrogen atom(s). |
static int |
LP
"Atomic number" of the lone pair. |
static int |
MAPPED_H
Mapped Hydrogen atom(s). |
static int |
MULTICENTER
"Atomic number" of a central atom of a MulticenterSgroup. |
static int |
NOTLIST
"Atomic number" of the exclusive atom list. |
static int |
POLYMERENDGROUP_H
Hydrogen atom which have a neighbor that is in an Sgroup (not DataSgroup or SuperatomSgroup) and the H is not in the same sgroup should be kept. |
static int |
PSEUDO
"Atomic number" of a pseudoatom. |
static int |
RAD_COUNT_MASK
Radical's free electron count bits in flags for valid radical values. |
static int |
RAD_MASK
Radical value bits in flags. |
static int |
RAD_OFF
Radical value offset in flags. |
static int |
RAD1
Monovalent radical center. |
static int |
RAD2
Divalent radical center. |
static int |
RAD2_SINGLET
Divalent radical center with singlet electronic configuration. |
static int |
RAD2_TRIPLET
Divalent radical center with triplet electronic configuration. |
static int |
RAD3
Trivalent radical center. |
static int |
RAD3_DOUBLET
Trivalent radical center with doublet electronic configuration. |
static int |
RAD3_QUARTET
Trivalent radical center with quartet electronic configuration. |
static int |
RAD4
Invalid value for radical center for students. |
static char |
RADICAL_CHAR
|
static int |
RADICAL_H
Include radical Hydrogen atom(s). |
static int |
RESSEQ_MAX
Maximum residue sequence number is currently 8191. |
static int |
RESTYPE_MAX
Maximum residue type is currently 63. |
static int |
RGROUP
"Atomic number" of the Rgroup query "atom". |
static int |
RGROUP_ATTACHMENT
"Atomic number" of an ordered R-group attachment point. |
static int |
RGROUP_MAX
Maximum R-group index (32767). |
static int |
RXNSTEREO_INVERSION
The stereo configuration of the atom is inverted during the reaction. |
static int |
RXNSTEREO_NONE
The stereo configuration of the atom is not considered during the reaction. |
static int |
RXNSTEREO_RETENTION
The stereo configuration of the atom is retained during the reaction. |
static int |
SETSEQ_MAX
Maximum atom set sequence number is currently 63. |
static int |
SGROUP
"Atomic number" of an Sgroup. |
static int |
SGROUP_H
Hydrogen atom which is the only atom in an Sgroup. |
static int |
SGROUPEND_H
Hydrogen atom which have a neighbor that is in a SuperatomSgroup. |
static int |
SMARTS_H_DAYLIGHT_COMP_MODE
Option flag to express daylight-type smarts atom parsing of H. |
static int |
SMARTS_H_MARVIN_COMP_MODE
Option flag to express marvin-pre-3.5-type smarts atom parsing of H. |
static int |
STAR
"Atomic number" of the star atom. |
static int |
SYM_CX
Atom symbol string for CxSMILES export. |
static int |
SYM_EXPLH
Atom symbol string contains explicit H count if this flag is set. |
static int |
SYM_IMPLH
Atom symbol string contains implicit H count is shown flag is set. |
static int |
SYM_MOLEX
Atom symbol string for Molfile export. |
static int |
SYM_NEUTRAL
Atom symbol string does not contain the charge if this flag is set. |
static int |
SYM_SMARTS
Atom symbol string for SMILES export. |
static int |
SYM_SQBRACKETS
Atom symbol is shown in square brackets if this flag is set. |
protected MolBond[] |
theBonds
The bonds. |
static int |
UNSPECIFIED_AROMATICITY
Atom aromaticity is not specified explicitly. |
static int |
VALENCE_CHECKED
Valence checked if this flag is set. |
static int |
VALENCE_ERROR
The atom has valence error if this flag is set. |
static int |
VALENCEERROR_H
Hydrogen atom(s) connected to an atom which have valence error. |
static int |
WEDGED_H
Hydrogen atom(s) with wedge bonds. |
protected double |
xCoordinate
X coordinate. |
protected double |
yCoordinate
Y coordinate. |
protected double |
zCoordinate
Z coordinate. |
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 | |
---|---|
MolAtom(double x,
double y)
Construct a carbon atom at the specified location. |
|
MolAtom(int z)
Construct an atom of the specified type at the origin. |
|
MolAtom(int zZ,
double x,
double y,
double z)
Construct an atom. |
Method Summary | |
---|---|
protected boolean |
add(MolBond b)
Add a bond if it had not been already added. |
MolAtom |
addRgroupAttachmentPoint(int order,
int bondtype)
Attaches a new R-group attachment point to this atom by a bond of a specified type. |
void |
bondweights(double[] w,
CTransform3D t)
Calculates the average of the bond unit vectors pointing out of this atom. |
static boolean |
checkAtno(int z)
Check if the given atomic number is positive and less then atomic type maximum value. |
void |
clear()
Clear query properties, charge, and hcount. |
void |
clearExtraLabel()
Clears the extra label. |
void |
clearProperties()
Removes all properties from this atom. |
void |
clearQProps()
Clears query props. |
java.lang.Object |
clone()
Clones the atom. |
boolean |
containsPropertyKey(java.lang.String key)
Returns true if this atom has a mapping for the specified property key. |
protected int |
countAllAtoms()
Counts all atoms represented by this atom. |
static double |
covalentRadiusOf(int z,
int t)
Gets the covalent radius in C-C bond length units. |
int |
decQProp(java.lang.String name)
Decrements the value of a query property. |
int |
decValenceProp()
Decrements the value of the valence property. |
static int |
electronegOf(int z)
Gets 10 times the electronegativity value for the specified element. |
java.lang.String |
getAliasstr()
Gets the alias string or pseudo atom type string for pseudo atoms. |
int |
getAtno()
Gets the atomic number. |
static int |
getAtomicNumber(java.lang.String element)
Deprecated. As of Marvin 5.9, replaced by a similar method PeriodicSystem.findAtomicNumber(String) . |
int |
getAtomMap()
Gets the atom-atom mapping number. |
java.lang.String |
getAtomSymbol(int opts,
int aflags,
int[] lcenter,
CTransform3D preTransform)
Gets the string representation of the atom symbol. |
int |
getAttach()
Gets the S-group attachment point information. |
Sgroup |
getAttachParentSgroup()
Gets the parent S-group of an S-group attachment point atom. |
chemaxon.struc.BicycloStereoDescriptor[] |
getBicycloStereo()
Gets the bicyclo stereo information of this atom. |
MolBond |
getBond(int i)
Gets the i-th bond. |
int |
getBondCount()
Gets the number of bonds/ligands. |
MolBond |
getBondTo(MolAtom other)
Finds the bond that connects this atom to another atom. |
int |
getCharge()
Gets the charge. |
static int |
getColumn(int z)
The column or group of an element in the periodic system. |
MolBond |
getEdge(int i)
Deprecated. As of Marvin 5.3, replaced by getBond(int) . |
int |
getEdgeCount()
Deprecated. As of Marvin 5.3, replaced by getBondCount() . |
MolBond |
getEdgeTo(MolAtom other)
Deprecated. As of Marvin 5.3, replaced by getBondTo(MolAtom) . |
int |
getElectronProp()
Returns the number of lone pairs on this atom. |
int |
getExplicitHcount()
Gets number of hydrogen connections. |
java.lang.String |
getExtraLabel()
Gets the label string (also called atom value): "result" or "result1|result2". |
long |
getExtraLabelColor()
Gets the extra label color(s): lower 32 bits and upper 32 bits as (alpha<<24 + red<<16 + green<<8 + blue). |
int |
getExtraLabelColor(int i)
Gets the extra label color: (alpha<<24 + red<<16 + green<<8 + blue). |
static int |
getExtraLabelColor(long rgbs,
int i)
Gets extra label color from composed color value. |
int |
getExtraLabelSetSeq()
|
int |
getFlags()
Gets flags. |
int |
getHybridizationState()
Gets the hybridization state. |
int |
getImplicitHcount()
Gets the number of implicit hydrogens attached. |
MolAtom |
getLigand(int i)
Gets the i-th ligand of this atom. |
int |
getLigandIndex(MolAtom atom)
Returns the index of the specified ligand in this atom. |
int |
getLigandOrder(MolAtom ligand)
Gets the order of a specified ligand. |
MolAtom[] |
getLigands()
Returns the atoms connected to this atom by a bond. |
int |
getLinkNodeOuterAtom(int idx)
Gets the index of one of the link node's outer neighbor atoms. |
int[] |
getList()
Gets the atom list. |
DPoint3 |
getLocation()
Gets the coordinates. |
void |
getLocation(DPoint3 p)
Gets the coordinates. |
protected java.lang.Object |
getLock()
Get lock object for synchronization. |
int |
getLonePairCount()
Returns the automatically calculated lone pair count of this atom. |
double |
getMass()
Gets the atomic weight. |
int |
getMassno()
Gets the mass number. |
int |
getMaxRepetitions()
Gets the maximum number of repetitions for a link atom. |
int |
getMinRepetitions()
Gets the minimum number of repetitions for a link node. |
int |
getNonQueryImplicitHcount()
Gets the number of implicit hydrogens attached. |
MoleculeGraph |
getParent()
Return the molecule graph that contains this atom. |
int |
getPreferredLabelDir(CTransform3D pretr,
int h)
Gets the preferred direction for an additional label. |
java.lang.Object |
getProperty(java.lang.String key)
Returns the property value to which the specified property key is mapped at this atom, or null if this atom has no mapping for this property key. |
java.lang.Object |
getQProp(java.lang.String name)
Gets a query property. |
int |
getQPropAsInt(java.lang.String name)
Gets a query property as an integer. |
int[] |
getQPropMinMax(java.lang.String name)
Gets the minimum and maximum possible values of a query property. |
java.lang.String[] |
getQPropNames()
Gets the names of query properties with non-null values. |
java.util.Set<java.lang.String> |
getQPropNameSet()
Gets the names of query properties with non-null values, or null if no query properties are set. |
int |
getQueryAromaticity()
Gets the aromatic/aliphatic query property. |
java.lang.String |
getQueryLabel()
Gets the string representation of the query atom |
java.lang.String |
getQuerystr()
Deprecated. As of release 5.7, replaced by getQueryString() |
java.lang.String |
getQueryString()
Returns s the query string assigned to this atom. |
int |
getRadical()
Gets the radical value. |
int |
getRadicalCount()
Gets the number of free electrons. |
int |
getReactionStereo()
Gets the reaction stereo property describing how the stereo configuration of the atom changes during the reaction. |
int |
getRealBondCount()
Gets the number of bonds connected to "real" atoms. |
int |
getRelativeNegativity()
Check negativity compared to the neighbors. |
int |
getResidueAtomId()
Gets the residue atom identifier. |
int |
getResidueSeq()
Gets the residue sequence number. |
int |
getResidueType()
Gets the residue type. |
int |
getRgroup()
Gets the R-group ID. |
int |
getRgroupAttachmentPointOrder()
Gets the attachment point order of an R-group attachment point. |
static int |
getRow(int z)
The row or or period of an element in the periodic system. |
int |
getSetSeq()
Gets the atom set sequence number. |
boolean |
getStereoCare()
Reports double bond stereo care information on the connected bonds. |
int |
getStereoGroupNumber()
Gets the stereochemical group number for AND and OR groups of the enhanced stereo representation. |
int |
getStereoGroupType()
Gets the stereochemical group type for the enhanced stereo representation. |
java.lang.String |
getSymbol()
Gets the element symbol. |
java.lang.Object |
getTemporaryObject(java.lang.String key)
Gets a temporary object. |
int |
getValence()
Gets the valence. |
int |
getValenceProp()
Gets the valence property. |
int[] |
getValencePropMinMax()
Gets the minimum and maximum possible values of the valence property. |
double |
getX()
Gets the X coordinate. |
double |
getY()
Gets the Y coordinate. |
double |
getZ()
Gets the Z coordinate. |
boolean |
hasAromaticBond()
Tests whether the atom has aromatic bonds. |
boolean |
hasQProps()
Does it have query properties? |
boolean |
hasQueryBonds()
Tests whether the atom has query bonds ("ANY" bonds). |
boolean |
hasSMARTSProps()
Deprecated. As of release 5.7, replaced by SmartsAtomQuerifier.hasSMARTSProps(MolAtom atom) |
boolean |
hasSMARTSPropsExcluding(java.lang.String exclude)
Deprecated. As of release 5.7, replaced by SmartsAtomQuerifier.hasSMARTSPropsExcluding(MolAtom atom, String exclude) |
boolean |
hasValenceError()
Returns previously set valence error. |
boolean |
hasWedgedBond()
Tests whether the atom has a wedged bond. |
boolean |
haveEqualProperties(MolAtom a)
Tests if two atoms have the same properties. |
boolean |
haveSimilarBonds(MolAtom a)
Checks if two atoms have similar bonds. |
boolean |
haveSimilarEdges(MolAtom a)
Deprecated. As of Marvin 5.3, replaced by haveSimilarBonds(MolAtom) . |
int |
incQProp(java.lang.String name)
Increments the value of a query property. |
int |
incQueryAromaticity()
Increments the value of the query aromaticity property. |
int |
incValenceProp()
Increments the value of the valence property. |
int |
indexOf(MolBond bond)
Returns the index of the specified bond in this atom. |
boolean |
insideLabel(double x,
double y)
Tests whether the specified point is inside the atom label. |
static int |
ionChargeOf(int z)
Gets the ion charge. |
boolean |
isAmbiguousStereo()
Check if the atom has ambiguous stereo wedge configuration. |
static boolean |
isAromaticSMILESSubset(int atno)
Is the atom can be aromatic according to the daylight specification: Only atoms on the following list can be considered aromatic: C, N, O, P, S, As, Se, and * (wildcard). |
boolean |
isArrowEnd()
Deprecated. As of Marvin 5.3 |
boolean |
isBoundTo(MolAtom other)
Checks if this MolAtom is connected to another one or not. |
boolean |
isGeneric()
Tests whether the atom is a generic atom. |
boolean |
isImplicitizableH(int f)
Tests whether the hydrogen atom is implicitizable or not. |
boolean |
isLinkNode()
The atom is a link node if the maximum number of repetitions is nonzero. |
boolean |
isMappable()
Checks if this atom it a mappable. |
boolean |
isNobleGas()
Deprecated. As of Marvin 5.4, replaced by PeriodicSystem.isNobleGas(int z) . |
static int |
isotopeType(int z,
int a)
Gets the type of an isotope. |
boolean |
isPseudo()
Tests whether if the atom is a pseudo atom. |
boolean |
isQProp()
Tests whether this object represents a query property. |
boolean |
isQuery()
Tests whether it is a query atom. |
static boolean |
isSameParityClass(int i1,
int i2,
int i3,
int i4,
int j1,
int j2,
int j3,
int j4)
Calculates if chirality centers in the structure and the query belong to the same parity class. |
boolean |
isSelected()
Tests whether this atom is selected. |
boolean |
isSpecIsotopeSymbolPreferred()
Tests whether special symbol is used. |
boolean |
isSpecIsotopeSymbolUsed()
Tests whether special symbol is used. |
boolean |
isTerminalAtom()
Determines whether it is a terminal atom or not. |
static int |
maxAbsOxStateOf(int z)
Gets the oxidation state that has the maximum absolute value |
void |
moveCorners(double diffx,
double diffy)
Translates the coordinates of the atom label. |
static java.lang.String |
nameOf(int z)
Gets the name of the specified element. |
static double |
naturalWeightOf(int z)
Gets the natural weight of the element. |
static int |
negOxOf(int z)
Gets the negative oxidation number. |
static int |
numOf(java.lang.String e)
Deprecated. As of Marvin 5.6, replaced by getAtomicNumber(String) . |
static int |
numoxstatesOf(int z)
Gets the number of oxidation states for the specified element. |
static int |
oxstateOf(int z,
int k)
Gets the oxidation states. |
void |
pack()
Reduce memory usage. |
static int |
paritySign(int a,
int b,
int c,
int d)
Calculates the sign of the parity for the specified indexes. |
static int |
posOxOf(int z)
Gets the smallest positive oxidation number. |
int |
propertyCount()
Returns the number of property (property key - property value) mappings of this atom. |
java.util.Set<java.lang.String> |
propertyKeySet()
Returns a set view of the property keys of this atom. |
java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>> |
propertySet()
Returns a collection view of the properties (property key - property value mappings) of this atom. |
void |
putProperty(java.lang.String key,
java.lang.Object value)
Associates the specified value with the specified key at this atom. |
void |
qpropCheck()
Query property checking. |
protected void |
removeAllBonds()
Removes all bonds. |
protected void |
removeBond(int i)
Removes a bond. |
protected void |
removeBond(MolBond bond)
Removes a bond by reference. |
java.lang.Object |
removeProperty(java.lang.String key)
Removes the mapping for this property key from this atom if present. |
static java.lang.String |
residueSymbolOf(int id)
Gets the name of a residue. |
static int |
residueTypeOf(java.lang.String name)
Gets the residue identifier for a residue name. |
void |
set(MolAtom atom)
Set all atom properties except the coordinates. |
void |
setAliasstr(java.lang.String s)
Sets the alias string or pseudo atom type string for pseudo atoms. |
void |
setAtno(int z)
Sets the atomic number. |
protected static void |
setAtom1(MolBond bond,
MolAtom newatom)
Sets the first atom of a bond. |
protected static void |
setAtom2(MolBond bond,
MolAtom newatom)
Sets the second atom of a bond. |
void |
setAtomMap(int map)
Sets the atom-atom mapping number. |
void |
setAttach(int a)
Sets the S-group aattachment point information. |
void |
setAttach(int a,
Sgroup sg)
Sets the S-group attachment point information for an S-group attachment atom. |
void |
setBicycloStereo(chemaxon.struc.BicycloStereoDescriptor[] descriptors)
Registers the bicyclo stereo information for this atom. |
void |
setCharge(int q)
Sets the charge. |
void |
setCorners(double xnw,
double ynw,
double xse,
double yse)
Used internally by MolPainter. |
void |
setElectronProp(int eProp)
Sets the number of lone pairs. |
void |
setExtraLabel(java.lang.String s)
Sets the extra atom label (also called atom value): "label" or "label1|label2". |
void |
setExtraLabelColor(int rgb1,
int rgb2)
Sets the extra label colors: lower 32 bits and upper 32 bits as (alpha<<24 + red<<16 + green<<8 + blue). |
void |
setExtraLabelColor(long rgbs)
Sets the extra label color(s): lower 32 bits and upper 32 bits as (alpha<<24 + red<<16 + green<<8 + blue). |
void |
setExtraLabelSetSeq(int id)
|
void |
setFlags(int f)
Sets the flags. |
void |
setFlags(int f,
int mask)
Sets the flags. |
void |
setForSpecIsotopeSymbol(java.lang.String sym)
Sets the special atom symbol and the atomic weight for deuterium or tricium. |
void |
setHybridizationState(int h)
Sets the hybridization state. |
void |
setImplicitHBasedOnValence(chemaxon.core.calculations.valencecheck.Valence v)
|
void |
setImplicitHcount(int h)
Sets the number of implicit hydrogens. |
boolean |
setLigandOrder(int order,
MolAtom ligand)
Sets the order of a specified ligand. |
void |
setLinkNodeDefaultOuters()
Sets link node outer atoms to default values, if they are not set yet. |
void |
setLinkNodeOuterAtom(int idx,
int outer)
Sets one of the link node's outer neighbor atoms. |
void |
setList(int[] l)
Sets the list elements. |
void |
setList(int[] l,
int n)
Sets the list elements. |
void |
setLocation(DPoint3 p)
Sets the coordinates. |
void |
setMassno(int a)
Sets the mass number. |
void |
setMassnoIfKnown(java.lang.String sym)
Deprecated. as of Marvin 4.1, replaced by setForSpecIsotopeSymbol(String) |
void |
setMaxRepetitions(int r)
Sets the maximum number of repetitions for a link atom. |
void |
setMinRepetitions(int r)
Sets the minimum number of repetitions for a link node. |
void |
setNonQueryImplicitHcount(int h)
Sets the number of non-query implicit hydrogens attached. |
void |
setQProp(java.lang.String name,
int v)
Sets a query property as an integer. |
void |
setQProp(java.lang.String name,
java.lang.Object v)
Sets a query property. |
void |
setQueryAromaticity(int x)
Sets the aromatic/aliphatic query property. |
void |
setQuerystr(java.lang.String s)
Deprecated. As of release 5.7, replaced by SmartsAtomQuerifier.setQuerystr(MolAtom atom, String s)
and setQueryString(String) |
void |
setQuerystr(java.lang.String s,
int options)
Deprecated. As of release 5.7, replaced by SmartsAtomQuerifier.setQuerystr(MolAtom atom, String s, int options)
and setQueryString(String) |
void |
setQueryString(java.lang.String queryString)
Assigns the query string to this atom. |
void |
setRadical(int r)
Sets the radical value. |
void |
setReactionStereo(int r)
Sets the reaction stereo property describing how the stereo configuration of the atom changes during the reaction. |
void |
setResidueAtomId(int id)
Sets the residue atom identifier. |
void |
setResidueSeq(int n)
Sets the residue sequence number. |
void |
setResidueType(int t)
Sets the residue type. |
void |
setRgroup(int r)
Sets the R-group ID. |
void |
setRgroupAttachmentPointOrder(int order)
Sets the attachment point order of an R-group attachment point. |
void |
setSelected(boolean sel)
Selects or unselects this atom. |
void |
setSetSeq(int id)
Sets the atom set sequence number. |
void |
setSMARTS(java.lang.String s)
Deprecated. As of release 5.7, replaced by SmartsAtomQuerifier.setSMARTS(MolAtom atom, String s) |
void |
setSpecIsotopeSymbolPreferred(boolean v)
Sets special isotope symbol usage preference. |
void |
setStereoGroupNumber(int n)
Sets the stereochemical group number for AND and OR groups of the enhanced stereo representation. |
void |
setStereoGroupType(int t)
Sets the stereochemical group type for enhanced stereo representation. |
void |
setValenceError(boolean v)
Sets or clears the valence error flag. |
void |
setValenceProp(int v)
Sets the valence property. |
void |
setX(double x)
Sets the X coordinate. |
void |
setXY(double x,
double y)
Sets the x and y coordinates. |
void |
setXYZ(double x,
double y,
double z)
Sets the coordinates. |
void |
setY(double y)
Sets the Y coordinate. |
void |
setZ(double z)
Sets the Z coordinate. |
int |
sringsize()
Calculate the size of smallest ring containing this atom. |
void |
storeTemporaryObject(java.lang.String key,
java.lang.Object val)
Stores an object temporarily. |
static java.lang.String |
symbolOf(int z)
Gets the element symbol for the specified atomic number. |
static java.lang.String |
symbolOf(int z,
int a)
Gets the special element symbol for the specified atomic and mass numbers. |
java.lang.String |
toString()
Overrides Object.toString() to ease debugging. |
void |
transform(CTransform3D t,
boolean incg)
Apply a transformation matrix to the coordinates. |
int |
twicesumbonds(boolean countH,
boolean all2)
Calculates the total number of bonding electrons, excluding implicit hydrogens. |
void |
valenceCheck()
Valence checking. |
void |
valenceCheck(int opts)
Deprecated. As of Marvin 5.4, replaced by valenceCheck() . |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int LONELY_H
Hydrogenize.convertExplicitHToImplicit(MoleculeGraph, int)
,
Constant Field Valuespublic static final int ISOTOPE_H
Hydrogenize.convertExplicitHToImplicit(MoleculeGraph, int)
,
Constant Field Valuespublic static final int CHARGED_H
Hydrogenize.convertExplicitHToImplicit(MoleculeGraph, int)
,
Constant Field Valuespublic static final int RADICAL_H
Hydrogenize.convertExplicitHToImplicit(MoleculeGraph, int)
,
Constant Field Valuespublic static final int MAPPED_H
Hydrogenize.convertExplicitHToImplicit(MoleculeGraph, int)
,
Constant Field Valuespublic static final int WEDGED_H
Hydrogenize.convertExplicitHToImplicit(MoleculeGraph, int)
,
Constant Field Valuespublic static final int HCONNECTED_H
Hydrogenize.convertExplicitHToImplicit(MoleculeGraph, int)
,
Constant Field Valuespublic static final int CTSPECIFIC_H
Hydrogenize.convertExplicitHToImplicit(MoleculeGraph, int)
,
Constant Field Valuespublic static final int POLYMERENDGROUP_H
Hydrogenize.convertExplicitHToImplicit(MoleculeGraph, int)
,
Constant Field Valuespublic static final int SGROUPEND_H
Hydrogenize.convertExplicitHToImplicit(MoleculeGraph, int)
,
Constant Field Valuespublic static final int VALENCEERROR_H
Hydrogenize.convertExplicitHToImplicit(MoleculeGraph, int)
,
Constant Field Valuespublic static final int SGROUP_H
Hydrogenize.convertExplicitHToImplicit(MoleculeGraph, int)
,
Constant Field Valuespublic static final int BRIDGEHEAD_H
Hydrogenize.convertExplicitHToImplicit(MoleculeGraph, int)
,
Constant Field Valuespublic static final int ALL_H
Hydrogenize.convertExplicitHToImplicit(MoleculeGraph, int)
,
Constant Field Valuespublic static final int ELEMENT_COUNT
public static final int EMPTY
public static final int LIST
public static final int NOTLIST
public static final int LP
public static final int ANY
public static final int HETERO
public static final int STAR
public static final int RGROUP
public static final int SGROUP
public static final int PSEUDO
getAliasstr()
method.
getAliasstr()
,
setAliasstr(String)
,
isPseudo()
,
Constant Field Valuespublic static final int MULTICENTER
public static final int RGROUP_ATTACHMENT
setRgroupAttachmentPointOrder(int order)
,
getRgroupAttachmentPointOrder()
,
Constant Field Valuespublic static final int ATOM_TYPE_MAX
public static final int ATOM_TYPE_COUNT
public static final int HS_UNKNOWN
getHybridizationState()
,
Constant Field Valuespublic static final int HS_S
getHybridizationState()
,
Constant Field Valuespublic static final int HS_SP
getHybridizationState()
,
Constant Field Valuespublic static final int HS_SP2
getHybridizationState()
,
Constant Field Valuespublic static final int HS_SP3
getHybridizationState()
,
Constant Field Valuespublic static final int RGROUP_MAX
setRgroup(int)
,
Constant Field Valuespublic static final int RAD_OFF
public static final int RAD_MASK
public static final int RAD_COUNT_MASK
public static final int RAD1
public static final int RAD2
public static final int RAD2_SINGLET
public static final int RAD2_TRIPLET
public static final int RAD3
public static final int RAD3_DOUBLET
public static final int RAD3_QUARTET
public static final int RAD4
public static final int AAMAP_MAX
setAtomMap(int)
,
Constant Field Valuespublic static final int AAMAP_OFF
public static final int AAMAP_MASK
getAtomMap()
,
getFlags()
,
Constant Field Valuespublic static final int SETSEQ_MAX
setSetSeq(int)
,
Constant Field Valuespublic static final int RESTYPE_MAX
setResidueType(int)
,
Constant Field Valuespublic static final int RESSEQ_MAX
setResidueSeq(int)
,
Constant Field Valuespublic static final int RXNSTEREO_NONE
public static final int RXNSTEREO_INVERSION
public static final int RXNSTEREO_RETENTION
public static final int UNSPECIFIED_AROMATICITY
getQueryAromaticity()
,
Constant Field Valuespublic static final int AROMATIC
getQueryAromaticity()
,
Constant Field Valuespublic static final int ALIPHATIC
getQueryAromaticity()
,
Constant Field Valuespublic static final int AROMATIC_OR_ALIPHATIC
getQueryAromaticity()
,
Constant Field Valuespublic static final int ATTACH_NONE
getAttach()
,
Constant Field Valuespublic static final int ATTACH1
getAttach()
,
Constant Field Valuespublic static final int ATTACH2
getAttach()
,
Constant Field Valuespublic static final int ATTACH_BOTH
getAttach()
,
Constant Field Valuespublic static final int SMARTS_H_DAYLIGHT_COMP_MODE
setQuerystr(String, int)
,
Constant Field Valuespublic static final int SMARTS_H_MARVIN_COMP_MODE
setQuerystr(String, int)
,
Constant Field Valuespublic static final int LDIR_RIGHT
public static final int LDIR_LEFT
public static final int LDIR_ABOVE
public static final int LDIR_BELOW
public static final int SYM_SQBRACKETS
getAtomSymbol(int, int, int[], CTransform3D)
,
Constant Field Valuespublic static final int SYM_IMPLH
getAtomSymbol(int, int, int[], CTransform3D)
,
Constant Field Valuespublic static final int SYM_EXPLH
getAtomSymbol(int, int, int[], CTransform3D)
,
Constant Field Valuespublic static final int SYM_NEUTRAL
getAtomSymbol(int, int, int[], CTransform3D)
,
Constant Field Valuespublic static final int SYM_SMARTS
SYM_SQBRACKETS
is also set.
getAtomSymbol(int, int, int[], CTransform3D)
,
Constant Field Valuespublic static final int SYM_MOLEX
SYM_SQBRACKETS
is also set.
getAtomSymbol(int, int, int[], CTransform3D)
,
Constant Field Valuespublic static final int SYM_CX
SYM_SQBRACKETS
is also set.
getAtomSymbol(int, int, int[], CTransform3D)
,
Constant Field Valuespublic static final int VALENCE_CHECKED
getFlags()
,
Constant Field Valuespublic static final int VALENCE_ERROR
getFlags()
,
Constant Field Valuespublic static final int FIX_CHARGE
getFlags()
,
Constant Field Valuesprotected transient int bondCount
protected transient MolBond[] theBonds
protected transient double xCoordinate
protected transient double yCoordinate
protected transient double zCoordinate
public static final char RADICAL_CHAR
Constructor Detail |
---|
public MolAtom(int zZ, double x, double y, double z)
checkAtno(int)
to check whether the atomic number is valid.
zZ
- the atomic numberx
- the x coordinatey
- the y coordinatez
- the z coordinatecheckAtno(int)
public MolAtom(double x, double y)
x
- the x coordinatey
- the y coordinatepublic MolAtom(int z)
checkAtno(int)
to check whether the atomic number is valid.
z
- the atomic numbercheckAtno(int)
Method Detail |
---|
public final MoleculeGraph getParent()
public final int indexOf(MolBond bond)
bond
- bond reference
public final MolAtom[] getLigands()
getLigand(int)
public final MolAtom getLigand(int i)
i
- bond index
public final int getLigandIndex(MolAtom atom)
atom
- the other atom
getLigand(int)
public final MolBond getBondTo(MolAtom other)
other
- the other atom
isBoundTo(MolAtom)
public final boolean isBoundTo(MolAtom other)
other
- the other atom
true
if the two atomss are connected with a bond,
false
otherwisegetBondTo(MolAtom)
public final int sringsize()
protected final java.lang.Object getLock()
protected static void setAtom1(MolBond bond, MolAtom newatom)
bond
- the bondnewatom
- the new atom valueprotected static void setAtom2(MolBond bond, MolAtom newatom)
bond
- the bondnewatom
- the new atom valuepublic boolean haveSimilarBonds(MolAtom a)
true
if they have similar bonds,
false
otherwiseMolBond.haveEqualProperties(MolBond)
public final int getBondCount()
public final MolBond getBond(int i)
i
- bond index
public final int getRealBondCount()
public void set(MolAtom atom)
atom
- the source atompublic double getX()
public void setX(double x)
x
- the x coordinate in Angstromspublic double getY()
public void setY(double y)
y
- the y coordinate in Angstromspublic double getZ()
public void setZ(double z)
z
- the z coordinate in Angstromspublic void setXY(double x, double y)
x
- the x coordinate in Angstromsy
- the y coordinate in Angstromspublic void setXYZ(double x, double y, double z)
x
- the x coordinate in Angstromsy
- the y coordinate in Angstromsz
- the z coordinate in Angstromspublic final DPoint3 getLocation()
public final void getLocation(DPoint3 p)
p
- object that will store the locationpublic void setLocation(DPoint3 p)
p
- the locationpublic void transform(CTransform3D t, boolean incg)
t
- the transformation matrixincg
- graph invariants are changed (true) or not (false)public java.lang.String getSymbol()
public final int getAtno()
public void setAtno(int z)
checkAtno(int)
to check whether the the atomic number is valid.
z
- the atomic numbercheckAtno(int)
public static boolean checkAtno(int z)
z
- atomic number
ATOM_TYPE_COUNT
public int getMassno()
public void setMassno(int a)
a
- the mass number or zeropublic void setForSpecIsotopeSymbol(java.lang.String sym)
sym
- the atom symbolpublic void setMassnoIfKnown(java.lang.String sym)
setForSpecIsotopeSymbol(String)
sym
- the atom symbolpublic double getMass()
public boolean isNobleGas()
PeriodicSystem.isNobleGas(int z)
.
true
if noble gas, false
otherwisepublic boolean isMappable()
true
if map index can be assigned to the atom
false
if atom is a lone pairpublic int getRelativeNegativity()
public int getImplicitHcount()
valenceCheck()
before this method.
valenceCheck()
public void setImplicitHcount(int h)
h
- the number of implicit hydrogens
java.lang.IllegalArgumentException
- negative h value specifiedpublic int getNonQueryImplicitHcount()
public void setNonQueryImplicitHcount(int h)
h
- the implicit hydrogen count, not including the query H count.public int getCharge()
public void setCharge(int q)
q
- the chargepublic static int getColumn(int z)
z
- atomic number (protons)
public int getRadical()
RAD1
,
RAD2
,
RAD2_SINGLET
,
RAD2_TRIPLET
,
RAD3
,
RAD3_DOUBLET
,
RAD3_QUARTET
,
RAD4
public void setRadical(int r)
r
- the radical valueRAD1
,
RAD2
,
RAD2_SINGLET
,
RAD2_TRIPLET
,
RAD3
,
RAD3_DOUBLET
,
RAD3_QUARTET
,
RAD4
public int getRadicalCount()
RAD1
,
RAD2
,
RAD3
,
RAD4
public static int getRow(int z)
z
- atomic number (protons)
public int[] getValencePropMinMax()
public int getValenceProp()
public void setValenceProp(int v)
v
- the valence or -1 to unsetpublic int incValenceProp()
public int decValenceProp()
public int getValence()
public int getExplicitHcount()
public boolean hasQProps()
true
if it has query properties,
false
otherwiseisQuery()
public java.lang.Object getQProp(java.lang.String name)
getQueryAromaticity()
instead
name
- the property name
public int getQPropAsInt(java.lang.String name)
getQueryAromaticity()
instead
name
- the property name
getQProp(java.lang.String)
public int[] getQPropMinMax(java.lang.String name)
name
- the query property abbreviation
public int incQProp(java.lang.String name)
name
- the query property abbreviation
public int decQProp(java.lang.String name)
name
- the query property abbreviation
public void setQProp(java.lang.String name, java.lang.Object v)
getQueryAromaticity()
instead
name
- the property namev
- the valuegetQProp(java.lang.String)
public void setQProp(java.lang.String name, int v)
getQueryAromaticity()
instead
name
- the property namev
- the value or -1public void clearQProps()
public java.lang.String[] getQPropNames()
public java.util.Set<java.lang.String> getQPropNameSet()
public int getQueryAromaticity()
UNSPECIFIED_AROMATICITY
, AROMATIC
, ALIPHATIC
or AROMATIC_OR_ALIPHATIC
public void setQueryAromaticity(int x)
x
- UNSPECIFIED_AROMATICITY
, AROMATIC
, ALIPHATIC
or AROMATIC_OR_ALIPHATIC
public int incQueryAromaticity()
public int getRgroup()
RGROUP_MAX
public void setRgroup(int r)
r
- Rgroup number, between 0 and RGROUP_MAX
public int getAttach()
ATTACH1
(first),
ATTACH2
(second) or ATTACH_BOTH
(both)public void setAttach(int a)
a
- MolAtom.ATTACH_NONE (not an S-group attachment point), ATTACH1
(first),
ATTACH2
(second) or ATTACH_BOTH
(both)public void setAttach(int a, Sgroup sg)
a
- MolAtom.ATTACH_NONE (not an S-group attachment point), ATTACH1
(first),
ATTACH2
(second) or ATTACH_BOTH
(both)sg
- the parent S-group or nullpublic Sgroup getAttachParentSgroup()
public int getHybridizationState()
setHybridizationState(int)
is not overwritten accidentally. \br
To calculate and set the hybridization state for this and all other atoms
in a moecule call MoleculeGraph.calcHybridization()
.
HS_UNKNOWN
,
HS_S
,
HS_SP
,
HS_SP2
,
HS_SP3
public void setHybridizationState(int h)
h
- the hybridization stategetHybridizationState()
public int getAtomMap()
public void setAtomMap(int map)
map
- the map value (positive integer) or 0AAMAP_MAX
public int getSetSeq()
SETSEQ_MAX
public void setSetSeq(int id)
id
- a number between 0 and SETSEQ_MAXSETSEQ_MAX
public void setExtraLabelSetSeq(int id)
public int getExtraLabelSetSeq()
public static int residueTypeOf(java.lang.String name)
name
- residue name
public static java.lang.String residueSymbolOf(int id)
id
- the residue identifier
public int getResidueType()
RESTYPE_MAX
public void setResidueType(int t)
t
- the residue typeRESTYPE_MAX
public int getResidueSeq()
RESSEQ_MAX
public void setResidueSeq(int n)
n
- the residue sequence numberRESSEQ_MAX
public int getResidueAtomId()
public void setResidueAtomId(int id)
id
- the residue atom identifierpublic int getMinRepetitions()
public void setMinRepetitions(int r)
r
- the minimum number of repetitionspublic int getMaxRepetitions()
public void setMaxRepetitions(int r)
r
- the maximum number of repetitionspublic int getLinkNodeOuterAtom(int idx)
idx
- Which outer atom (0 or 1)
getLigand(int)
public void setLinkNodeOuterAtom(int idx, int outer)
idx
- Which outer atom (0 or 1)outer
- The outer neighbor atom index (as used with getLigand())
or -1 if clearing.getLigand(int)
public boolean isLinkNode()
public final boolean isArrowEnd()
true
if this is an arrow endpoint,
false
otherwiseMolBond.isArrow()
public void bondweights(double[] w, CTransform3D t)
w
- 3-element array that will contain the resulting vectort
- the rotation matrixpublic java.lang.String getAtomSymbol(int opts, int aflags, int[] lcenter, CTransform3D preTransform)
opts
- combination of SYM_* flagsaflags
- atom flagspreTransform
- viewing transformationlcenter
- if not null, then its first two element (index 0-1) will
will be set to the index and the length of the element
symbol substring in the returned string, the element at
at index 2 will be set to +1 if the H label is above,
-1 if below the element symbol or 0 otherwise
SYM_SQBRACKETS
,
SYM_IMPLH
,
SYM_EXPLH
,
SYM_NEUTRAL
,
SYM_SMARTS
,
SYM_MOLEX
public java.lang.String getQueryLabel()
public int getPreferredLabelDir(CTransform3D pretr, int h)
pretr
- viewing transformationh
- hydrogen count for hydrogen label display, 0 otherwise
LDIR_RIGHT
, LDIR_LEFT
, LDIR_ABOVE
or LDIR_BELOW
public final boolean isQuery()
true
if it is a query atom,
false
otherwiseisLinkNode()
,
ANY
,
HETERO
,
LIST
,
NOTLIST
,
RGROUP
public boolean isQProp()
true
if it is a query property,
false
otherwisepublic boolean isImplicitizableH(int f)
f
- flags specifying special H atom types to include
true
if the hydrogen is implicitizable,
false
otherwiseLONELY_H
,
ISOTOPE_H
,
CHARGED_H
,
RADICAL_H
,
MAPPED_H
,
WEDGED_H
,
HCONNECTED_H
,
CTSPECIFIC_H
,
VALENCEERROR_H
,
Hydrogenize.convertExplicitHToImplicit(MoleculeGraph, int)
public boolean isPseudo()
setAtno(int)
) to PSEUDO
and set the
pseudo atom type string by setAliasstr(String)
.
true
if the atom is a pseudo atom,
false
otherwisegetAliasstr()
,
PSEUDO
public boolean isGeneric()
setAtno(int)
) to PSEUDO
and set the
pseudo atom type string by setAliasstr(String)
to one of the following:
true
if the atom is a ganaric atom,
false
otherwisegetAliasstr()
,
PSEUDO
public final boolean hasWedgedBond()
true
if it has a wedged bond,
false
otherwisepublic final boolean hasAromaticBond()
true
if it has aromatic bonds,
false
otherwisepublic final boolean hasQueryBonds()
true
if it has query bonds,
false
otherwisepublic final boolean hasSMARTSProps()
SmartsAtomQuerifier.hasSMARTSProps(MolAtom atom)
true
if it has SMARTS properties,
false
otherwisepublic final boolean hasSMARTSPropsExcluding(java.lang.String exclude)
SmartsAtomQuerifier.hasSMARTSPropsExcluding(MolAtom atom, String exclude)
exclude
- list of SMARTS properties to exclude
true
if it has SMARTS properties,
false
otherwisepublic void setSMARTS(java.lang.String s) throws java.lang.SecurityException
SmartsAtomQuerifier.setSMARTS(MolAtom atom, String s)
s
- the SMARTS string
java.lang.SecurityException
- the SmilesImport cannot be loaded,
possibly because of a misconfigured firewallpublic java.lang.String getQuerystr()
getQueryString()
public void setQuerystr(java.lang.String s)
SmartsAtomQuerifier.setQuerystr(MolAtom atom, String s)
and setQueryString(String)
s
- the query stringpublic void setQuerystr(java.lang.String s, int options)
SmartsAtomQuerifier.setQuerystr(MolAtom atom, String s, int options)
and setQueryString(String)
In daylight smarts H is only considered as H atom when the atom expression has the syntax [<mass>H<charge><map>] (mass, charge and map are optional). If options is SMARTS_H_MARVIN_COMP_MODE and "H" is not in the form [<mass>H<charge><map>] then it may be interpreted as Hydrogen atom, not total H count! It is neccesary for backward compatibility.
s
- the query stringoptions
- Possible values: SMARTS_H_MARVIN_COMP_MODE or
SMARTS_H_DAYLIGHT_COMP_MODE. Instead of using this option, we
recommend using unambiguous smarts queries: #1 for H atom and
H1 for H count 1.SMARTS_H_DAYLIGHT_COMP_MODE
,
SMARTS_H_MARVIN_COMP_MODE
public void setQueryString(java.lang.String queryString)
queryString
- the query properties string to be assigned.getQueryString()
public java.lang.String getQueryString()
setQueryString(String)
public void setAliasstr(java.lang.String s)
s
- the aliasisPseudo()
public java.lang.String getAliasstr()
isPseudo()
public void setExtraLabel(java.lang.String s)
s
- the atom labelpublic void setExtraLabelColor(long rgbs)
rgbs
- the color(s)setExtraLabel(String)
,
setExtraLabelColor(int, int)
public void setExtraLabelColor(int rgb1, int rgb2)
rgb1
- the lower 32 bitsrgb2
- the upper 32 bitssetExtraLabel(String)
,
setExtraLabelColor(long)
public java.lang.String getExtraLabel()
public long getExtraLabelColor()
public int getExtraLabelColor(int i)
i
- is the result index (0 or 1)
public static int getExtraLabelColor(long rgbs, int i)
rgbs
- the composed color valuei
- is the result index (0 for first color, 1 for second color)
getExtraLabelColor()
public void clearExtraLabel()
public int[] getList()
public void setList(int[] l, int n)
l
- the listn
- number of elements to setpublic void setList(int[] l)
l
- the listpublic int getReactionStereo()
RXNSTEREO_NONE
,
RXNSTEREO_INVERSION
,
RXNSTEREO_RETENTION
public void setReactionStereo(int r)
r
- the reaction stereo propertyRXNSTEREO_NONE
,
RXNSTEREO_INVERSION
,
RXNSTEREO_RETENTION
public void clear()
public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String toString()
@
', and the unsigned
hexadecimal representation of the hash code of the object.
toString
in class java.lang.Object
public boolean insideLabel(double x, double y)
x
- the x coordinatey
- the y coordinate
true
if inside, false
if outsidepublic static int getAtomicNumber(java.lang.String element)
PeriodicSystem.findAtomicNumber(String)
.
element
- the element name
java.lang.IllegalArgumentException
- if element
does not correspond to a chemical element.public static int numOf(java.lang.String e)
getAtomicNumber(String)
.
e
- the element name
public static java.lang.String symbolOf(int z)
z
- the atomic number
public static java.lang.String symbolOf(int z, int a)
z
- the atomic numbera
- the mass number
public static java.lang.String nameOf(int z)
z
- the atomic number
public static int electronegOf(int z)
z
- the atomic number
public static int numoxstatesOf(int z)
z
- the atomic number
public static int oxstateOf(int z, int k)
z
- the atomic numberk
- the oxidation state index
public static int maxAbsOxStateOf(int z)
z
- the atomic number
public static int negOxOf(int z)
z
- the atomic number
public static int posOxOf(int z)
z
- the atomic number
public static int ionChargeOf(int z)
z
- the atomic number
public static double covalentRadiusOf(int z, int t)
z
- the atomic numbert
- the bond type (1, 2, 3)
public static double naturalWeightOf(int z)
z
- the atomic number
public static int isotopeType(int z, int a)
z
- atomic numbera
- mass number
public int twicesumbonds(boolean countH, boolean all2)
AROMATIC
in most cases.
2 for AROMATIC
for the following atoms:
ANY
and
SINGLE_OR_AROMATIC
,
3 for SINGLE_OR_DOUBLE
,
4 for DOUBLE_OR_AROMATIC
.
countH
- bonds to explicit hydrogen atoms are counted if
true
, not counted if false
all2
- use the value 2 for each bond (independently of type)
if true
public void qpropCheck()
public void valenceCheck()
hasValenceError()
,
getImplicitHcount()
,
MoleculeGraph.getValenceCheckState()
,
MoleculeGraph.setValenceCheckState(chemaxon.struc.MoleculeGraph.ValenceCheckState)
public void valenceCheck(int opts)
valenceCheck()
.
opts
- valence checking optionspublic void setCorners(double xnw, double ynw, double xse, double yse)
xnw
- north-west corner xynw
- north-west corner yxse
- south-east corner xyse
- south-east corner ypublic void moveCorners(double diffx, double diffy)
diffx
- translates the x values of the corners by this value.diffy
- translates the y values of the corners by this value.public int getFlags()
StereoConstants.PARITY_MASK
,
StereoConstants.CHIRALITY_MASK
,
StereoConstants.ATOMSTEREO_MASK
public void setFlags(int f)
f
- new flagspublic void setFlags(int f, int mask)
f
- new flagsmask
- bits to set in flagspublic boolean isSelected()
true
if selected, false
otherwisepublic void setSelected(boolean sel)
sel
- true to select, false to unselectpublic boolean hasValenceError()
valenceCheck()
public void setValenceError(boolean v)
v
- true to set, false to unsetpublic boolean getStereoCare()
MolBond.getFlags()
,
MolBond.setFlags(int)
public int getStereoGroupType()
StereoConstants.STGRP_NONE
,
StereoConstants.STGRP_ABS
,
StereoConstants.STGRP_OR
,
StereoConstants.STGRP_AND
,
getStereoGroupType()
,
Enhanced Stereo section of the JChem Query Guidepublic void setStereoGroupType(int t)
t
- the stereochemical group typegetStereoGroupType()
,
StereoConstants.STGRP_NONE
,
StereoConstants.STGRP_ABS
,
StereoConstants.STGRP_OR
,
StereoConstants.STGRP_AND
,
getStereoGroupType()
,
Enhanced Stereo section of the JChem Query Guidepublic int getStereoGroupNumber()
getStereoGroupType()
,
StereoConstants.STGRP_OR
,
StereoConstants.STGRP_AND
,
Enhanced Stereo section of the JChem Query Guidepublic void setStereoGroupNumber(int n)
n
- the stereochemical group number (positive integer)getStereoGroupNumber()
,
getStereoGroupType()
,
StereoConstants.STGRP_OR
,
StereoConstants.STGRP_AND
,
Enhanced Stereo section of the JChem Query Guidepublic boolean isSpecIsotopeSymbolUsed()
public boolean isSpecIsotopeSymbolPreferred()
public void setSpecIsotopeSymbolPreferred(boolean v)
v
- true if special symbol is used, false otherwiseprotected boolean add(MolBond b)
b
- the bond to addpublic void pack()
protected void removeAllBonds()
protected void removeBond(MolBond bond)
bond
- bond reference to removeprotected void removeBond(int i)
i
- bond indexpublic static int paritySign(int a, int b, int c, int d)
a
- first atom indexb
- second atom indexc
- third atom indexd
- fourth atom index
public static boolean isSameParityClass(int i1, int i2, int i3, int i4, int j1, int j2, int j3, int j4)
paritySign(int, int, int, int)
public boolean isTerminalAtom()
public boolean haveEqualProperties(MolAtom a)
true
if they have the same properties,
false
otherwiseprotected int countAllAtoms()
public int getLonePairCount()
public int getElectronProp()
public void setElectronProp(int eProp)
eProp
- the number of lone pairspublic void storeTemporaryObject(java.lang.String key, java.lang.Object val)
key
- key to the objectval
- the objectpublic java.lang.Object getTemporaryObject(java.lang.String key)
key
- key to the object
public void setLinkNodeDefaultOuters()
setLinkNodeOuterAtom(int, int)
,
MoleculeGraph.setLinkNodeDefaultOuters(MolAtom)
public boolean isAmbiguousStereo()
MolBond.UP
,
MolBond.DOWN
,
MolBond.STEREO1_MASK
public static final boolean isAromaticSMILESSubset(int atno)
atno
- atomic number
public final int getEdgeCount()
getBondCount()
.
public final MolBond getEdge(int i)
getBond(int)
.
public final MolBond getEdgeTo(MolAtom other)
getBondTo(MolAtom)
.
public boolean haveSimilarEdges(MolAtom a)
haveSimilarBonds(MolAtom)
.
public java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>> propertySet()
public java.util.Set<java.lang.String> propertyKeySet()
public boolean containsPropertyKey(java.lang.String key)
key
- the property key which is to be searched for.
public java.lang.Object removeProperty(java.lang.String key)
key
- property key whose mapping is to be removed from the atom.
public int propertyCount()
public java.lang.Object getProperty(java.lang.String key)
key
- the property key whose associated property value is to be
returned.
public void putProperty(java.lang.String key, java.lang.Object value)
key
- property key with which the specified value is to be
associatedvalue
- property value to be associated with the specified property
key.public void clearProperties()
public void setRgroupAttachmentPointOrder(int order)
order
- the attachment point order to setRGROUP_ATTACHMENT
,
getRgroupAttachmentPointOrder()
public int getRgroupAttachmentPointOrder()
RGROUP_ATTACHMENT
,
setRgroupAttachmentPointOrder(int order)
public MolAtom addRgroupAttachmentPoint(int order, int bondtype)
order
- the order of the R-group attachment point, order should be greater than 0.bondtype
- the type of the new bond to add
RGROUP_ATTACHMENT
,
setRgroupAttachmentPointOrder(int order)
public int getLigandOrder(MolAtom ligand)
ligand
- the ligand
public boolean setLigandOrder(int order, MolAtom ligand)
order
- the order to set, order should be greater than 0.ligand
- the ligand to set the order on
public chemaxon.struc.BicycloStereoDescriptor[] getBicycloStereo()
public void setBicycloStereo(chemaxon.struc.BicycloStereoDescriptor[] descriptors)
descriptors
- the array of bicyclo stereo descriptorspublic void setImplicitHBasedOnValence(chemaxon.core.calculations.valencecheck.Valence v)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |