Package uk.ac.gda.devices.insitu.model
Class PlateType
java.lang.Object
gda.factory.ConfigurableBase
uk.ac.gda.mx.ispyb.api.container.ContainerTypeBase
uk.ac.gda.devices.insitu.model.PlateType
- All Implemented Interfaces:
Configurable,Serializable,ContainerType
- Direct Known Subclasses:
GreinerCrystalQuickX2,UnloadedPlateType
PlateType is used to identify the geometry specification of a plate, and enable conversion between
physical coordinates and logical well indices.
A full specification must include values for typeId, number of rows and columns, and number of drops per well.
For a uniformly spaced rectangular layout of wells, use parameters for uniform spacing:
(a) set hWellSpacing, vWellSpacing, hWellOffSetList(0), vWellOffsetList(0)
(b) during configuration, call initialiseUniformSpacing() that should return true
- See Also:
-
Field Summary
FieldsFields inherited from class uk.ac.gda.mx.ispyb.api.container.ContainerTypeBase
capacity, category, label, typeId -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDefault implementation for classes that do not have to do any specific configuration.
Classes that do their own configuration should *not* call this superclass function, as it may cause the object to appear configured before it really is.copy()String[]String[]getFocalOffset(int column) gethDropOffset(int index) gethWellOffset(int index) intintintString[]intintgetOffsets(int row, int column, int drop) String[]getSafeOffset(int index) getvDropOffset(int index) getvWellOffset(int index) intgetWellIndex(Well well) static intbooleanbooleanIndicates whether this object should be configured at startup.booleanbooleanbooleanparseWellEntry(String entry) static WellparseWellEntry(PlateType ptype, String entry) voidRe-initialisation of values and states.voidsetColumnLabels(String[] columnLabels) voidsetDropsPerWell(int drops) voidsetFlipped(boolean flipped) By default (isFlipped is false) columns are numbered from 0, from right to left as viewed from the detectorvoidsetFocalOffset(int column, Double offset) voidsetFocalOffsetList(List<Double> focalOffsetList) voidsethDropOffset(int index, Double hDropOffset) voidsethDropOffsetList(List<Double> hDropOffsetList) voidsethDropWidth(Double hDropWidth) voidsethWellOffset(int index, Double hWellOffset) voidsethWellOffsetList(List<Double> hWellOffsetList) voidsethWellSpacing(Double hWellSpacing) voidsetNumColumns(int columns) voidsetNumRows(int rows) voidsetPortrait(boolean isPortrait) voidsetRowLabels(String[] rowLabels) voidsetSafeOffsetList(List<Double> safeOffsetList) voidvoidsetUniformWellSpacing(boolean isUniformWellSpacing) voidsetvDropOffset(int index, Double vDropOffset) voidsetvDropOffsetList(List<Double> vDropOffsetList) voidsetvDropWidth(Double vDropWidth) voidsetvWellOffset(int index, Double vWellOffset) voidsetvWellOffsetList(List<Double> vWellOffsetList) voidsetvWellSpacing(Double vWellSpacing) voidsetZExpected(Double zExpected) booleanvalidateWell(Well well) Methods inherited from class uk.ac.gda.mx.ispyb.api.container.ContainerTypeBase
getCapacity, getCategory, getLabel, getTypeId, setCapacity, setCategory, setLabelMethods inherited from class gda.factory.ConfigurableBase
isConfigured, setConfiguredMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface gda.factory.Configurable
isConfigured
-
Field Details
-
ORIGIN
- See Also:
-
-
Constructor Details
-
PlateType
public PlateType()
-
-
Method Details
-
indexOf
-
parseWellEntry
- Throws:
IllegalArgumentException
-
configure
Description copied from class:ConfigurableBaseDefault implementation for classes that do not have to do any specific configuration.
Classes that do their own configuration should *not* call this superclass function, as it may cause the object to appear configured before it really is.- Specified by:
configurein interfaceConfigurable- Overrides:
configurein classConfigurableBase- Throws:
FactoryException- if there is an error in configuration e.g. required variable not set or cannot connect to device
-
reconfigure
Description copied from interface:ConfigurableRe-initialisation of values and states.Moved from Reconfigurable which has been deleted
- Specified by:
reconfigurein interfaceConfigurable- Overrides:
reconfigurein classConfigurableBase- Throws:
FactoryException
-
isConfigureAtStartup
public boolean isConfigureAtStartup()Description copied from interface:ConfigurableIndicates whether this object should be configured at startup.Moved from ConditionallyConfigurable which has been deleted
- Specified by:
isConfigureAtStartupin interfaceConfigurable- Overrides:
isConfigureAtStartupin classConfigurableBase
-
copy
-
getAlphaLabels
-
getColumnLabels
-
getFocalOffset
- Returns:
- Returns value copy of focalOffset for column.
-
getFocalOffsetList
-
gethDropOffset
- Returns:
- Returns value copy of the hDropOffset at index
-
gethDropOffsetList
- Returns:
- Returns value copy of the hDropOffsetList.
-
gethDropWidth
-
getNumericLabels
-
gethWellOffset
- Returns:
- Returns value copy of the hWellOffset at index.
-
gethWellOffsetList
- Returns:
- Returns value copy of the hWellOffsetList.
-
gethWellSpacing
- Returns:
- Returns value copy of the hWellSpacing
-
getNumColumns
public int getNumColumns() -
getNumDrops
public int getNumDrops() -
getNumDropsPerWell
public int getNumDropsPerWell() -
getNumRows
public int getNumRows() -
getNumWells
public int getNumWells() -
getOffsets
-
getRowLabels
-
getSafeOffset
-
getSafeOffsetList
-
getvDropOffset
- Returns:
- Returns the vDropOffset.
-
getvDropOffsetList
- Returns:
- Returns value copy of the vDropOffsetList.
-
getvDropWidth
-
getvWellOffset
- Returns:
- Returns value copy of the vWellOffset at index.
-
getvWellOffsetList
- Returns:
- Returns value copy of the vWellOffsetList.
-
getvWellSpacing
- Returns:
- Returns value copy of the vWellSpacing.
-
getWellIndex
-
getZExpected
-
initialiseUniformSpacing
public boolean initialiseUniformSpacing() -
isFlipped
public boolean isFlipped() -
isPortrait
public boolean isPortrait() -
isUniformWellSpacing
public boolean isUniformWellSpacing()- Returns:
- Returns the isUniformWellSpacing.
-
parseWellEntry
- Throws:
IllegalArgumentException
-
setColumnLabels
-
setDropsPerWell
public void setDropsPerWell(int drops) -
setFlipped
public void setFlipped(boolean flipped) By default (isFlipped is false) columns are numbered from 0, from right to left as viewed from the detector- Parameters:
flipped-
-
setFocalOffset
-
setFocalOffsetList
- Parameters:
focalOffsetList- The focalOffsetList values to set.
-
sethDropOffset
- Parameters:
hDropOffset- The hDropOffset to set.
-
sethDropOffsetList
- Parameters:
hDropOffsetList- The hDropOffsetList to set.
-
sethDropWidth
-
sethWellOffset
- Parameters:
hWellOffset- The hWellOffset to set.
-
sethWellOffsetList
- Parameters:
hWellOffsetList- The hWellOffsetList to set.
-
sethWellSpacing
- Parameters:
hWellSpacing- The hWellSpacing to set.
-
setNumColumns
public void setNumColumns(int columns) -
setNumRows
public void setNumRows(int rows) -
setPortrait
public void setPortrait(boolean isPortrait) -
setRowLabels
-
setSafeOffsetList
-
setTypeId
- Specified by:
setTypeIdin interfaceContainerType- Overrides:
setTypeIdin classContainerTypeBase
-
setUniformWellSpacing
public void setUniformWellSpacing(boolean isUniformWellSpacing) - Parameters:
isUniformWellSpacing- The isUniformWellSpacing to set.
-
setvDropOffset
- Parameters:
vDropOffset- The vDropOffset to set.
-
setvDropOffsetList
- Parameters:
vDropOffsetList- The vDropOffsetList to set.
-
setvDropWidth
-
setvWellOffset
- Parameters:
vWellOffset- The vWellOffset to set.
-
setvWellOffsetList
- Parameters:
vWellOffsetList- The vWellOffsetList to set.
-
setvWellSpacing
- Parameters:
vWellSpacing- The vWellSpacing to set.
-
setZExpected
-
validateWell
-