Package fr.igred.omero.repository
Class WellSampleWrapper
- java.lang.Object
-
- fr.igred.omero.GenericObjectWrapper<WellSampleData>
-
- fr.igred.omero.repository.WellSampleWrapper
-
public class WellSampleWrapper extends GenericObjectWrapper<WellSampleData>
Class containing a WellSampleData object.Wraps function calls to the WellSampleData contained.
-
-
Field Summary
-
Fields inherited from class fr.igred.omero.GenericObjectWrapper
data
-
-
Constructor Summary
Constructors Constructor Description WellSampleWrapper(WellSampleData wellSample)
Constructor of the class WellSampleWrapper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WellSampleData
asWellSampleData()
Returns the WellSampleData contained.ImageWrapper
getImage()
Returns the image related to that sample if any.Length
getPositionX(omero.model.enums.UnitsLength unit)
Returns the position X.Length
getPositionY(omero.model.enums.UnitsLength unit)
Returns the position Y.long
getStartTime()
Returns the time at which the field was acquired.WellWrapper
getWell(Client client)
Retrieves the well containing this well samplevoid
setImage(ImageWrapper image)
Sets the image linked to this well sample.-
Methods inherited from class fr.igred.omero.GenericObjectWrapper
canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, delete, distinct, getCreated, getGroupId, getId, getOwner, saveAndUpdate, toString, wrap, wrap
-
-
-
-
Constructor Detail
-
WellSampleWrapper
public WellSampleWrapper(WellSampleData wellSample)
Constructor of the class WellSampleWrapper.- Parameters:
wellSample
- The well sample contained in the WellSampleWrapper.
-
-
Method Detail
-
asWellSampleData
public WellSampleData asWellSampleData()
Returns the WellSampleData contained.- Returns:
- See above.
-
getWell
public WellWrapper getWell(Client client) throws AccessException, ServiceException, java.util.concurrent.ExecutionException
Retrieves the well containing this well sample- Parameters:
client
- The client handling the connection.- Returns:
- See above
- Throws:
ServiceException
- Cannot connect to OMERO.AccessException
- Cannot access data.java.util.concurrent.ExecutionException
- A Facility can't be retrieved or instantiated.
-
getImage
public ImageWrapper getImage()
Returns the image related to that sample if any.- Returns:
- See above.
-
setImage
public void setImage(ImageWrapper image)
Sets the image linked to this well sample.- Parameters:
image
- The image to set.
-
getPositionX
public Length getPositionX(omero.model.enums.UnitsLength unit) throws BigResult
Returns the position X.- Parameters:
unit
- The unit (can be null, in which case no conversion will be performed)- Returns:
- See above.
- Throws:
BigResult
- If an arithmetic under-/overflow occurred
-
getPositionY
public Length getPositionY(omero.model.enums.UnitsLength unit) throws BigResult
Returns the position Y.- Parameters:
unit
- The unit (can be null, in which case no conversion will be performed)- Returns:
- See above.
- Throws:
BigResult
- If an arithmetic under-/overflow occurred
-
getStartTime
public long getStartTime()
Returns the time at which the field was acquired.- Returns:
- See above.
-
-