Package fr.igred.omero.repository
Class PlateAcquisitionWrapper
- java.lang.Object
-
- fr.igred.omero.GenericObjectWrapper<T>
-
- fr.igred.omero.repository.GenericRepositoryObjectWrapper<PlateAcquisitionData>
-
- fr.igred.omero.repository.PlateAcquisitionWrapper
-
public class PlateAcquisitionWrapper extends GenericRepositoryObjectWrapper<PlateAcquisitionData>
Class containing a PlateAcquisitionData object.Wraps function calls to the PlateAcquisitionData contained.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class fr.igred.omero.repository.GenericRepositoryObjectWrapper
GenericRepositoryObjectWrapper.ReplacePolicy
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ANNOTATION_LINK
Annotation link name for this type of object-
Fields inherited from class fr.igred.omero.GenericObjectWrapper
data
-
-
Constructor Summary
Constructors Constructor Description PlateAcquisitionWrapper(PlateAcquisitionData plateAcquisition)
Constructor of the class PlateAcquisitionWrapper.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected java.lang.String
annotationLinkType()
Returns the type of annotation link for this objectPlateAcquisitionData
asPlateAcquisitionData()
Deprecated.Returns the PlateAcquisitionData contained.java.lang.String
getDescription()
Gets the plate acquisition descriptionjava.sql.Timestamp
getEndTime()
Returns the time when the last image was collected.java.util.List<ImageWrapper>
getImages(Client client)
Retrieves the images contained in the wells in the parent plate.java.lang.String
getLabel()
Returns the label associated to the plate acquisition.int
getMaximumFieldCount()
Returns the maximum number of fields in any well.java.lang.String
getName()
Gets the plate acquisition name.java.util.List<PlateWrapper>
getPlates(Client client)
Returns the (updated) parent plate as a singleton list.long
getRefPlateId()
Returns the id of the plate of reference.java.util.List<ScreenWrapper>
getScreens(Client client)
Retrieves the screens containing the parent plates.java.sql.Timestamp
getStartTime()
Returns the time when the first image was collected.java.util.List<WellWrapper>
getWells(Client client)
Retrieves the wells contained in the parent plate.<A extends GenericAnnotationWrapper<?>>
voidlink(Client client, A annotation)
Adds a tag to the object in OMERO, if possible.void
setDescription(java.lang.String description)
Sets the description of the plate acquisition.void
setName(java.lang.String name)
Sets the name of the plate acquisition.void
setRefPlateId(long refPlateId)
Sets the id of the plate this plate acquisition is for.-
Methods inherited from class fr.igred.omero.repository.GenericRepositoryObjectWrapper
addAndReplaceFile, addAndReplaceFile, addAndReplaceTable, addAndReplaceTable, addFile, addFileAnnotation, addKeyValuePair, addMapAnnotation, addPairKeyValue, addTable, addTag, addTag, addTag, addTags, addTags, copyAnnotationLinks, getAnnotations, getFileAnnotations, getKeyValuePairs, getMapAnnotations, getMyRating, getTable, getTables, getTags, getValue, importImage, importImages, isLinked, link, linkIfNotLinked, rate, removeLink, unlink
-
Methods inherited from class fr.igred.omero.GenericObjectWrapper
asDataObject, canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, delete, distinct, flatten, getCreated, getGroupId, getId, getOwner, saveAndUpdate, toString, wrap, wrap
-
-
-
-
Field Detail
-
ANNOTATION_LINK
public static final java.lang.String ANNOTATION_LINK
Annotation link name for this type of object- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PlateAcquisitionWrapper
public PlateAcquisitionWrapper(PlateAcquisitionData plateAcquisition)
Constructor of the class PlateAcquisitionWrapper.- Parameters:
plateAcquisition
- The plate acquisition contained in the PlateAcquisitionWrapper.
-
-
Method Detail
-
annotationLinkType
protected java.lang.String annotationLinkType()
Returns the type of annotation link for this object- Specified by:
annotationLinkType
in classGenericRepositoryObjectWrapper<PlateAcquisitionData>
- Returns:
- See above.
-
getName
public java.lang.String getName()
Gets the plate acquisition name.- Specified by:
getName
in classGenericRepositoryObjectWrapper<PlateAcquisitionData>
- Returns:
- See above.
-
setName
public void setName(java.lang.String name)
Sets the name of the plate acquisition.- Parameters:
name
- The name of the plate acquisition. Mustn't benull
.- Throws:
java.lang.IllegalArgumentException
- If the name isnull
.
-
asPlateAcquisitionData
@Deprecated public PlateAcquisitionData asPlateAcquisitionData()
Deprecated.Returns the PlateAcquisitionData contained. UseGenericObjectWrapper.asDataObject()
instead.- Returns:
- See above.
-
getDescription
public java.lang.String getDescription()
Gets the plate acquisition description- Specified by:
getDescription
in classGenericRepositoryObjectWrapper<PlateAcquisitionData>
- Returns:
- See above.
-
setDescription
public void setDescription(java.lang.String description)
Sets the description of the plate acquisition.- Parameters:
description
- The description of the plate acquisition.
-
link
public <A extends GenericAnnotationWrapper<?>> void link(Client client, A annotation) throws ServiceException, AccessException, java.util.concurrent.ExecutionException
Adds a tag to the object in OMERO, if possible.- Overrides:
link
in classGenericRepositoryObjectWrapper<PlateAcquisitionData>
- Type Parameters:
A
- The type of the annotation.- Parameters:
client
- The client handling the connection.annotation
- Tag to be added.- Throws:
ServiceException
- Cannot connect to OMERO.AccessException
- Cannot access data.java.util.concurrent.ExecutionException
- A Facility can't be retrieved or instantiated.
-
getScreens
public java.util.List<ScreenWrapper> getScreens(Client client) throws ServiceException, AccessException, java.util.concurrent.ExecutionException, OMEROServerError
Retrieves the screens containing the parent plates.- 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.OMEROServerError
- Server error.
-
getPlates
public java.util.List<PlateWrapper> getPlates(Client client) throws ServiceException, AccessException, java.util.concurrent.ExecutionException
Returns the (updated) parent plate as a singleton list.- 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.
-
getWells
public java.util.List<WellWrapper> getWells(Client client) throws ServiceException, AccessException, java.util.concurrent.ExecutionException
Retrieves the wells contained in the parent plate.- 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.
-
getImages
public java.util.List<ImageWrapper> getImages(Client client) throws ServiceException, AccessException, java.util.concurrent.ExecutionException
Retrieves the images contained in the wells in the parent plate.- 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.
-
getLabel
public java.lang.String getLabel()
Returns the label associated to the plate acquisition.- Returns:
- See above.
-
getRefPlateId
public long getRefPlateId()
Returns the id of the plate of reference.- Returns:
- See above.
-
setRefPlateId
public void setRefPlateId(long refPlateId)
Sets the id of the plate this plate acquisition is for.- Parameters:
refPlateId
- The value to set.
-
getStartTime
public java.sql.Timestamp getStartTime()
Returns the time when the first image was collected.- Returns:
- See above.
-
getEndTime
public java.sql.Timestamp getEndTime()
Returns the time when the last image was collected.- Returns:
- See above.
-
getMaximumFieldCount
public int getMaximumFieldCount()
Returns the maximum number of fields in any well.- Returns:
- See above.
-
-