|
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<PeakData>
org.proteios.core.Peak
public class Peak
This class represent peak items. A peak item has information about the peak in a mass spectrometry experiment.
| Field Summary | |
|---|---|
static Item |
TYPE
The type of item represented by this class. |
| Constructor Summary | |
|---|---|
Peak(PeakData peakData)
|
|
| Method Summary | |
|---|---|
int |
compareTo(Peak p)
|
static Peak |
getById(DbControl dc,
int id)
Get a Peak item when you know the id. |
Double |
getIntensity()
Get the intensity. |
Double |
getMassToChargeRatio()
Get the massToChargeRatio. |
PeakList |
getPeakList()
Get the PeakList this peak is created from. |
static ItemQuery<Peak> |
getQuery()
Get a query that returns peak items. |
Item |
getType()
Get the type of item represented by the object. |
boolean |
isUsed()
Check that: no item has been created from this peak |
void |
setIntensity(Double intensity)
Set the intensity |
void |
setMassToChargeRatio(Double massToChargeRatio)
Set the massToChargeRatio |
void |
setPeakList(PeakList peakList)
Set the PeakList this peak is created from. |
| 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 |
| Field Detail |
|---|
public static final Item TYPE
Item.PROTEIOS_PEAK,
getType()| Constructor Detail |
|---|
public Peak(PeakData peakData)
| Method Detail |
|---|
public int compareTo(Peak p)
compareTo in interface Comparable<Peak>
public static Peak getById(DbControl dc,
int id)
throws ItemNotFoundException,
BaseException
Peak item when you know the id.
dc - The DbControl which will be used for database
access.id - The id of the item to load
Peak item
ItemNotFoundException - If an item with the specified id is not
found
BaseException - If there is another errorpublic static ItemQuery<Peak> getQuery()
ItemQuery object.public Item getType()
IdentifiableItem enumeration.
getType in interface Identifiable
public boolean isUsed()
throws BaseException
isUsed in class BasicItem<PeakData>BaseExceptionpublic Double getMassToChargeRatio()
Double holding the massToChargeRatio
public void setMassToChargeRatio(Double massToChargeRatio)
throws InvalidDataException,
BaseException
massToChargeRatio - The Double massToChargeRatio value
InvalidDataException - If massToChargeRatio is below zero
BaseExceptionpublic Double getIntensity()
Double holding the intensity
public void setIntensity(Double intensity)
throws InvalidDataException,
BaseException
intensity - The Double intensity value
InvalidDataException - If intensity is below zero
BaseException
public PeakList getPeakList()
throws BaseException
PeakList this peak is created from.
PeakList item or null if not known
BaseException - If there is another errorpublic void setPeakList(PeakList peakList)
PeakList this peak is created from.
peakList - The new PeakList item
BaseException - If there is another error
|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||