Package org.eclipse.scanning.sequencer
Class LocationManager
java.lang.Object
org.eclipse.scanning.sequencer.LocationManager
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintdoubleReturns the total percent complete for the scan(s)intintintintvoidCalled during Software scans to increment counts.booleanbooleanSeek within the iterator for the given location.voidsetStepNumber(int stepNumber)
-
Constructor Details
-
LocationManager
- Throws:
ScanningException
-
-
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
Creates anIteratorover theIPositions in the scan. Also initialized the scan size which are incremented during the scan.- Returns:
- position iterator
- Throws:
ScanningException
-
seek
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:
-