Package fr.igred.omero.repository
Class PlateWrapper
- java.lang.Object
-
- fr.igred.omero.GenericObjectWrapper<T>
-
- fr.igred.omero.repository.GenericRepositoryObjectWrapper<PlateData>
-
- fr.igred.omero.repository.PlateWrapper
-
public class PlateWrapper extends GenericRepositoryObjectWrapper<PlateData>
-
-
Field Summary
Fields Modifier and Type Field Description static StringANNOTATION_LINK-
Fields inherited from class fr.igred.omero.GenericObjectWrapper
data
-
-
Constructor Summary
Constructors Constructor Description PlateWrapper(PlateData plate)Constructor of the class PlateWrapper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringannotationLinkType()Returns the type of annotation link for this objectPlateDataasPlateData()intgetColumnSequenceIndex()Returns the index indicating how to label a column.intgetDefaultSample()Returns the currently selected field or0.StringgetDescription()Gets the plate descriptionStringgetExternalIdentifier()Returns the external identifier of the plate.StringgetName()Gets the plate name.List<PlateAcquisitionWrapper>getPlateAcquisitions()Returns the plate acquisitions related to this plate.StringgetPlateType()Returns the type of plate e.g.intgetRowSequenceIndex()Returns the index indicating how to label a row.StringgetStatus()Returns the status of the plate.LengthgetWellOriginX(omero.model.enums.UnitsLength unit)Returns the x-coordinate in 2D-space of the well.LengthgetWellOriginY(omero.model.enums.UnitsLength unit)Returns the y-coordinate in 2D-space of the well.List<WellWrapper>getWells(Client client)Gets all wells in the plate available from OMERO.voidsetDefaultSample(int value)Sets the default sample.voidsetDescription(String description)Sets the description of the plate.voidsetExternalIdentifier(String value)Sets the external identifier.voidsetName(String name)Sets the name of the plate.voidsetStatus(String value)Sets the status.-
Methods inherited from class fr.igred.omero.repository.GenericRepositoryObjectWrapper
addFile, addMapAnnotation, addPairKeyValue, addTable, addTag, addTag, addTag, addTag, addTags, addTags, getFileAnnotations, getKeyValuePairs, getTable, getTables, getTags, getValue, removeLink, unlink
-
Methods inherited from class fr.igred.omero.GenericObjectWrapper
canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, delete, getCreated, getGroupId, getId, getOwner, saveAndUpdate, toString, wrap, wrap
-
-
-
-
Field Detail
-
ANNOTATION_LINK
public static final String ANNOTATION_LINK
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PlateWrapper
public PlateWrapper(PlateData plate)
Constructor of the class PlateWrapper.- Parameters:
plate- The plate contained in the PlateWrapper.
-
-
Method Detail
-
annotationLinkType
protected String annotationLinkType()
Returns the type of annotation link for this object- Specified by:
annotationLinkTypein classGenericRepositoryObjectWrapper<PlateData>- Returns:
- See above.
-
getName
public String getName()
Gets the plate name.- Specified by:
getNamein classGenericRepositoryObjectWrapper<PlateData>- Returns:
- See above.
-
setName
public void setName(String name)
Sets the name of the plate.- Parameters:
name- The name of the plate. Mustn't benull.- Throws:
IllegalArgumentException- If the name isnull.
-
asPlateData
public PlateData asPlateData()
- Returns:
- the PlateData contained.
-
getDescription
public String getDescription()
Gets the plate description- Specified by:
getDescriptionin classGenericRepositoryObjectWrapper<PlateData>- Returns:
- See above.
-
setDescription
public void setDescription(String description)
Sets the description of the plate.- Parameters:
description- The description of the plate.
-
getPlateAcquisitions
public List<PlateAcquisitionWrapper> getPlateAcquisitions()
Returns the plate acquisitions related to this plate.- Returns:
- See above.
-
getWells
public List<WellWrapper> getWells(Client client) throws ServiceException, AccessException, ExecutionException
Gets all wells in the plate available from OMERO.- Parameters:
client- The client handling the connection.- Returns:
- WellWrapper list.
- Throws:
ServiceException- Cannot connect to OMERO.AccessException- Cannot access data.ExecutionException- A Facility can't be retrieved or instantiated.
-
getColumnSequenceIndex
public int getColumnSequenceIndex()
Returns the index indicating how to label a column.- Returns:
- See above.
-
getRowSequenceIndex
public int getRowSequenceIndex()
Returns the index indicating how to label a row.- Returns:
- See above.
-
getDefaultSample
public int getDefaultSample()
Returns the currently selected field or0.- Returns:
- See above.
-
setDefaultSample
public void setDefaultSample(int value)
Sets the default sample.- Parameters:
value- The value to set.
-
getStatus
public String getStatus()
Returns the status of the plate.- Returns:
- See above.
-
setStatus
public void setStatus(String value)
Sets the status.- Parameters:
value- The value to set.
-
getExternalIdentifier
public String getExternalIdentifier()
Returns the external identifier of the plate.- Returns:
- See above.
-
setExternalIdentifier
public void setExternalIdentifier(String value)
Sets the external identifier.- Parameters:
value- The value to set.
-
getPlateType
public String getPlateType()
Returns the type of plate e.g. A 384-Well Plate, 96-Well Plate.- Returns:
- See above.
-
getWellOriginX
public Length getWellOriginX(omero.model.enums.UnitsLength unit) throws BigResult
Returns the x-coordinate in 2D-space of the well.- Parameters:
unit- The unit (may be null, in which case no conversion will be performed)- Returns:
- See above
- Throws:
BigResult- If an arithmetic under-/overflow occurred
-
getWellOriginY
public Length getWellOriginY(omero.model.enums.UnitsLength unit) throws BigResult
Returns the y-coordinate in 2D-space of the well.- Parameters:
unit- The unit (may be null, in which case no conversion will be performed)- Returns:
- See above
- Throws:
BigResult- If an arithmetic under-/overflow occurred
-
-