Package uk.ac.gda.devices.excalibur
Class ExcaliburNDArraySimulator
java.lang.Object
gda.device.detector.areadetector.v17.impl.NDBaseImpl
uk.ac.gda.devices.excalibur.ExcaliburNDArraySimulator
- All Implemented Interfaces:
ADCommon,GetPluginBaseAvailable,NDArray
-
Field Summary
Fields inherited from interface gda.device.detector.areadetector.v17.NDArray
ARRAY_DATA, DATA_TYPE_RBV -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]byte[]getByteArrayData(int numberOfElements) doubledoubleGet the data type of the last frame which reached the array plugin.double[]double[]getDoubleArrayData(int numberOfElements) getFems()float[]float[]getFloatArrayData(int numberOfElements) doubledoublegetImageData(int expectedNumPixels) int[]getIntArrayData(int numberOfElements) short[]getShortArrayData(int numberOfElements) doublegetWidth()doublebooleanvoidreset()voidsetCentre(double centre) voidsetCentreRandomFactor(double centreRandomFactor) voidsetDeadRows(List<Integer> deadRows) voidsetFems(List<ExcaliburReadoutNodeFem> fems) voidsetHeight(double height) voidsetHeightRandomFactor(double heightRandomFactor) voidsetReportSCurve(boolean reportSCurve) voidsetThreshold(Scannable threshold) voidsetWidth(double width) voidsetWidthRandomFactor(double widthRandomFactor) Methods inherited from class gda.device.detector.areadetector.v17.impl.NDBaseImpl
getPluginBase, getPortName_RBV, setPluginBaseMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface gda.device.detector.areadetector.v17.ADCommon
getPortName_RBVMethods inherited from interface gda.device.detector.areadetector.v17.GetPluginBaseAvailable
getPluginBase
-
Constructor Details
-
ExcaliburNDArraySimulator
public ExcaliburNDArraySimulator()
-
-
Method Details
-
isReportSCurve
public boolean isReportSCurve()- Returns:
- Returns the reportSCurve. If false the data for each pixel is the value of a Gaussian If true the data for each pixel is the cumulativeProbability of a Gaussian
-
setReportSCurve
public void setReportSCurve(boolean reportSCurve) - Parameters:
reportSCurve- The reportSCurve to set.
-
getThreshold
- Returns:
- Returns the threshold.
-
setThreshold
- Parameters:
threshold- The threshold to set.
-
getFems
- Returns:
- Returns the fems.
-
setFems
- Parameters:
fems- The fems to set.
-
getHeight
public double getHeight() -
setHeight
public void setHeight(double height) -
getCentre
public double getCentre() -
setCentre
public void setCentre(double centre) -
getWidth
public double getWidth() -
setWidth
public void setWidth(double width) -
getShortArrayData
- Specified by:
getShortArrayDatain interfaceNDArray- Throws:
Exception
-
getByteArrayData
- Specified by:
getByteArrayDatain interfaceNDArray- Throws:
Exception
-
getDeadRows
-
setDeadRows
-
getIntArrayData
- Specified by:
getIntArrayDatain interfaceNDArray- Throws:
Exception
-
getHeightRandomFactor
public double getHeightRandomFactor() -
setHeightRandomFactor
public void setHeightRandomFactor(double heightRandomFactor) -
getWidthRandomFactor
public double getWidthRandomFactor() -
setWidthRandomFactor
public void setWidthRandomFactor(double widthRandomFactor) -
getCentreRandomFactor
public double getCentreRandomFactor() -
setCentreRandomFactor
public void setCentreRandomFactor(double centreRandomFactor) -
getFloatArrayData
- Specified by:
getFloatArrayDatain interfaceNDArray- Throws:
Exception
-
getFloatArrayData
- Specified by:
getFloatArrayDatain interfaceNDArray- Throws:
Exception
-
reset
-
getByteArrayData
- Specified by:
getByteArrayDatain interfaceNDArray- Throws:
Exception
-
getImageData
- Specified by:
getImageDatain interfaceNDArray- Throws:
Exception
-
getDoubleArrayData
- Specified by:
getDoubleArrayDatain interfaceNDArray- Throws:
Exception
-
getDoubleArrayData
- Specified by:
getDoubleArrayDatain interfaceNDArray- Throws:
Exception
-
getDataType
Description copied from interface:NDArrayGet the data type of the last frame which reached the array plugin.- Specified by:
getDataTypein interfaceNDArray- Returns:
- the data type
- Throws:
Exception
-