|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.proteios.core.BasicItem<D>
org.proteios.core.OwnedItem<D>
org.proteios.core.SharedItem<D>
org.proteios.core.CommonItem<D>
org.proteios.core.AnnotatedItem<PeakListData>
org.proteios.core.PeakList
public class PeakList
This class represent peaklist items. A peaklist has information about the peaks in an experiment.
| Field Summary | |
|---|---|
static int |
MAX_COMBINATIONMETHOD_LENGTH
The maximum length of the combinationMethod string that can be stored in the database. |
static int |
MAX_DESCRIPTION_LENGTH
The maximum length of the description string that can be stored in the database. |
static Item |
TYPE
The type of item represented by this class. |
| Fields inherited from interface org.proteios.core.Nameable |
|---|
MAX_NAME_LENGTH |
| Method Summary | |
|---|---|
void |
addPeak(Peak peak)
|
Float |
calculateTotalIntensity()
Count the total intensity of all peaks in this peaklist |
int |
compareTo(PeakList p)
|
Float |
findBasePeakIntensity()
Find the most intense peak in this peaklist and return the intensity |
List<Acquisition> |
getAcquisitionList()
Get the Acquisition acquisitionList. |
ItemQuery<Acquisition> |
getAcquisitionsQuery()
Get a query that returns all Acquisition items created from this peaklist. |
Set<Annotatable> |
getAnnotatableParents()
Always null. |
Float |
getBasePeakIntensity()
Get the base peak intensity. |
static PeakList |
getById(DbControl dc,
int id)
Get a PeakList item when you know the id. |
String |
getCombinationMethod()
Get the combination method of this PeakList. |
String |
getDescription()
Get the description of this PeakList. |
int |
getMsLevel()
Get the msLevel |
Float |
getMzRangeStart()
Get the start of the mzRange. |
Float |
getMzRangeStop()
Get the stop of the mzRange. |
List<Peak> |
getPeakArrayList()
Get the Peak peakArrayList. |
PeakListSet |
getPeakListSet()
Get the PeakListSet this peakList is created from. |
ItemQuery<Peak> |
getPeaksQuery()
Get a query that returns all Peak items created from this peaklist. |
List<Precursor> |
getPrecursorList()
Get the Precursor precursorList. |
ItemQuery<Precursor> |
getPrecursorsQuery()
Get a query that returns all Precursor items created from this peaklist. |
static ItemQuery<PeakList> |
getQuery()
Get a query that returns peaklist items. |
int |
getSpectrumId()
Get the spectrumId |
InstrumentConfiguration |
getSpectrumInstrument()
Get the InstrumentConfiguration spectrumInstrument. |
Float |
getTimeInMinutes()
Get the time in minutes. |
Float |
getTotalIntensity()
Get the total peak intensity. |
Item |
getType()
Get the type of item represented by the object. |
boolean |
isIntensityDoublePrecision()
Get the intensityDoublePrecision flag |
boolean |
isMonoisotopic()
Get the monoisotopic flag |
boolean |
isMzDoublePrecision()
Get the mzDoublePrecision flag |
boolean |
isUsed()
Check that: no item has been created from this peaklist |
void |
setAcquisitionList(List<Acquisition> acquisitionList)
Set the Acquisition acquisitionList. |
void |
setBasePeakIntensity(Float basePeakIntensity)
Set the base peak intensity |
void |
setCombinationMethod(String combinationMethod)
Set the combination method for this PeakList item. |
void |
setDescription(String description)
Set the description for this PeakList item. |
void |
setIntensityDoublePrecision(boolean doublePrecision)
Set the intensityDoublePrecision flag |
void |
setMonoisotopic(boolean monoisotopic)
Set the monoisotopic flag |
void |
setMsLevel(int msLevel)
Set the msLevel. |
void |
setMzDoublePrecision(boolean doublePrecision)
Set the mzDoublePrecision flag |
void |
setMzRangeStart(Float mzRangeStart)
Set the start of the mzRange |
void |
setMzRangeStop(Float mzRangeStop)
Set the stop of the mzRange |
void |
setPeakArrayList(List<Peak> peakArrayList)
Set the Peak peakArrayList. |
void |
setPeakListSet(PeakListSet peakListSet)
Set the PeakListSet this peakList is created from. |
void |
setPrecursorList(List<Precursor> precursorList)
Set the Precursor precursorList. |
void |
setSpectrumId(int spectrumId)
Set the spectrumId. |
void |
setSpectrumInstrument(InstrumentConfiguration spectrumInstrument)
Set the InstrumentConfiguration spectrumInstrument. |
void |
setTimeInMinutes(Float timeInMinutes)
Set the time in minutes |
void |
setTotalIntensity(Float totalIntensity)
Set the total intensity |
| Methods inherited from class org.proteios.core.CommonItem |
|---|
getName, isRemoved, setName, setRemoved |
| Methods inherited from class org.proteios.core.SharedItem |
|---|
getItemKey, getProjectKey, isShared, setItemKey, setProjectKey |
| Methods inherited from class org.proteios.core.OwnedItem |
|---|
getOwner, setOwner |
| Methods inherited from class org.proteios.core.BasicItem |
|---|
checkPermission, equals, getDbControl, getId, getPermissions, getSessionControl, getVersion, hashCode, hasPermission, isDetached, isInDatabase, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.proteios.core.Identifiable |
|---|
getId, getVersion |
| Methods inherited from interface org.proteios.core.AccessControlled |
|---|
checkPermission, hasPermission |
| Methods inherited from interface org.proteios.core.Ownable |
|---|
getOwner, setOwner |
| Field Detail |
|---|
public static final Item TYPE
Item.PROTEIOS_PEAKLIST,
getType()public static final int MAX_COMBINATIONMETHOD_LENGTH
setCombinationMethod(String),
Constant Field Valuespublic static final int MAX_DESCRIPTION_LENGTH
setDescription(String),
Constant Field Values| Method Detail |
|---|
public int compareTo(PeakList p)
compareTo in interface Comparable<PeakList>
public static PeakList getById(DbControl dc,
int id)
throws ItemNotFoundException,
BaseException
PeakList item when you know the id.
dc - The DbControl which will be used for database
access.id - The id of the item to load
PeakList item
ItemNotFoundException - If an item with the specified id is not
found
BaseException - If there is another errorpublic static ItemQuery<PeakList> getQuery()
ItemQuery object.public Item getType()
IdentifiableItem enumeration.
getType in interface Identifiable
public Set<Annotatable> getAnnotatableParents()
throws BaseException
BaseException
public boolean isUsed()
throws BaseException
isUsed in class BasicItem<PeakListData>BaseException
public PeakListSet getPeakListSet()
throws BaseException
PeakListSet this peakList is created from.
PeakListSet item or null if not known
BaseException - If there is another error
public void setPeakListSet(PeakListSet peakListSet)
throws BaseException
PeakListSet this peakList is created from.
peakListSet - The new PeakListSet item
BaseException - If there is another errorpublic String getCombinationMethod()
PeakList.
public void setCombinationMethod(String combinationMethod)
throws InvalidDataException
PeakList item. The
value may be null but must not be longer than the value specified by the
MAX_COMBINATIONMETHOD_LENGTH constant.
combinationMethod - The new combination method for this item
InvalidDataException - If the combinationMethod is longer than
MAX_COMBINATIONMETHOD_LENGTHpublic String getDescription()
PeakList.
getDescription in interface NameablegetDescription in class CommonItem<PeakListData>
public void setDescription(String description)
throws InvalidDataException
PeakList item. The value may
be null but must not be longer than the value specified by the
MAX_DESCRIPTION_LENGTH constant.
setDescription in interface NameablesetDescription in class CommonItem<PeakListData>description - The new description for this item
InvalidDataException - If the description is longer than
MAX_DESCRIPTION_LENGTHpublic boolean isMzDoublePrecision()
public void setMzDoublePrecision(boolean doublePrecision)
doublePrecision - The mzDoublePrecision flagpublic boolean isIntensityDoublePrecision()
public void setIntensityDoublePrecision(boolean doublePrecision)
doublePrecision - The intensityDoublePrecision flagpublic boolean isMonoisotopic()
public void setMonoisotopic(boolean monoisotopic)
monoisotopic - The monoisotopic flagpublic int getMsLevel()
public void setMsLevel(int msLevel)
throws InvalidDataException
msLevel - The msLevel value
InvalidDataException - If the msLevel is lower than zeropublic Float getTotalIntensity()
Float holding the totalIntensitypublic Float calculateTotalIntensity()
Float holding the totalIntensity
public void setTotalIntensity(Float totalIntensity)
throws InvalidDataException,
BaseException
totalIntensity - The totalIntensity value
InvalidDataException - If totalIntensity is below zero
BaseExceptionpublic Float getBasePeakIntensity()
Float holding the base peak intensity
public void setBasePeakIntensity(Float basePeakIntensity)
throws InvalidDataException,
BaseException
basePeakIntensity - The basePeakIntensity value
InvalidDataException - If basePeakIntensity is below zero
BaseExceptionpublic Float findBasePeakIntensity()
Float holding the intensitypublic Float getMzRangeStart()
Float holding the mzRangeStart
public void setMzRangeStart(Float mzRangeStart)
throws InvalidDataException,
BaseException
mzRangeStart - The msRangeStart value
InvalidDataException - If mzRangeStart is below zero
BaseExceptionpublic Float getMzRangeStop()
Float holding the mzRangeStop
public void setMzRangeStop(Float mzRangeStop)
throws InvalidDataException,
BaseException
mzRangeStop - The msRangeStop value
InvalidDataException - If mzRangeStop is below zero
BaseExceptionpublic int getSpectrumId()
public void setSpectrumId(int spectrumId)
spectrumId - The spectrumId value
public InstrumentConfiguration getSpectrumInstrument()
throws BaseException
InstrumentConfiguration spectrumInstrument.
InstrumentConfiguration object
BaseException - If there is another error
public void setSpectrumInstrument(InstrumentConfiguration spectrumInstrument)
throws InvalidDataException
InstrumentConfiguration spectrumInstrument.
spectrumInstrument - The new InstrumentConfiguration
item
InvalidDataException - If spectrumInstrument is null
BaseException - If there is another errorpublic Float getTimeInMinutes()
Float holding the timeInMinutes
public void setTimeInMinutes(Float timeInMinutes)
throws InvalidDataException,
BaseException
timeInMinutes - The timeInMinutes value
InvalidDataException - If timeInMinutes is below zero
BaseException
public List<Acquisition> getAcquisitionList()
throws ItemNotFoundException,
BaseException
Acquisition acquisitionList.
Acquisition list object
BaseException - If there is another error
ItemNotFoundException
public void setAcquisitionList(List<Acquisition> acquisitionList)
throws InvalidDataException
Acquisition acquisitionList.
acquisitionList - The new Acquisition list item
BaseException - If there is another error
InvalidDataExceptionpublic ItemQuery<Acquisition> getAcquisitionsQuery()
ItemQuery object
public List<Precursor> getPrecursorList()
throws ItemNotFoundException,
BaseException
Precursor precursorList.
Precursor list object
BaseException - If there is another error
ItemNotFoundException
public void setPrecursorList(List<Precursor> precursorList)
throws InvalidDataException
Precursor precursorList.
precursorList - The new Precursor list item
BaseException - If there is another error
InvalidDataExceptionpublic ItemQuery<Precursor> getPrecursorsQuery()
ItemQuery object
public List<Peak> getPeakArrayList()
throws ItemNotFoundException,
BaseException
Peak peakArrayList.
Peak list object
BaseException - If there is another error
ItemNotFoundException
public void setPeakArrayList(List<Peak> peakArrayList)
throws InvalidDataException
Peak peakArrayList.
peakArrayList - The new Peak list item
BaseException - If there is another error
InvalidDataExceptionpublic void addPeak(Peak peak)
public ItemQuery<Peak> getPeaksQuery()
ItemQuery object
|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||