|
|||||||||
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.BaseDBSpectrum
org.openscience.nmrshiftdb.om.DBSpectrum
public class DBSpectrum
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) java.text.DecimalFormat |
format
|
(package private) int |
intensities
|
(package private) java.util.List |
keywordsVector
|
(package private) java.util.List |
literaturesNew
|
(package private) java.util.List |
measurementConditions
|
(package private) java.util.Vector |
options
|
(package private) int |
otherspectrastringsize
|
boolean |
predict
|
org.apache.turbine.util.RunData |
runData
Description of the Field |
(package private) java.util.Map<java.lang.Float,java.lang.Float> |
searchSignalMap
|
(package private) static long |
serialVersionUID
|
(package private) double |
similarity
|
(package private) java.lang.StringBuffer |
unusedtext
|
Fields inherited from class org.openscience.nmrshiftdb.om.BaseDBSpectrum |
---|
collDBCouplings, collDBRawFileDBSpectrums, collDBSignals, collDBSpectrumDBConditions, collDBSpectrumDBKeywords, collDBSpectrumDBLiteratures, collDBSpectrumHyperlinks, collDBUserDBSpectrumEdits, collDBUserDBSpectrumMarks, collDBUserDBSpectrums |
Fields inherited from class org.apache.torque.om.BaseObject |
---|
NEW_ID |
Constructor Summary | |
---|---|
DBSpectrum()
|
Method Summary | |
---|---|
void |
addMark(int mark,
org.apache.turbine.om.security.User user,
java.lang.String comment)
Adds a mark to this DBSpectrum. |
void |
delete(java.sql.Connection dbconn,
boolean doMolecule)
Deletes this spectrum plus all associated rows. |
java.util.Date |
getAsssignedDate()
Gets the Date the last assignment of the DBSpectrum object took place |
nu.xom.Element |
getCmlSpect()
Gets this spectrum as cmlSpect. |
java.lang.String |
getCommentAsString()
Gets the comment attribute of the DBSpectrum object |
java.lang.String |
getConditionType()
Gets the condition type of this DBSpectrum object |
org.apache.jetspeed.om.security.turbine.TurbineUser |
getContributor()
Gets the contributor of this DBSpectrum object |
DBSpectrum |
getCurrentSpectrum()
Gives you the current spectrum of the edit chain of this spectrum. |
int |
getDisplaymark()
Returns the mark necessary for a spectrum to be displayed |
java.lang.String |
getEmailOfAsssignedReviewer()
Gets the email of the last reviewer the DBSpectrum object was assigned to |
java.lang.String |
getFrequency()
|
java.lang.String |
getKeywords()
Gets the keywords attribute of the DBSpectrum object. |
java.lang.String |
getKeywords(boolean separatedByNewline)
Gets the keywords attribute of the DBSpectrum object. |
java.util.List |
getLinks()
Gets the links of the DBSpectrum object |
java.lang.String |
getLinksAsString()
Gets the links of the DBSpectrum object as a string |
java.util.List |
getLiteraturesNew()
Gets the DBLiterature objects of the DBSpectrum object |
int |
getMark()
Gets the mark of the DBSpectrum object |
java.lang.String |
getMarkComment()
Gets the Comments for marks of the DBSpectrum object. |
private int |
getMdlNumberPlus1(DBAtom atom,
DBAtom[] atoms)
Gets the mdl number of an atom, similar to getMdlNumberPlus1 in DBAtom, but much faster for repeated calls |
SubmittingData |
getMeAsSubmittingData(boolean useUser,
java.lang.String path,
boolean no3d)
This makes a submittingData object populated with the values from this spectrum and its molecule. |
java.util.List |
getMeasurementConditions()
Gets the Conditions of this DBSpectrum object |
java.util.List |
getMeasurementConditions(java.sql.Connection dbconn)
Gets the Conditions of this DBSpectrum object |
java.lang.String |
getMeasurementConditionValueWithName(java.lang.String name)
|
DBCondition |
getMeasurementConditionWithName(java.lang.String name)
Gets the value of a certain condition of this DBSpectrum object |
DBCondition |
getMeasurementConditionWithName(java.lang.String name,
java.sql.Connection dbconn)
Gets the value of a certain condition of this DBSpectrum object |
java.lang.String |
getNameOfAsssignedReviewer()
Gets the name of the last reviwer the DBSpectrum object was assigned to |
java.util.Vector |
getOptions()
Gets the shifts table for this spectrum. |
java.lang.String |
getOtherSpectraString(int atomNumber)
|
java.lang.String |
getOtherSpectraStringHeader()
|
int |
getOtherSpectraStringSize()
|
java.util.List |
getReviewAssignments()
Gets the DBUserDBSpectrum objects related with this spectrum |
private float[] |
getShifts(int atomNumber)
Gets the shifts of a certain atom in this spectrum. |
private float[] |
getShifts(int atomNumber,
DBMolecule mol)
Gets the shifts of a certain atom in this spectrum. |
private java.util.List |
getSignals(int atomNumber)
Gets the shifts of a certain atom in this spectrum. |
private java.util.List |
getSignals(int atomNumber,
DBMolecule mol)
Gets the shifts of a certain atom in this spectrum. |
double |
getSimilarity()
Returns the similarity in percent between this spectrum and another spectrum, set by initSimilarity |
double |
getSimilarityFormatted()
Returns the similarity with two digits after . |
java.lang.String |
getSpecfile()
Get the Specfile |
java.lang.String |
getSpecfileOld()
|
java.lang.String |
getSpectrumForApplet()
Gets the specFile attribute of the DBSpectrum object as a string |
java.lang.String |
getSpectrumForAppletNewFormat()
Gets the spectrum in the format needed for the new spectrumapplet (R 1.0). |
java.lang.String |
getSpectrumForAppletNewFormat(DBAtom[] atoms,
org.openscience.cdk.interfaces.IMolecule cdkmol)
Gets the spectrum in the format needed for the new spectrumapplet (R 1.0). |
java.lang.String |
getSpectrumForAppletWithMultis()
|
java.lang.String |
getSpectrumTypeName()
Gets the spectrumType name of the DBSpectrum object |
java.lang.String |
getUnassignedText()
Gives a string with the unassigned shifts in this spectrum, "" if none. |
java.lang.String |
getUnusedText()
Returns a text telling unsed spectra. |
boolean |
hasAnyIdentifier()
Tells if there is any atom identifier for this spectrum. |
boolean |
hasAnyIntensities()
Tells if any signal in this spectrum has an intensity != 0. |
java.util.Map |
initSimilarity(java.util.List otherSignalsL,
boolean isSubSpectrum)
Sets the similarity between this and another spectrum |
boolean |
isSimilarityNot0()
Tells if the similarity of this spectrum is zero or not |
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, save, setModified, setNew, setPrimaryKey, setPrimaryKey |
Field Detail |
---|
static final long serialVersionUID
public org.apache.turbine.util.RunData runData
public boolean predict
java.util.List measurementConditions
double similarity
java.util.Map<java.lang.Float,java.lang.Float> searchSignalMap
int intensities
java.util.Vector options
java.lang.StringBuffer unusedtext
java.text.DecimalFormat format
java.util.List literaturesNew
java.util.List keywordsVector
int otherspectrastringsize
Constructor Detail |
---|
public DBSpectrum()
Method Detail |
---|
public java.lang.String getSpecfileOld()
public java.lang.String getSpecfile()
BaseDBSpectrum
getSpecfile
in class BaseDBSpectrum
public java.lang.String getConditionType() throws java.lang.Exception
java.lang.Exception
- Description of Exceptionpublic java.util.List getLinks() throws java.lang.Exception
java.lang.Exception
- Database problemspublic double getSimilarity()
public boolean isSimilarityNot0()
public double getSimilarityFormatted()
public java.util.Vector getOptions() throws java.lang.Exception
java.lang.Exception
- Database problems.private int getMdlNumberPlus1(DBAtom atom, DBAtom[] atoms) throws NmrshiftdbException
atom
- The atom to ask foratoms
- All atoms of this molecule, as you get them with DBMolecule.getAtomsAsArrayInMDLOrder
NmrshiftdbException
- No such atom in atoms. This means the atoms passed where from another molecule than the atom.public java.util.List getMeasurementConditions() throws java.lang.Exception
java.lang.Exception
- Description of Exceptionpublic java.util.List getMeasurementConditions(java.sql.Connection dbconn) throws java.lang.Exception
java.lang.Exception
- Description of Exceptionpublic DBCondition getMeasurementConditionWithName(java.lang.String name) throws java.lang.Exception
name
- The name of the conditon to tell.
java.lang.Exception
- Description of Exception.public java.lang.String getFrequency() throws java.lang.Exception
java.lang.Exception
public DBCondition getMeasurementConditionWithName(java.lang.String name, java.sql.Connection dbconn) throws java.lang.Exception
name
- The name of the conditon to tell.
java.lang.Exception
- Description of Exception.public java.lang.String getMeasurementConditionValueWithName(java.lang.String name) throws java.lang.Exception
java.lang.Exception
public java.lang.String getSpectrumForApplet()
public org.apache.jetspeed.om.security.turbine.TurbineUser getContributor() throws java.lang.Exception
java.lang.Exception
- Something went wrong with reading the databasepublic java.lang.String getSpectrumForAppletWithMultis() throws java.lang.Exception
java.lang.Exception
public java.lang.String getSpectrumTypeName() throws java.lang.Exception
java.lang.Exception
- Problems with reading databasepublic java.util.List getReviewAssignments() throws java.lang.Exception
java.lang.Exception
- Database problemspublic java.lang.String getNameOfAsssignedReviewer() throws java.lang.Exception
java.lang.Exception
- Database problemspublic java.lang.String getEmailOfAsssignedReviewer() throws java.lang.Exception
java.lang.Exception
- Database problemspublic java.util.Date getAsssignedDate() throws java.lang.Exception
java.lang.Exception
- Database problemspublic java.lang.String getCommentAsString()
public java.lang.String getLinksAsString() throws java.lang.Exception
java.lang.Exception
- Description of Exceptionpublic java.util.List getLiteraturesNew() throws java.lang.Exception
java.lang.Exception
- Description of Exceptionpublic java.lang.String getKeywords() throws java.lang.Exception
java.lang.Exception
- Database problems.public java.lang.String getKeywords(boolean separatedByNewline) throws java.lang.Exception
separatedByNewline
- If true keywords are separated by \n else by ,.
java.lang.Exception
- Database problems.public SubmittingData getMeAsSubmittingData(boolean useUser, java.lang.String path, boolean no3d) throws java.lang.Exception
useUser
- Description of Parameterpath
- Description of Parameter
java.lang.Exception
- Database problems.public int getMark() throws java.lang.Exception
java.lang.Exception
- Description of Exceptionpublic java.lang.String getMarkComment() throws java.lang.Exception
java.lang.Exception
- Database problems.public int getDisplaymark() throws java.io.FileNotFoundException, java.io.IOException
java.io.FileNotFoundException
- Description of Exception
java.io.IOException
- Description of Exceptionpublic nu.xom.Element getCmlSpect() throws org.xmlcml.cml.base.CMLException, org.apache.torque.TorqueException
java.lang.Exception
- Database problems
org.xmlcml.cml.base.CMLException
- xml problems.
org.apache.torque.TorqueException
- Something wrong with database reading.public java.lang.String getUnusedText()
public boolean hasAnyIntensities() throws java.lang.Exception
java.lang.Exception
- Database problems.public java.util.Map initSimilarity(java.util.List otherSignalsL, boolean isSubSpectrum)
isSubSpectrum
- Is this a subspectrum search ?otherSignalsL
- Description of Parameter
public boolean hasAnyIdentifier() throws java.lang.Exception
java.lang.Exception
- Database problems.public void addMark(int mark, org.apache.turbine.om.security.User user, java.lang.String comment) throws java.lang.Exception
mark
- The mark.user
- The user marking.comment
- The feature to be added to the Mark attribute
java.lang.Exception
- Database problems.public void delete(java.sql.Connection dbconn, boolean doMolecule) throws java.lang.Exception
dbconn
- The connection to use.
java.lang.Exception
- Database problems.private float[] getShifts(int atomNumber, DBMolecule mol) throws java.lang.Exception
atomNumber
- The mdl number of the atom to look for.
java.lang.Exception
- Database problems.private float[] getShifts(int atomNumber) throws java.lang.Exception
atomNumber
- The mdl number of the atom to look for.
java.lang.Exception
- Database problems.private java.util.List getSignals(int atomNumber, DBMolecule mol) throws java.lang.Exception
atomNumber
- The mdl number of the atom to look for.
java.lang.Exception
- Database problems.private java.util.List getSignals(int atomNumber) throws java.lang.Exception
atomNumber
- The mdl number of the atom to look for.
java.lang.Exception
- Database problems.public java.lang.String getSpectrumForAppletNewFormat() throws java.lang.Exception
java.lang.Exception
- Database problems.public java.lang.String getSpectrumForAppletNewFormat(DBAtom[] atoms, org.openscience.cdk.interfaces.IMolecule cdkmol) throws java.lang.Exception
java.lang.Exception
- Database problems.public java.lang.String getOtherSpectraStringHeader() throws java.lang.Exception
java.lang.Exception
public java.lang.String getOtherSpectraString(int atomNumber) throws java.lang.Exception
java.lang.Exception
public int getOtherSpectraStringSize() throws java.lang.Exception
java.lang.Exception
public java.lang.String getUnassignedText() throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
- Probably a database problempublic DBSpectrum getCurrentSpectrum() throws org.apache.torque.NoRowsException, org.apache.torque.TooManyRowsException, org.apache.torque.TorqueException
org.apache.torque.NoRowsException
org.apache.torque.TooManyRowsException
org.apache.torque.TorqueException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |