Interface Screen

    • Method Detail

      • setName

        void setName​(java.lang.String name)
        Sets the name of the screen.
        Parameters:
        name - The name of the screen. Mustn't be null.
        Throws:
        java.lang.IllegalArgumentException - If the name is null.
      • setDescription

        void setDescription​(java.lang.String description)
        Sets the description of the screen.
        Parameters:
        description - The description of the screen.
      • getScreens

        default java.util.List<Screen> getScreens​(Browser browser)
                                           throws ServiceException,
                                                  AccessException,
                                                  java.util.concurrent.ExecutionException
        Reloads and returns this screen as a singleton list.
        Specified by:
        getScreens in interface HCSLinked
        Parameters:
        browser - The data browser (unused).
        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.
      • getPlates

        default java.util.List<Plate> getPlates​(Browser browser)
                                         throws ServiceException,
                                                AccessException,
                                                java.util.concurrent.ExecutionException
        Reloads this screen and returns the updated list of plates linked to this screen.
        Specified by:
        getPlates in interface HCSLinked
        Parameters:
        browser - The data browser.
        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.
      • getPlates

        java.util.List<Plate> getPlates()
        Returns the plates contained in this screen.
        Returns:
        See above.
      • getPlates

        default java.util.List<Plate> getPlates​(java.lang.String name)
        Returns the plates contained in this screen, with the specified name.
        Parameters:
        name - The expected plates name.
        Returns:
        See above.
      • getPlateAcquisitions

        default java.util.List<PlateAcquisition> getPlateAcquisitions​(Browser browser)
                                                               throws ServiceException,
                                                                      AccessException,
                                                                      java.util.concurrent.ExecutionException
        Returns the plate acquisitions linked to this object, either directly, or through parents/children.
        Specified by:
        getPlateAcquisitions in interface HCSLinked
        Parameters:
        browser - The data browser.
        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.
      • getWells

        default java.util.List<Well> getWells​(Browser browser)
                                       throws ServiceException,
                                              AccessException,
                                              java.util.concurrent.ExecutionException
        Retrieves the wells linked to this object, either directly, or through parents/children.
        Specified by:
        getWells in interface HCSLinked
        Parameters:
        browser - The data browser.
        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.
      • getImages

        default java.util.List<Image> getImages​(Browser browser)
                                         throws ServiceException,
                                                AccessException,
                                                java.util.concurrent.ExecutionException
        Retrieves the images contained in this screen.
        Specified by:
        getImages in interface ImageLinked
        Parameters:
        browser - The data browser.
        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.
      • getProtocolDescription

        java.lang.String getProtocolDescription()
        Returns the description of the protocol.
        Returns:
        See above.
      • setProtocolDescription

        void setProtocolDescription​(java.lang.String value)
        Sets the description of the protocol.
        Parameters:
        value - The value to set.
      • getProtocolIdentifier

        java.lang.String getProtocolIdentifier()
        Returns the identifier of the protocol.
        Returns:
        See above.
      • setProtocolIdentifier

        void setProtocolIdentifier​(java.lang.String value)
        Sets the identifier of the protocol.
        Parameters:
        value - The value to set.
      • getReagentSetDescription

        java.lang.String getReagentSetDescription()
        Returns the description of the reagent set.
        Returns:
        See above.
      • setReagentSetDescription

        void setReagentSetDescription​(java.lang.String value)
        Sets the identifier of the reagent.
        Parameters:
        value - The value to set.
      • getReagentSetIdentifier

        java.lang.String getReagentSetIdentifier()
        Returns the identifier of the Reagent set.
        Returns:
        See above.
      • setReagentSetIdentifier

        void setReagentSetIdentifier​(java.lang.String value)
        Sets the identifier of the reagent.
        Parameters:
        value - The value to set.
      • reload

        void reload​(Browser browser)
             throws ServiceException,
                    AccessException,
                    java.util.concurrent.ExecutionException
        Reloads the screen from OMERO.
        Parameters:
        browser - The data browser.
        Throws:
        ServiceException - Cannot connect to OMERO.
        AccessException - Cannot access data.
        java.util.concurrent.ExecutionException - A Facility can't be retrieved or instantiated.
      • importImages

        boolean importImages​(Client client,
                             java.lang.String... paths)
                      throws ServiceException,
                             ServerException,
                             AccessException,
                             java.io.IOException,
                             java.util.concurrent.ExecutionException
        Imports all images candidates in the paths to the screen in OMERO.
        Parameters:
        client - The client handling the connection.
        paths - Paths to the image files on the computer.
        Returns:
        If the import did not exit because of an error.
        Throws:
        ServiceException - Cannot connect to OMERO.
        AccessException - Cannot access data.
        ServerException - Server error.
        java.io.IOException - Cannot read file.
        java.util.concurrent.ExecutionException - A Facility can't be retrieved or instantiated.
      • importImage

        java.util.List<java.lang.Long> importImage​(Client client,
                                                   java.lang.String path)
                                            throws ServiceException,
                                                   AccessException,
                                                   ServerException,
                                                   java.util.concurrent.ExecutionException
        Imports one image file to the screen in OMERO.
        Parameters:
        client - The client handling the connection.
        path - Path to the image file on the computer.
        Returns:
        The list of IDs of the newly imported images.
        Throws:
        ServiceException - Cannot connect to OMERO.
        AccessException - Cannot access data.
        ServerException - Server error.
        java.util.concurrent.ExecutionException - A Facility can't be retrieved or instantiated.