Class LocationManager

java.lang.Object
org.eclipse.scanning.sequencer.LocationManager

public final class LocationManager extends Object
This class manages the location of various parts of the scan as the scan runs. It maintains a count of levels and creates a
  • Constructor Details

  • Method Details

    • getOuterSize

      public int getOuterSize()
    • getOuterCount

      public int getOuterCount()
    • getInnerSize

      public int getInnerSize()
    • getTotalSize

      public int getTotalSize()
    • getStepNumber

      public int getStepNumber()
    • setStepNumber

      public void setStepNumber(int stepNumber)
    • isInterpolatedMultiScan

      public boolean isInterpolatedMultiScan()
    • increment

      public void increment()
      Called during Software scans to increment counts. outerCount only relevant in Malcolm scans, changed with setter/getters stepNumber for Malcolm scans changed with setter/getters
    • createPositionIterator

      public Iterator<IPosition> createPositionIterator() throws ScanningException
      Creates an Iterator over the IPositions in the scan. Also initialized the scan size which are incremented during the scan.
      Returns:
      position iterator
      Throws:
      ScanningException
    • seek

      public IPosition seek(int location, Iterator<IPosition> iterator) throws ScanningException
      Seek within the iterator for the given location.
      Parameters:
      location -
      iterator -
      Returns:
      the position at the given location.
      Throws:
      ScanningException
    • isInnerScan

      public boolean isInnerScan()
    • getOverallCount

      public int getOverallCount()
    • getOuterPercent

      public double getOuterPercent()
      Returns the total percent complete for the scan(s)
      Returns: