Last update: 2011-06-23

org.proteios.core
Class GelScanEvent

java.lang.Object
  extended by org.proteios.core.BasicItem<D>
      extended by org.proteios.core.BioMaterialEvent<GelScanEventData>
          extended by org.proteios.core.GelScanEvent
All Implemented Interfaces:
AccessControlled, Identifiable

public class GelScanEvent
extends BioMaterialEvent<GelScanEventData>

This class represent GelScanEvent items. A GelScanEvent has information about a gel scanning. One event will results in one sourceFile = raw picture file. BioMaterial is used to link to the extract that was used for the gel. For a DiGE gel there will be one scan event per color.

Version:
2.0
Author:
Olle
Last modified
$Date: 2006-09-12 12:33:12Z $

Field Summary
static Item TYPE
          The type of item represented by this class.
 
Fields inherited from class org.proteios.core.BioMaterialEvent
MAX_COMMENT_LENGTH
 
Method Summary
 Set<Annotatable> getAnnotatableParents()
          Always null.
 GelElectrophoresis getGelElectrophoresis()
          Get the GelElectrophoresis this GelScanEvent is associated with.
 HardwareConfiguration getHardwareSettings()
           
 File getImageFile()
          The raw image file
static ItemQuery<GelScanEvent> getQuery()
          Get a query that returns GelScanEvent items.
 Item getType()
          Get the type of item represented by the object.
 boolean isUsed()
          Check that: no item has been created from this GelScanEvent
 void setGelElectrophoresis(GelElectrophoresis gelElectrophoresis)
          Set the GelElectrophoresis this GelScanEvent is associated with.
 void setHardwareSettings(HardwareConfiguration hardwareSettings)
           
 void setImageFile(File imageFile)
          The raw image file.
 
Methods inherited from class org.proteios.core.BioMaterialEvent
addSource, getBioMaterial, getComment, getEntryDate, getEventDate, getEventType, getPreviousBioMaterialEvent, getProtocol, getQuery, getSourceBioMaterials, getSources, getUsedQuantityInMicroLiters, getUsedQuantityInMicroLiters, getUser, removeSource, setBioMaterial, setComment, setEntryDate, setEventDate, setPreviousBioMaterialEvent, setProtocol, setUsedQuantityInMicroLiters, setUser
 
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

TYPE

public static final Item TYPE
The type of item represented by this class.

See Also:
Item.PROTEIOS_GELSCANEVENT, getType()
Method Detail

getQuery

public static ItemQuery<GelScanEvent> getQuery()
Get a query that returns GelScanEvent items.

Returns:
An ItemQuery object.

getType

public Item getType()
Description copied from interface: Identifiable
Get the type of item represented by the object. The returned value is one of the values defined in the Item enumeration.

Specified by:
getType in interface Identifiable
Overrides:
getType in class BioMaterialEvent<GelScanEventData>
Returns:
A value indicating the type of item

getAnnotatableParents

public Set<Annotatable> getAnnotatableParents()
                                       throws BaseException
Always null.

Throws:
BaseException

isUsed

public boolean isUsed()
               throws BaseException
Check that:

Overrides:
isUsed in class BioMaterialEvent<GelScanEventData>
Returns:
Always false
Throws:
BaseException

getGelElectrophoresis

public GelElectrophoresis getGelElectrophoresis()
                                         throws BaseException
Get the GelElectrophoresis this GelScanEvent is associated with.

Returns:
The GelElectrophoresis item or null if not known
Throws:
BaseException - If there is another error

setGelElectrophoresis

public void setGelElectrophoresis(GelElectrophoresis gelElectrophoresis)
                           throws BaseException
Set the GelElectrophoresis this GelScanEvent is associated with.

Parameters:
gelElectrophoresis - The new GelElectrophoresis item
Throws:
BaseException - If there is another error

getImageFile

public File getImageFile()
                  throws BaseException
The raw image file

Throws:
BaseException

setImageFile

public void setImageFile(File imageFile)
                  throws InvalidDataException
The raw image file.

Throws:
InvalidDataException

getHardwareSettings

public HardwareConfiguration getHardwareSettings()
                                          throws BaseException
Throws:
BaseException

setHardwareSettings

public void setHardwareSettings(HardwareConfiguration hardwareSettings)
                         throws InvalidDataException
Throws:
InvalidDataException

Last update: 2011-06-23