Class WellSampleWrapper


  • public class WellSampleWrapper
    extends GenericObjectWrapper<WellSampleData>
    Class containing a WellSampleData object.

    Wraps function calls to the WellSampleData contained.

    • 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.