Package gda.scan

Class MultiRegionScan

java.lang.Object
gda.scan.ScanBase
gda.scan.MultiRegionScan
All Implemented Interfaces:
NestableScan, Scan, ScanChild, Serializable

public class MultiRegionScan extends ScanBase
A scan which holds a collection of scans. It runs them all, making sure that they use the same datahandler.

The scans must scan over the same scannable objects to keep the format of data output the same.

The multiscan must be created before any of the other scans. The other scans should be instantiated and the added using the addScan method. The order is important the make sure the scans do not create their own datahandler objects.

See Also:
  • Constructor Details

    • MultiRegionScan

      public MultiRegionScan(boolean createScanDataPointPipeline) throws Exception
      Parameters:
      createScanDataPointPipeline -
      Throws:
      Exception
    • MultiRegionScan

      public MultiRegionScan() throws Exception
      Constructor
      Throws:
      Exception
  • Method Details

    • addScan

      public void addScan(ScanBase toAdd)
      Add scan to scans that will be run.
      Parameters:
      toAdd -
    • addScan

      public void addScan(ScanBase toAdd, double stepTime)
      Add scan to scans that will be run.
      Parameters:
      toAdd -
      stepTime -
    • getTotalTime

      public double getTotalTime()
      If each scan has been added with addScan(ScanBase,int) then the time will be recorded and can be used for estimating how long the scan will take.
      Returns:
      time
    • getFirstScan

      public Scan getFirstScan()
      Return the first scan to be operated on.
      Returns:
      Scan
    • doCollection

      public void doCollection() throws Exception
      Calls the doCollection method of all the scans in the array of scans in turn.
      Specified by:
      doCollection in interface Scan
      Specified by:
      doCollection in class ScanBase
      Throws:
      Exception
    • getScans

      public List<ScanBase> getScans()
      Access to all scans in the list.
      Returns:
      List