|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.torque.om.BaseObject
org.openscience.nmrshiftdb.om.BaseDBAtom
org.openscience.nmrshiftdb.om.DBAtom
public class DBAtom
You should add additional methods to this class to meet the application requirements. This class will only be generated as long as it does not already exist in the output directory.
Field Summary | |
---|---|
(package private) DBCoordinateSet2d |
coords2
|
(package private) DBCoordinateSet3d |
coords3
|
private java.util.Vector |
couplings
|
boolean |
force3d
|
Fields inherited from class org.openscience.nmrshiftdb.om.BaseDBAtom |
---|
collDBBondDBAtoms, collDBCoordinateSet2ds, collDBCoordinateSet3ds, collDBCouplingsRelatedByAtomId1, collDBCouplingsRelatedByAtomId2, collDBIdentifiers, collDBSignalDBAtoms |
Fields inherited from class org.apache.torque.om.BaseObject |
---|
NEW_ID |
Constructor Summary | |
---|---|
DBAtom()
Constructor for the DBAtom object |
|
DBAtom(org.openscience.cdk.interfaces.IAtom atom,
org.openscience.cdk.interfaces.IAtomContainer ac,
int dbmol,
java.lang.String hoseCode,
java.lang.String hoseCodeWithRings,
boolean visible)
Constructor for the DBAtom object. |
Method Summary | |
---|---|
void |
delete(java.sql.Connection conn)
Deletes this atom. |
DBSignal |
getAnySignal(int spectrumId)
Gets the DBSignal associated with this atom in a certain spectrum. |
org.openscience.cdk.interfaces.IAtom |
getAsCdkAtom()
Gets the asCdkAtom attribute of the DBAtom object |
org.openscience.cdk.interfaces.IAtom |
getAsCdkAtom(SubmittingData subData)
Gets the cdk atom corresponding with this atom int molWithH of a submittingData. |
static java.util.List |
getAtoms(int molid)
Gets the atoms of a certain molecules. |
static java.util.List |
getAtomsWithoutHs(int molid)
Gets the atoms of a certain molecules withouth the Hs. |
java.util.Vector |
getBonds()
Gets the bonds of the DBAtom object |
java.util.Vector |
getConnectedAtoms()
Gets the atoms connected with this atom |
java.util.Vector |
getConnectedAtoms(org.openscience.cdk.interfaces.IMolecule mol,
DBAtom[] dbatoms)
Gets the atoms connected with this atom |
double[] |
getCoordinates(int coordinateSetId)
Gets the coordinates of this atom in a coordinate set with a certain coordinate set id. |
java.util.Vector |
getCouplings(DBSpectrum spectrum)
Gets the couplings of this atom in a certain spectrum. |
java.lang.String |
getCouplingsString(DBSpectrum spectrum)
Gets the couplings of this atom in a certain spectrum.as a string |
java.util.List |
getDBSignals()
Gets the dBSignals attribute of the DBAtom object |
java.util.List |
getDBSignals(char type)
Gets the dBSignals attribute of the DBAtom object. |
java.util.List |
getDBSignals(DBSpectrum spectrum)
Gets the dBSignals attribute of the DBAtom object |
java.util.List |
getDBSignalsBySpectrumType(java.lang.String typname)
|
int |
getHydrogenCount()
Gets the nubmer of hydrogens connected to the DBAtom |
int |
getHydrogenCount(DBAtom[] atoms,
org.openscience.cdk.interfaces.IMolecule cdkmol)
|
java.lang.String |
getIdentifier(DBSpectrum spectrum)
Gets the identifier attribute of the DBAtom object in a certain spectrum. |
java.lang.String |
getIdentifier(int spectrum)
|
int |
getIntegralStuff()
|
int |
getIntegralStuff(DBAtom[] atoms,
org.openscience.cdk.interfaces.IMolecule cdkmol)
|
int |
getMdlNumber()
Gets the mdl number of the Atom. |
int |
getMdlNumberPlus1()
Gets the mdlNumber value + 1 |
int |
getMdlNumberPlus1Heavy()
Gets the mdlNumber value + 1, if atom is a heavy atom of the atom itself, if a hydrogen, of the heavy atom it is attached to. |
java.lang.String |
getMultiplicity(DBSpectrum spectrum)
Gets a string giving the multiplicity and coupling constants of the signal of this atom in a certain spectrum. |
boolean |
hasCouplings(DBSpectrum spectrum)
Gets the couplings of this atom in a certain spectrum.as a string |
boolean |
isCoordinate3d(int coordinateSetId)
|
void |
save(java.sql.Connection dbCon)
Saves this object incl. |
Methods inherited from class org.apache.torque.om.BaseObject |
---|
equals, equals, getLog, hashCode, isModified, isNew, log, resetModified, setModified, setNew, setPrimaryKey |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.torque.om.Persistent |
---|
getPrimaryKey, isModified, isNew, save, save, setModified, setNew, setPrimaryKey, setPrimaryKey |
Field Detail |
---|
DBCoordinateSet3d coords3
DBCoordinateSet2d coords2
public boolean force3d
private java.util.Vector couplings
Constructor Detail |
---|
public DBAtom()
public DBAtom(org.openscience.cdk.interfaces.IAtom atom, org.openscience.cdk.interfaces.IAtomContainer ac, int dbmol, java.lang.String hoseCode, java.lang.String hoseCodeWithRings, boolean visible) throws java.lang.Exception
atom
- The cdk atom this atom is supposed to represent.dbmol
- The molecule it comes fromhoseCode
- The hose code.visible
- Should this atom be visible.
java.lang.Exception
- Description of Exception.Method Detail |
---|
public static java.util.List getAtoms(int molid) throws org.apache.torque.TorqueException
molid
- The molecule.
java.lang.Exception
- Database problems.
org.apache.torque.TorqueException
public static java.util.List getAtomsWithoutHs(int molid) throws org.apache.torque.TorqueException
molid
- The molecule.
java.lang.Exception
- Database problems.
org.apache.torque.TorqueException
public java.util.Vector getBonds() throws java.lang.Exception
java.lang.Exception
- Database problemspublic java.util.Vector getConnectedAtoms(org.openscience.cdk.interfaces.IMolecule mol, DBAtom[] dbatoms) throws java.lang.Exception
java.lang.Exception
- Database Problemspublic java.util.Vector getConnectedAtoms() throws java.lang.Exception
java.lang.Exception
- Database Problemspublic int getHydrogenCount() throws java.lang.Exception
java.lang.Exception
- Database problemspublic int getHydrogenCount(DBAtom[] atoms, org.openscience.cdk.interfaces.IMolecule cdkmol) throws java.lang.Exception
java.lang.Exception
public DBSignal getAnySignal(int spectrumId) throws java.lang.Exception
spectrumId
- The spectrum of which the signal should be.
java.lang.Exception
- Database problems.public int getMdlNumberPlus1Heavy() throws java.lang.Exception
java.lang.Exception
- Description of Exceptionpublic java.lang.String getIdentifier(int spectrum) throws java.lang.Exception
java.lang.Exception
public int getMdlNumberPlus1() throws java.lang.Exception
java.lang.Exception
- Description of Exceptionpublic int getMdlNumber() throws java.lang.Exception
java.lang.Exception
- Database problems.public org.openscience.cdk.interfaces.IAtom getAsCdkAtom() throws java.lang.Exception
java.lang.Exception
- Description of Exceptionpublic org.openscience.cdk.interfaces.IAtom getAsCdkAtom(SubmittingData subData) throws java.lang.Exception
subData
- The submittingData.
java.lang.Exception
- Description of Exceptionpublic java.lang.String getIdentifier(DBSpectrum spectrum) throws java.lang.Exception
spectrum
- The spectrum the identifier should be in.
java.lang.Exception
- Database problems.public java.lang.String getMultiplicity(DBSpectrum spectrum) throws java.lang.Exception
spectrum
- Spectrum in which the signal should be.
java.lang.Exception
- Database problems.public boolean hasCouplings(DBSpectrum spectrum) throws java.lang.Exception
spectrum
- The spectrum.
java.lang.Exception
- Database problems.public java.lang.String getCouplingsString(DBSpectrum spectrum) throws java.lang.Exception
spectrum
- The spectrum.
java.lang.Exception
- Database problems.public java.util.Vector getCouplings(DBSpectrum spectrum) throws java.lang.Exception
spectrum
- The spectrum.
java.lang.Exception
- Database problems.public double[] getCoordinates(int coordinateSetId) throws java.lang.Exception
coordinateSetId
- The coordinate set id
java.lang.Exception
- Description of Exceptionpublic boolean isCoordinate3d(int coordinateSetId) throws java.lang.Exception
java.lang.Exception
public java.util.List getDBSignals() throws java.lang.Exception
java.lang.Exception
- Description of Exceptionpublic java.util.List getDBSignals(char type) throws org.apache.torque.TorqueException
type
- m=only measured signals,c=only calculated signals included
java.lang.Exception
- Description of Exception
org.apache.torque.TorqueException
public java.util.List getDBSignals(DBSpectrum spectrum) throws org.apache.torque.TorqueException
spectrum
- The spectrum the signal should come from
java.lang.Exception
- Description of Exception
org.apache.torque.TorqueException
public void save(java.sql.Connection dbCon) throws org.apache.torque.TorqueException
save
in interface org.apache.torque.om.Persistent
save
in class BaseDBAtom
dbCon
- A database connection.
java.lang.Exception
- Description of Exception
org.apache.torque.TorqueException
public void delete(java.sql.Connection conn) throws java.lang.Exception
conn
- The description to use.
java.lang.Exception
- Database problems.public java.util.List getDBSignalsBySpectrumType(java.lang.String typname) throws java.lang.Exception
java.lang.Exception
public int getIntegralStuff(DBAtom[] atoms, org.openscience.cdk.interfaces.IMolecule cdkmol) throws java.lang.Exception
java.lang.Exception
public int getIntegralStuff() throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |