Class DetectorFillingMonitorScannable

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

public class DetectorFillingMonitorScannable extends BeamlineConditionMonitorBase
  • Constructor Details

    • DetectorFillingMonitorScannable

      public DetectorFillingMonitorScannable()
  • Method Details

    • testShouldPause

      protected void testShouldPause() throws DeviceException
      Description copied from class: BeamlineConditionMonitorBase
      The test is performed inside this method. An inheriting class could either wait inside this method until the condition has passed, or throw an Exception to end the scan, or throw a RedoScanLineThrowable to repeat the current scan.
      Specified by:
      testShouldPause in class BeamlineConditionMonitorBase
      Throws:
      DeviceException
      See Also:
    • 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:
    • atCommandFailure

      public void atCommandFailure()
      Description copied from class: ScannableBase
      Hook to be used by Scan and pos commands to inform the Scannable that an exception, such as a DeviceExcpetion, has occurred. However not called when the command is aborted using an InterruptionException. If a Scan is aborted then only Scannable.stop() will be called by the Scan or pos command.

      Useful for telling Scannables which hold state during a scan for example, to reset themselves. Used for example by CoordinatedMotionScannables. This hook should be used not in the same way as the stop hook. Default behaviour is to do nothing. Inheriting classes have the option to implement this if their specific behaviour requires it.

      Specified by:
      atCommandFailure in interface Scannable
      Overrides:
      atCommandFailure in class ScannableBase
      See Also:
    • setDuration

      public void setDuration(double duration)
    • getDuration

      public double getDuration()
    • setStartTime

      public void setStartTime(int startTime)
    • getStartTime

      public int getStartTime()
    • setFillingOverride

      public void setFillingOverride(boolean fillingOverride)
    • isFillingOverride

      public boolean isFillingOverride()