Class ExcaliburNDArraySimulator

java.lang.Object
gda.device.detector.areadetector.v17.impl.NDBaseImpl
uk.ac.gda.devices.excalibur.ExcaliburNDArraySimulator
All Implemented Interfaces:
ADCommon, GetPluginBaseAvailable, NDArray

public class ExcaliburNDArraySimulator extends NDBaseImpl implements NDArray
  • 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

      public Scannable getThreshold()
      Returns:
      Returns the threshold.
    • setThreshold

      public void setThreshold(Scannable threshold)
      Parameters:
      threshold - The threshold to set.
    • getFems

      public List<ExcaliburReadoutNodeFem> getFems()
      Returns:
      Returns the fems.
    • setFems

      public void setFems(List<ExcaliburReadoutNodeFem> fems)
      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

      public short[] getShortArrayData(int numberOfElements) throws Exception
      Specified by:
      getShortArrayData in interface NDArray
      Throws:
      Exception
    • getByteArrayData

      public byte[] getByteArrayData(int numberOfElements) throws Exception
      Specified by:
      getByteArrayData in interface NDArray
      Throws:
      Exception
    • getDeadRows

      public List<Integer> getDeadRows()
    • setDeadRows

      public void setDeadRows(List<Integer> deadRows)
    • getIntArrayData

      public int[] getIntArrayData(int numberOfElements) throws Exception
      Specified by:
      getIntArrayData in interface NDArray
      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

      public float[] getFloatArrayData(int numberOfElements) throws Exception
      Specified by:
      getFloatArrayData in interface NDArray
      Throws:
      Exception
    • getFloatArrayData

      public float[] getFloatArrayData() throws Exception
      Specified by:
      getFloatArrayData in interface NDArray
      Throws:
      Exception
    • reset

      public void reset() throws Exception
      Specified by:
      reset in interface NDArray
      Throws:
      Exception
    • getByteArrayData

      public byte[] getByteArrayData() throws Exception
      Specified by:
      getByteArrayData in interface NDArray
      Throws:
      Exception
    • getImageData

      public Object getImageData(int expectedNumPixels) throws Exception
      Specified by:
      getImageData in interface NDArray
      Throws:
      Exception
    • getDoubleArrayData

      public double[] getDoubleArrayData(int numberOfElements) throws Exception
      Specified by:
      getDoubleArrayData in interface NDArray
      Throws:
      Exception
    • getDoubleArrayData

      public double[] getDoubleArrayData() throws Exception
      Specified by:
      getDoubleArrayData in interface NDArray
      Throws:
      Exception
    • getDataType

      public NDPluginBase.DataType getDataType() throws Exception
      Description copied from interface: NDArray
      Get the data type of the last frame which reached the array plugin.
      Specified by:
      getDataType in interface NDArray
      Returns:
      the data type
      Throws:
      Exception