|
Mobios v0.91 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mobios.type.IndexObject mobios.type.DoubleVector mobios.type.Spectra mobios.type.TandemSpectra
public class TandemSpectra
TandemSpectra represents a given spectra and its attached precursor mass.
Constructor Summary | |
---|---|
TandemSpectra()
Necessary for readExternal() and writeExternal(). |
|
TandemSpectra(mobios.db.Table table,
int rowID,
double precursorMass,
double[] spectra)
Main constructor using an array of doubles to define the Spectra. |
|
TandemSpectra(mobios.db.Table table,
int rowID,
double precursorMass,
String spectra)
Constructs a TandemSpectra object from a {@link String representing the tandem spectra. |
Method Summary | |
---|---|
int |
compareTo(IndexObject oThat)
|
boolean |
equals(Object that)
|
IndexObject[] |
expand()
This method is necessary to implement bucketing, so that similar objects are only stored once in the database. |
double |
getPrecursorMass()
|
int |
hashCode()
|
void |
readExternal(ObjectInput in)
|
String |
toString()
all implementing classes are required to override toString |
void |
writeExternal(ObjectOutput out)
|
Methods inherited from class mobios.type.Spectra |
---|
getMax, getMin, sortAsc |
Methods inherited from class mobios.type.DoubleVector |
---|
compareTo, getData, size |
Methods inherited from class mobios.type.IndexObject |
---|
getRowID, setRowID, setRowIDLength |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TandemSpectra()
public TandemSpectra(mobios.db.Table table, int rowID, double precursorMass, String spectra)
table
- the corresponding TandemSpectraTable
for this objectrowID
- the rowID in the TandemSpectraTable
.precursorMass
- the precursor mass of the spectra itself.spectra
- a space-seperated String
representation of a single fragmentation spectra.public TandemSpectra(mobios.db.Table table, int rowID, double precursorMass, double[] spectra)
table
- the corresponding TandemSpectraTable
for this objectrowID
- the rowID in the TandemSpectraTable
.precursorMass
- the precursor mass of the spectra itself.spectra
- Method Detail |
---|
public double getPrecursorMass()
public IndexObject[] expand()
IndexObject
expand
in class Spectra
IndexObject
spublic int compareTo(IndexObject oThat)
compareTo
in interface Comparable<IndexObject>
compareTo
in class DoubleVector
public boolean equals(Object that)
equals
in class DoubleVector
public int hashCode()
hashCode
in class DoubleVector
public String toString()
IndexObject
toString
in class DoubleVector
public void readExternal(ObjectInput in) throws ClassNotFoundException, IOException
readExternal
in interface Externalizable
readExternal
in class DoubleVector
ClassNotFoundException
IOException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class DoubleVector
IOException
|
Mobios v0.91 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |