|
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<D>
org.proteios.core.BioMaterial<D>
org.proteios.core.MeasuredBioMaterial<D>
public abstract class MeasuredBioMaterial<D extends MeasuredBioMaterialData>
This class is the base class for measured biomaterial items. A measured item is an item which can have original and remaining quantities associated with them.
The core keeps track of the remaining quantity whenever an item is used to
create other items. As it is, an item can be used when creating another item
of the same type (pooling) or when creating an item of the appropriate
subtype, ie. Sample -> Extract -> LabeledExtract.
It is also possible to add a note using a BioMaterialEvent saying
that the quantity has been changed and why.
| Field Summary |
|---|
| Fields inherited from class org.proteios.core.BioMaterial |
|---|
MAX_EXTERNAL_ID_LENGTH, MAX_STORAGE_LOCATION_LENGTH |
| Fields inherited from interface org.proteios.core.Nameable |
|---|
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH |
| Method Summary | |
|---|---|
Float |
getConcentrationInGramsPerLiter()
Get the concentration (in mg protein / ml) of the biomaterial. |
CreationEvent |
getCreationEvent()
Get the event that represents the creation of this biomaterial. |
ItemQuery<BioMaterialEvent> |
getEventQuery()
|
Set<BioMaterialEvent> |
getEvents()
Get the events that have used this biomaterial. |
Float |
getOriginalQuantityInMicroLiters()
Get the original quantity of the biomaterial measured in microliters. |
Float |
getRemainingQuantityInMicroLiters()
Get the remaining quantity of the biomaterial measured in microliters. |
boolean |
isPooled()
Check if this biomaterial was created by pooling or not. |
boolean |
isUsed()
Check that: no pooled biomaterial has been created from this item |
void |
setConcentrationInGramsPerLiter(Float concentration)
Set the concentration (in mg protein / ml) of the biomaterial. |
void |
setCreationEvent(CreationEvent creationEvent)
|
void |
setOriginalQuantityInMicroLiters(Float originalQuantity)
Set the original quantity of the biomaterial measured in microliters. |
void |
setPooled(boolean pooled)
Specify if this biomaterial was created by pooling or not. |
void |
setRemainingQuantityInMicroLiters(Float remainingQuantity)
Set the remaining quantity of the biomaterial measured in microliters. |
| Methods inherited from class org.proteios.core.BioMaterial |
|---|
addFile, getExternalId, getFiles, getStorageLocation, setExternalId, setFiles, setStorageLocation |
| Methods inherited from class org.proteios.core.CommonItem |
|---|
getDescription, getName, isRemoved, setDescription, 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, getType, getVersion |
| Methods inherited from interface org.proteios.core.AccessControlled |
|---|
checkPermission, hasPermission |
| Methods inherited from interface org.proteios.core.Ownable |
|---|
getOwner, setOwner |
| Method Detail |
|---|
public boolean isUsed()
throws BaseException
isUsed in class BasicItem<D extends MeasuredBioMaterialData>BaseException
public CreationEvent getCreationEvent()
throws PermissionDeniedException,
BaseException
CreationEvent data.
PermissionDeniedException
BaseExceptionpublic void setCreationEvent(CreationEvent creationEvent)
public Float getConcentrationInGramsPerLiter()
Float holding concentration, or null if not
knownpublic void setConcentrationInGramsPerLiter(Float concentration)
concentration - A Float holding concentration, or null if not knownpublic Float getOriginalQuantityInMicroLiters()
Float holding the original quantity, or null if
not known
public void setOriginalQuantityInMicroLiters(Float originalQuantity)
throws PermissionDeniedException,
InvalidDataException,
BaseException
originalQuantity - The new value for the original quantity, or null
if not known
PermissionDeniedException - If the logged in user doesn't have
write permission
InvalidDataException - If the original quantity is below zero
BaseExceptionpublic Float getRemainingQuantityInMicroLiters()
Float holding the remaining quantity or null if
not known
public void setRemainingQuantityInMicroLiters(Float remainingQuantity)
throws PermissionDeniedException,
InvalidDataException,
BaseException
remainingQuantity - The new value for the remaining quantity, or null
if not known
PermissionDeniedException - If the logged in user doesn't have
use permission
InvalidDataException - If the remaining quantity is below zero
BaseExceptionpublic boolean isPooled()
public void setPooled(boolean pooled)
throws PermissionDeniedException,
BaseException
PermissionDeniedException - If the logged in user doesn't have
write permission
BaseException - If there is another errorBioMaterialEvent.getSources()public Set<BioMaterialEvent> getEvents()
public ItemQuery<BioMaterialEvent> getEventQuery()
|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||