|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Smolecule
Array-based abstract molecule class.
PLEASE DO NOT IMPLEMENT THIS INTERFACE! It may get more abstract methods in later versions.
| Field Summary | |
|---|---|
static int |
A_ALL
Use all atom and bond property arrays. |
static int |
A_ASTEREO
Use atom stereo properties arrays, equals . |
static int |
A_ATOMMAP
Use atom type array. |
static int |
A_BOND
Use arrays to store bonds. |
static int |
A_CHARGE
Use charge array. |
static int |
A_CHIRALITY
Chirality. |
static int |
A_EXPLH
Use explicit Hydrogen count array. |
static int |
A_HYBRIDIZATION
Use hybridization state array. |
static int |
A_IMPLH
Use implicit Hydrogen count array. |
static int |
A_MASSNO
Use mass number array. |
static int |
A_PARITY
Atom parity. |
static int |
A_RADICAL
Use radical array. |
static int |
A_RGROUP
Use R-group ID array. |
static int |
A_VALENCE
Use valence array. |
static int |
RGROUP_MAX
Maximum R-group index (32767). |
| Method Summary | |
|---|---|
boolean |
areNeighbors(int atom1,
int atom2)
Tests whether two atoms are connected. |
chemaxon.struc.Gearch |
gearch()
Gets graph search algorithms. |
int |
getArrayFlags()
Gets info about the used arrays. |
int |
getAtom1(int i)
Gets the index of the first atom of the specified bond. |
int |
getAtom2(int i)
Gets the index of the second atom of the specified bond. |
int |
getAtomMap(int atom)
Gets the atom-atom mapping number. |
int |
getAtomStereo(int atom)
Gets atom stereo properties as an integer. |
int |
getAtomType(int atom)
Gets the type of an atom. |
int |
getBondFlags(int i)
Gets the bond descriptor flags. |
int |
getBondIndex(int atom1,
int atom2)
Gets the index of the bond between the specified atoms. |
int |
getBondType(int i)
Gets the type of a bond. |
int |
getBondType(int atom1,
int atom2)
Gets the type of a bond between the two specified atoms. |
int |
getCharge(int atom)
Gets the charge of an ion. |
int |
getChirality(int atom)
Gets the chirality of an atom. |
int |
getExplicitHcount(int atom)
Gets the number of explicit hydrogen atom neighbors of the given atom. |
int |
getHcount(int atom)
Gets the total number of hydrogens of an atom. |
int |
getHybridizationState(int atom)
Gets the hybridization state of an atom. |
int |
getImplicitHcount()
Gets the total number of implicit Hydrogens. |
int |
getImplicitHcount(int atom)
Gets the number of implicit Hydrogens of an atom. |
int |
getMassno(int atom)
Gets the mass number of an atom. |
int |
getNeighbor(int atom,
int i)
Gets the index of a neighbor of an atom. |
int |
getNeighborCount(int atom)
Gets the number of neighbors of an atom. |
int |
getParity(int atom)
Gets the parity of an atom. |
int |
getQPropAsInt(int atom,
java.lang.String name)
Gets a query property as an integer. |
int |
getRadical(int atom)
Gets the radical value of an atom. |
int |
getRgroupId(int atom)
Gets the R-group identifier of an atom. |
int |
getValence(int atom)
Gets the valence. |
boolean |
inAtomList(int atom,
int atno)
Tests whether the specified element is in the atom list. |
| Methods inherited from interface chemaxon.struc.Incomplecule |
|---|
getAtomCount, getBondCount, getName, properties |
| Field Detail |
|---|
static final int A_BOND
static final int A_CHARGE
static final int A_RADICAL
static final int A_HYBRIDIZATION
static final int A_MASSNO
static final int A_IMPLH
static final int A_EXPLH
static final int A_VALENCE
static final int A_ATOMMAP
static final int A_RGROUP
static final int A_PARITY
A_ASTEREO,
Constant Field Valuesstatic final int A_CHIRALITY
A_ASTEREO,
Constant Field Valuesstatic final int A_ASTEREO
A_PARITY|A_CHIRALITY.
static final int A_ALL
static final int RGROUP_MAX
getRgroupId(int),
Constant Field Values| Method Detail |
|---|
int getArrayFlags()
int getAtomType(int atom)
atom - the atom index
int getCharge(int atom)
atom - the atom index
A_CHARGEint getRadical(int atom)
atom - the atom index
A_RADICALint getMassno(int atom)
atom - the atom index
A_MASSNOint getHybridizationState(int atom)
atom - the atom index
HybridizationStateConsts,
A_HYBRIDIZATION
int getQPropAsInt(int atom,
java.lang.String name)
atom - the atom indexname - the property name
boolean inAtomList(int atom,
int atno)
atom - the atom indexatno - the atomic number of the element to check
true if the atom list contains the element,
false otherwiseint getImplicitHcount(int atom)
atom - the atom index
A_IMPLHint getImplicitHcount()
A_IMPLHint getExplicitHcount(int atom)
atom - the atom index
A_EXPLHint getHcount(int atom)
getImplicitHcount(atom)|getExplicitHcount(atom)
atom - the atom index
int getValence(int atom)
atom - the atom index
A_VALENCEint getAtomMap(int atom)
atom - the atom index
A_ATOMMAPint getRgroupId(int atom)
atom - the atom index
RGROUP_MAX)
or 0 for normal atomsA_RGROUPint getParity(int atom)
atom - the atom index
A_PARITY,
StereoConstants.PARITY_ODD,
StereoConstants.PARITY_EVEN,
StereoConstants.PARITY_UNSPEC,
StereoConstants.PARITY_EITHERint getChirality(int atom)
atom - the atom index
A_CHIRALITY,
StereoConstants.CHIRALITY_R,
StereoConstants.CHIRALITY_Sint getAtomStereo(int atom)
getParity(atom)|getChirality(atom)A_ASTEREOint getNeighborCount(int atom)
atom - the atom index
A_BOND
int getNeighbor(int atom,
int i)
atom - the atom indexi - the neighbor index
A_BOND
boolean areNeighbors(int atom1,
int atom2)
atom1 - first atom indexatom2 - second atom index
true if they are connected,
false otherwiseA_BONDint getAtom1(int i)
i - the bond index
A_BONDint getAtom2(int i)
i - the bond index
A_BONDchemaxon.struc.Gearch gearch()
int getBondIndex(int atom1,
int atom2)
atom1 - first atom indexatom2 - second atom index
A_BONDint getBondType(int i)
i - the bond index
A_BOND,
MolBond.ANY,
MolBond.AROMATIC,
MolBond.SINGLE_OR_DOUBLE,
MolBond.SINGLE_OR_AROMATIC,
MolBond.DOUBLE_OR_AROMATIC,
MolBond.CONJUGATED,
MolBond.COORDINATE
int getBondType(int atom1,
int atom2)
atom1 - first atom indexatom2 - second atom index
A_BOND,
MolBond.ANY,
MolBond.AROMATIC,
MolBond.SINGLE_OR_DOUBLE,
MolBond.SINGLE_OR_AROMATIC,
MolBond.DOUBLE_OR_AROMATIC,
MolBond.CONJUGATED,
MolBond.COORDINATEint getBondFlags(int i)
i - the bond index
getBondType(i) | stereo1 | stereo2 | topology | reacting_centerA_BOND
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||