|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jniinchi.JniInchiAtom
public class JniInchiAtom
Encapsulates properties of InChI Atom. See inchi_api.h.
Field Summary | |
---|---|
protected static int |
ISOTOPIC_SHIFT_FLAG
Indicates relative rather than absolute isotopic mass. |
Constructor Summary | |
---|---|
JniInchiAtom(double x,
double y,
double z,
String el)
Create new atom. |
|
JniInchiAtom(String el)
Convenience method to create a new atom with zero coordinates. |
Method Summary | |
---|---|
void |
debug()
Outputs information on atom, for debugging purposes. |
int |
getCharge()
Returns charge on atom. |
String |
getDebugString()
Generates string representation of information on atom, for debugging purposes. |
String |
getElementType()
Returns chemical element symbol of atom. |
int |
getImplicitDeuterium()
Returns number of implicit deuteriums (2H) on atom. |
int |
getImplicitH()
Returns number of implicit hydrogens on atom. |
int |
getImplicitProtium()
Returns number of implicit protiums (1H) on atom. |
int |
getImplicitTritium()
Returns number of implicit tritiums (3H) on atom. |
int |
getIsotopicMass()
Returns isotopic mass of atom. |
INCHI_RADICAL |
getRadical()
Returns radical state of atom. |
double |
getX()
Returns atom's X-coordinate. |
double |
getY()
Returns atom's Y-coordinate. |
double |
getZ()
Returns atom's Z-coordinate. |
void |
setCharge(int charge)
Sets charge on atom. |
void |
setImplicitDeuterium(int n)
Sets number of implicit deuterium (2H) on atom. |
void |
setImplicitH(int n)
Sets number of implicit hydrogens on atom. |
void |
setImplicitProtium(int n)
Sets number of implicit protium (1H) on atom. |
void |
setImplicitTritium(int n)
Sets number of implicit tritium (3H) on atom. |
void |
setIsotopicMass(int mass)
Sets isotopic mass. |
void |
setIsotopicMassShift(int shift)
Sets isotopic mass, relative to standard mass. |
void |
setRadical(INCHI_RADICAL radical)
Sets radical status of atom. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final int ISOTOPIC_SHIFT_FLAG
Constructor Detail |
---|
public JniInchiAtom(double x, double y, double z, String el)
Create new atom.
Coordinates and element symbol must be set (unknown coordinates/dimensions should be set to zero). All other parameters are initialised to default values:
Num Implicit H = 0
Num Implicit 1H = 0
Num Implicit 2H = 0
Num Implicit 3H = 0
Isotopic mass = 0 (non isotopic)
Radical status = NONE (radical status not defined)
x
- x-coordinatey
- y-coordinatez
- z-coordinateel
- Chemical element symbol
NullPointerException
- - if the element symbol is null.public JniInchiAtom(String el)
el
- Method Detail |
---|
public void setCharge(int charge)
charge
- public void setRadical(INCHI_RADICAL radical)
radical
- public void setIsotopicMass(int mass)
mass
- Isotopic masspublic void setIsotopicMassShift(int shift)
shift
- Isotopic mass minus average atomic masspublic void setImplicitH(int n)
n
- Number of implicit hydrogenpublic void setImplicitProtium(int n)
n
- Number of implicit protiumpublic void setImplicitDeuterium(int n)
n
- Number of implicit deuteriumpublic void setImplicitTritium(int n)
n
- Number of implicit tritiumpublic String getElementType()
public int getCharge()
public INCHI_RADICAL getRadical()
public double getX()
public double getY()
public double getZ()
public int getImplicitH()
public int getImplicitProtium()
public int getImplicitDeuterium()
public int getImplicitTritium()
public int getIsotopicMass()
public String getDebugString()
public void debug()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |