Class ScanDataListenerScannable

All Implemented Interfaces:
Device, Scannable, Configurable, Findable, IScanDataPointObserver, gda.observable.IObservable, gda.observable.IObserver

public abstract class ScanDataListenerScannable extends ScanEventHandlerScannable implements IScanDataPointObserver
  • Constructor Details

    • ScanDataListenerScannable

      public ScanDataListenerScannable()
  • Method Details

    • atScanEnd

      public void atScanEnd() throws DeviceException
      Description copied from class: ScannableBase
      Called for every Scannable at the end of a group of nested scans (or a single scan if that is the case).

      Note that this is only called if the Scan finishes normally, or has been requested to finish early. This will not be called if the scan finishes due to an exception of any kind. See Scannable.atCommandFailure() Default behaviour is to do nothing. Inheriting classes have the option to implement this if their specific behaviour requires it.

      Specified by:
      atScanEnd in interface Scannable
      Overrides:
      atScanEnd in class ScannableBase
      Throws:
      DeviceException
      See Also:
    • atScanStart

      public void atScanStart() throws DeviceException
      Description copied from class: ScannableBase
      Called for every Scannable at the start of a group of nested scans (or a single scan if that is the case) Default behaviour is to do nothing. Inheriting classes have the option to implement this if their specific behaviour requires it.
      Specified by:
      atScanStart in interface Scannable
      Overrides:
      atScanStart in class ScannableBase
      Throws:
      DeviceException
      See Also:
    • handleScanDataPoint

      public abstract void handleScanDataPoint(IScanDataPoint sdp) throws Exception
      Throws:
      Exception
    • handleScanEnd

      public abstract void handleScanEnd() throws Exception
      Throws:
      Exception
    • update

      public void update(Object source, Object arg)
      Specified by:
      update in interface gda.observable.IObserver
    • getPositionOfScannable

      protected int getPositionOfScannable(String columnName, IScanDataPoint sdp)
    • getPositionOfDetector

      protected int getPositionOfDetector(String columnName, IScanDataPoint sdp)
    • getScanDimensions

      protected int[] getScanDimensions(IScanDataPoint sdp)