Package gda.scan
Class ScanPositionProviderFactory
java.lang.Object
gda.scan.ScanPositionProviderFactory
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ScanPositionProviderstatic <T> ScanPositionProvidercreate(T[] points) static ScanPositionProvidercreateFromRegion(List<List<Object>> regionsList) Creates aScanPositionProviderfrom a list of lists.static intgetNumberSteps(Object start, Object stop, Object step, int parameterSize) Assuming the objects can be converted into doubles, this calculates the number of steps for the given InputLength
-
Method Details
-
getNumberSteps
public static int getNumberSteps(Object start, Object stop, Object step, int parameterSize) throws Exception Assuming the objects can be converted into doubles, this calculates the number of steps for the given InputLength- Returns:
- int
- Throws:
Exception
-
create
- Parameters:
pointsList-- Returns:
- ScanPositionProvider
-
create
- Type Parameters:
T- type of positions- Parameters:
points-- Returns:
- ScanPositionProvider e.g. ScanPositionProviderFactory.create(new Double[]{0., 1., 2., 3.,4.,5.});
-
createFromRegion
Creates aScanPositionProviderfrom a list of lists. This method is called from python code (where the lists arePyTuples, so it should not be removed.- Parameters:
regionsList- list of regions - each inner list is start, stop, step- Returns:
- ScanPositionProvider
-