public class MolAtom extends Object implements StereoConstants, Serializable
Modifier and Type | Field and Description |
---|---|
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 |
ATTACH_UNKNOWN
S-group attachment point information
|
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.
As of Marvin 5.11
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 |
HBONDED_H
Hydrogen atom wtih a
MolBond.HYDROGEN bond on it. |
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.
|
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 and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
MolAtom |
clone()
Clones the atom.
|
boolean |
containsPropertyKey(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(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.
|
boolean |
equals(Object other)
Two
MolAtom s are equal if they are the same reference. |
String |
getAliasstr()
Gets the alias string or pseudo atom type string for pseudo atoms.
|
int |
getAtno()
Gets the atomic number.
|
static int |
getAtomicNumber(String element)
Deprecated.
As of Marvin 5.9, replaced by a similar method
PeriodicSystem.findAtomicNumber(String) .The recommended method does not work for symbol not representing a chemical element (e.g. R-atom, any atom), as this method should not have worked on them either. |
int |
getAtomMap()
Gets the atom-atom mapping number.
|
String |
getAtomSymbol(int opts,
int aflags,
int[] lcenter,
CTransform3D preTransform)
Gets the string representation of the atom symbol.
|
int |
getAttach()
Deprecated.
as of Marvin 6.0 replaced by
SuperatomSgroup.getAttachmentPointOrders(MolAtom) . If the atom takes place in a Superatom S-group then it's attachment point orders can be reached through the Superatom S-group. |
int |
getAttachFromExtraAtomProp()
Gets the attachment information stored in the extra atom properties
|
Sgroup |
getAttachParentSgroup()
Gets the smallest containing sgroup which can have
the attachment point information of this atom.
|
chemaxon.struc.BicycloStereoDescriptor[] |
getBicycloStereo()
Gets the previously stored bicyclo stereo information of this atom.
|
MolBond |
getBond(int i)
Gets the i-th bond.
|
MolBond[] |
getBondArray()
Gets the bonds connected to this atom.
|
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.
|
int |
getElectronProp()
Returns the number of lone pairs on this atom.
|
int |
getExplicitHcount()
Gets number of hydrogen connections.
|
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.
|
int |
getImplicitHCount(boolean runVCIfNeeded)
Gets the implicit Hydrogen count of the atom.
|
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 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.
|
Object |
getProperty(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.
|
Object |
getQProp(String name)
Gets a query property.
|
int |
getQPropAsInt(String name)
Gets a query property as an integer.
|
int[] |
getQPropMinMax(String name)
Gets the minimum and maximum possible values of a query property.
|
String[] |
getQPropNames()
Gets the names of query properties with non-null values.
|
Set<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.
|
String |
getQueryLabel()
Gets the string representation of the query atom
|
String |
getQuerystr()
Deprecated.
As of release 5.7, replaced by
getQueryString() |
String |
getQueryString()
Returns s the query string assigned to this atom.
|
int |
getRadical()
Deprecated.
as of Marvin 6.2. use
getRadicalValue() instead |
int |
getRadicalCount()
Gets the number of free electrons.
|
AtomProperty.Radical |
getRadicalValue()
Gets the
AtomProperty.Radical enum value that represents the radical of the
atom. |
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.
|
String |
getSymbol()
Gets the element symbol.
|
Object |
getTemporaryObject(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.
|
int |
hashCode()
Returns the hash code of the atom.
|
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(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.
|
int |
incQProp(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.
|
protected int |
indexOfReferenced(MolBond bond)
Returns the index of the referenced bond in this atom.
|
protected void |
insertBond(int i,
MolBond bond)
Inserts a bond at a specified index.
|
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 |
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.
|
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 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(String e)
Deprecated.
As of Marvin 5.9, replaced by a similar method
PeriodicSystem.findAtomicNumber(String) . The recommended method does not work for symbol that does not represent a chemical element (e.g. R-atom, any atom), as this method should not have worked on them either. |
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.
|
Set<String> |
propertyKeySet()
Returns a set view of the property keys of this atom.
|
Set<Map.Entry<String,Object>> |
propertySet()
Returns a collection view of the properties (property key - property
value mappings) of this atom.
|
void |
putProperty(String key,
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 |
removeAllBonds(boolean clearFromAttachmentPoints)
Removes all bonds.
|
protected void |
removeBond(int i)
Removes a bond.
|
protected void |
removeBond(int i,
boolean clearFromAttachmentPoints)
Removes a bond.
|
protected void |
removeBond(MolBond bond)
Removes a bond by reference.
|
protected void |
removeBond(MolBond bond,
boolean clearFromAttachmentPoints)
Removes a bond by reference.
|
Object |
removeProperty(String key)
Removes the mapping for this property key from this atom if present.
|
static String |
residueSymbolOf(int id)
Gets the name of a residue.
|
static int |
residueTypeOf(String name)
Gets the residue identifier for a residue name.
|
void |
set(MolAtom atom)
Set all atom properties except the coordinates.
|
void |
setAliasstr(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)
Deprecated.
as of Marvin 6.0, replaced by
SuperatomSgroup.addAttachmentPoint(MolAtom) , or
SuperatomSgroup.addAttachmentPoint(MolAtom, int) . |
void |
setAttach(int newOrder,
Sgroup sg)
Deprecated.
as of Marvin 6.0, replaced by
SuperatomSgroup.addAttachmentPoint(MolAtom) , or
SuperatomSgroup.addAttachmentPoint(MolAtom, int) . |
void |
setAttachParentSgroup(Sgroup sgroup)
Sets the attach parent s-group information to the extra atom properties
|
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(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(String sym)
Deprecated.
as of Marvin 6.3. use
setSpecIsotopeSymbolPreferred(boolean) and
setMassno(int) instead. |
void |
setHybridizationState(int h)
Sets the hybridization state.
|
void |
setImplicitHBasedOnValence(chemaxon.core.calculations.valencecheck.Valence v)
Deprecated.
as of Marvin 6.0.1, exists only for internal usage
Usage: Internal usage only. |
void |
setImplicitHcount(int h)
Sets the number of implicit hydrogens.
|
protected void |
setIsValenceCheckNeeded(boolean isValenceCheckNeeded)
Sets the boolean value if
isValenceCheckNeeded . |
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 |
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(String name,
int v)
Sets a query property as an integer.
|
void |
setQProp(String name,
Object v)
Sets a query property.
|
void |
setQueryAromaticity(int x)
Sets the aromatic/aliphatic query property.
|
void |
setQuerystr(String s)
Deprecated.
As of release 5.7, replaced by
SmartsAtomQuerifier.setQuerystr(MolAtom atom, String s)
and setQueryString(String) . |
void |
setQuerystr(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(String queryString)
Assigns the query string to this atom.
|
void |
setRadical(int r)
Deprecated.
as of Marvin 6.2. Use
setRadicalValue(AtomProperty.Radical) instead. |
void |
setRadicalValue(AtomProperty.Radical radical)
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(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(String key,
Object val)
Stores an object temporarily.
|
static String |
symbolOf(int z)
Gets the element symbol for the specified atomic number.
|
static String |
symbolOf(int z,
int a)
Gets the special element symbol for the specified atomic and mass
numbers.
|
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.
|
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 Values@Deprecated public 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 HBONDED_H
MolBond.HYDROGEN
bond on it.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 ATTACH_UNKNOWN
public 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
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)
public final MoleculeGraph getParent()
public int indexOf(MolBond bond)
bond
- bond referenceObject.equals(Object)
protected final int indexOfReferenced(MolBond bond)
bond
- public final MolAtom[] getLigands()
getLigand(int)
public final MolAtom getLigand(int i)
i
- bond indexpublic final int getLigandIndex(MolAtom atom)
atom
- the other atomgetLigand(int)
public final MolBond getBondTo(MolAtom other)
other
- the other atomisBoundTo(MolAtom)
public final boolean isBoundTo(MolAtom other)
other
- the other atomtrue
if the two atomss are connected with a bond,
false
otherwisegetBondTo(MolAtom)
public final int sringsize()
protected final 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 indexpublic 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 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 numberATOM_TYPE_COUNT
public int getMassno()
public void setMassno(int a)
a
- the mass number or zero@Deprecated public void setForSpecIsotopeSymbol(String sym)
setSpecIsotopeSymbolPreferred(boolean)
and
setMassno(int)
instead.sym
- the atom symbolpublic double getMass()
public boolean isMappable()
true
if map index can be assigned to the atom
false
if atom is a lone pairpublic int getRelativeNegativity()
protected void setIsValenceCheckNeeded(boolean isValenceCheckNeeded)
isValenceCheckNeeded
.public int getImplicitHCount(boolean runVCIfNeeded)
runVCIfNeeded
- public int getImplicitHcount()
valenceCheck()
before this method or call
getImplicitHCount(boolean)
instead. The result is always a
non-negative number.valenceCheck()
public void setImplicitHcount(int h)
h
- the number of implicit hydrogensIllegalArgumentException
- 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)@Deprecated public int getRadical()
getRadicalValue()
insteadRAD1
,
RAD2
,
RAD2_SINGLET
,
RAD2_TRIPLET
,
RAD3
,
RAD3_DOUBLET
,
RAD3_QUARTET
,
RAD4
public AtomProperty.Radical getRadicalValue()
AtomProperty.Radical
enum value that represents the radical of the
atom.@Deprecated public void setRadical(int r)
setRadicalValue(AtomProperty.Radical)
instead.r
- the radical valueRAD1
,
RAD2
,
RAD2_SINGLET
,
RAD2_TRIPLET
,
RAD3
,
RAD3_DOUBLET
,
RAD3_QUARTET
,
RAD4
public void setRadicalValue(AtomProperty.Radical radical)
radical
- the new radicalAtomProperty.Radical
public int getRadicalCount()
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 Object getQProp(String name)
getQueryAromaticity()
instead
name
- the property namepublic int getQPropAsInt(String name)
getQueryAromaticity()
instead
name
- the property namegetQProp(java.lang.String)
public int[] getQPropMinMax(String name)
name
- the query property abbreviationpublic int incQProp(String name)
name
- the query property abbreviationpublic int decQProp(String name)
name
- the query property abbreviationpublic void setQProp(String name, Object v)
getQueryAromaticity()
instead
name
- the property namev
- the valuegetQProp(java.lang.String)
public void setQProp(String name, int v)
getQueryAromaticity()
instead
name
- the property namev
- the value or -1public void clearQProps()
public String[] getQPropNames()
public Set<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
@Deprecated public int getAttach()
SuperatomSgroup.getAttachmentPointOrders(MolAtom)
. ATTACH_NONE
(not an S-group attachment point),
ATTACH1
(first), ATTACH2
(second),
ATTACH_BOTH
(both), or ATTACH_UNKNOWN
if the
attachment information can not be specified. This last one
basicly happens when the atom takes place in a newly built
SuperatomSgroup and has more than two attachment points.public int getAttachFromExtraAtomProp()
@Deprecated public void setAttach(int a)
SuperatomSgroup.addAttachmentPoint(MolAtom)
, or
SuperatomSgroup.addAttachmentPoint(MolAtom, int)
.a
- ATTACH_NONE
(not an S-group attachment point),
ATTACH1
(first), ATTACH2
(second) or
ATTACH_BOTH
(both)@Deprecated public void setAttach(int newOrder, Sgroup sg)
SuperatomSgroup.addAttachmentPoint(MolAtom)
, or
SuperatomSgroup.addAttachmentPoint(MolAtom, int)
.newOrder
- ATTACH_NONE
(not an S-group attachment point), ATTACH1
(first),
ATTACH2
(second) or ATTACH_BOTH
(both)sg
- the parent S-group or nullpublic void setAttachParentSgroup(Sgroup sgroup)
sgroup
- public Sgroup getAttachParentSgroup()
null
if the atom is not in an sgrouppublic 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(String name)
name
- residue namepublic static String residueSymbolOf(int id)
id
- the residue identifierpublic 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 void bondweights(double[] w, CTransform3D t)
w
- 3-element array that will contain the resulting vectort
- the rotation matrixpublic 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 otherwiseSYM_SQBRACKETS
,
SYM_IMPLH
,
SYM_EXPLH
,
SYM_NEUTRAL
,
SYM_SMARTS
,
SYM_MOLEX
public String getQueryLabel()
public int getPreferredLabelDir(CTransform3D pretr, int h)
pretr
- viewing transformationh
- hydrogen count for hydrogen label display, 0 otherwiseLDIR_RIGHT
, LDIR_LEFT
, LDIR_ABOVE
or LDIR_BELOW
public final boolean isQuery()
public boolean isQProp()
true
if it is a query property,
false
otherwisepublic boolean isImplicitizableH(int f)
f
- flags specifying special H atom types to includetrue
if the hydrogen is implicitizable,
false
otherwiseLONELY_H
,
ISOTOPE_H
,
CHARGED_H
,
RADICAL_H
,
MAPPED_H
,
WEDGED_H
,
HCONNECTED_H
,
HBONDED_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
otherwise@Deprecated public final boolean hasSMARTSProps()
SmartsAtomQuerifier.hasSMARTSProps(MolAtom atom)
true
if it has SMARTS properties, false
otherwise@Deprecated public final boolean hasSMARTSPropsExcluding(String exclude)
SmartsAtomQuerifier.hasSMARTSPropsExcluding(MolAtom atom, String exclude)
exclude
- list of SMARTS properties to excludetrue
if it has SMARTS properties,
false
otherwise@Deprecated public void setSMARTS(String s) throws SecurityException
SmartsAtomQuerifier.setSMARTS(MolAtom atom, String s)
s
- the SMARTS stringSecurityException
- the SmilesImport cannot be loaded, possibly because of a
misconfigured firewall@Deprecated public String getQuerystr()
getQueryString()
@Deprecated public void setQuerystr(String s)
SmartsAtomQuerifier.setQuerystr(MolAtom atom, String s)
and setQueryString(String)
.s
- the query string@Deprecated public void setQuerystr(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(String queryString)
queryString
- the query properties string to be assigned.getQueryString()
public String getQueryString()
setQueryString(String)
public void setAliasstr(String s)
s
- the aliasisPseudo()
public String getAliasstr()
isPseudo()
public void setExtraLabel(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 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 MolAtom clone()
public String toString()
@
', and the unsigned
hexadecimal representation of the hash code of the object.public boolean insideLabel(double x, double y)
x
- the x coordinatey
- the y coordinatetrue
if inside, false
if outside@Deprecated public static int numOf(String e)
PeriodicSystem.findAtomicNumber(String)
. e
- the element name@Deprecated public static int getAtomicNumber(String element)
PeriodicSystem.findAtomicNumber(String)
.element
- the element nameIllegalArgumentException
- if element
does not correspond to a chemical
element.public static String symbolOf(int z)
z
- the atomic numberpublic static String symbolOf(int z, int a)
z
- the atomic numbera
- the mass numberpublic static String nameOf(int z)
z
- the atomic numberpublic static int electronegOf(int z)
z
- the atomic numberpublic static int numoxstatesOf(int z)
z
- the atomic numberpublic static int oxstateOf(int z, int k)
z
- the atomic numberk
- the oxidation state indexpublic static int maxAbsOxStateOf(int z)
z
- the atomic numberpublic static int negOxOf(int z)
z
- the atomic numberpublic static int posOxOf(int z)
z
- the atomic numberpublic static int ionChargeOf(int z)
z
- the atomic numberpublic 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 numberpublic static int isotopeType(int z, int a)
z
- atomic numbera
- mass numberpublic 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()
public 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 addtrue
if valence check neededpublic void pack()
protected void removeAllBonds()
protected void removeAllBonds(boolean clearFromAttachmentPoints)
protected void removeBond(MolBond bond)
bond
- bond reference to removeprotected void removeBond(MolBond bond, boolean clearFromAttachmentPoints)
bond
- bond reference to removeprotected void removeBond(int i)
i
- bond indexprotected void removeBond(int i, boolean clearFromAttachmentPoints)
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 indexpublic 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(String key, Object val)
key
- key to the objectval
- the objectpublic Object getTemporaryObject(String key)
key
- key to the objectpublic 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 numberpublic Set<Map.Entry<String,Object>> propertySet()
public Set<String> propertyKeySet()
public boolean containsPropertyKey(String key)
key
- the property key which is to be searched for.public Object removeProperty(String key)
key
- property key whose mapping is to be removed from the atom.public int propertyCount()
public Object getProperty(String key)
key
- the property key whose associated property value is to be
returned.public void putProperty(String key, 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 addRGROUP_ATTACHMENT
,
setRgroupAttachmentPointOrder(int order)
protected void insertBond(int i, MolBond bond)
i
- the index where to insert the bondbond
- the bond reference to insertpublic int getLigandOrder(MolAtom ligand)
ligand
- the ligandpublic boolean setLigandOrder(int order, MolAtom ligand)
order
- the order to set, order should be greater than 0.ligand
- the ligand to set the order onpublic chemaxon.struc.BicycloStereoDescriptor[] getBicycloStereo()
public void setBicycloStereo(chemaxon.struc.BicycloStereoDescriptor[] descriptors)
descriptors
- the array of bicyclo stereo descriptors@Deprecated public void setImplicitHBasedOnValence(chemaxon.core.calculations.valencecheck.Valence v)
Internal usage only.
v
- public MolBond[] getBondArray()
public int hashCode()