Package gda.scan

Class MultiScan

All Implemented Interfaces:
ContiguousScan, NestableScan, Scan, ScanChild, Serializable

public class MultiScan extends ScanBase implements ContiguousScan
See Also:
  • Constructor Details

  • Method Details

    • getDimension

      public int getDimension()
      Description copied from class: ScanBase
      default implementation. Classes that derive from ScanBase which want to support the reporting of scan dimensions -@see getDimensions need to override this method
      Specified by:
      getDimension in interface Scan
      Overrides:
      getDimension in class ScanBase
      Returns:
      the number of points of this scan object - the whole scan execution can be a hierarchy of parent scan objects and layers of child scan objects
      See Also:
    • getNumberOfContiguousPoints

      public int getNumberOfContiguousPoints()
      Specified by:
      getNumberOfContiguousPoints in interface ContiguousScan
    • prepareForCollection

      public void prepareForCollection() throws Exception
      Description copied from class: ScanBase
      This should called by all scans just before they start to collect data. It resets the static variable which the scan classes use and creates a dataHandler if one has not been created yet.
      Specified by:
      prepareForCollection in interface Scan
      Overrides:
      prepareForCollection in class ScanBase
      Throws:
      Exception
    • endScan

      protected void endScan() throws DeviceException, InterruptedException
      Description copied from class: ScanBase
      This should be called by all scans when they have finished, including when an exception has been raised.
      Overrides:
      endScan in class ScanBase
      Throws:
      DeviceException
      InterruptedException
    • doCollection

      public void doCollection() throws Exception
      Description copied from interface: Scan
      The method in which the work of the scan is performed. This method assumes that the data handler has already been created and the baton claimed.
      Specified by:
      doCollection in interface Scan
      Specified by:
      doCollection in class ScanBase
      Throws:
      Exception
    • getCurrentRunningScan

      public ScanBase getCurrentRunningScan()
    • setCurrentRunningScan

      public void setCurrentRunningScan(ScanBase currentRunningScan)