Package uk.ac.gda.api.scan
Interface IImplicitScanObject
- All Superinterfaces:
IScanObject
- All Known Implementing Classes:
ImplicitScanObject
A scan object defined implicitly by start, stop and step positions.
Note that any or all of these values may not be specified (i.e. are
null).-
Nested Class Summary
Nested classes/interfaces inherited from interface uk.ac.gda.api.scan.IScanObject
IScanObject.ScanObjectType -
Method Summary
Modifier and TypeMethodDescriptionvoidCalculate the points of the scan.getStart()getStep()getStop()booleanhasStep()voidsetNumberPoints(int numberPoints) Set the number of points to move to.Methods inherited from interface uk.ac.gda.api.scan.IScanObject
arePointsValid, getNumberPoints, getScannable, getType, hasStart, hasStop, moveStep, moveToStart
-
Method Details
-
setNumberPoints
void setNumberPoints(int numberPoints) Set the number of points to move to. This should be used when the scan object does not initially have enough information to know this, for example if only start and stop are specified - this can be the case for scannable s2 in the scan commandscan s1 0 5 1 s2 0 10, where the second scannable only has start and step defined. This method will be called with to set the size of this scan object to be the same as that for scannable s1.- Parameters:
numberPoints-
-
getStart
Object getStart() -
getStop
Object getStop() -
getStep
Object getStep() -
hasStep
boolean hasStep() -
calculateScanPoints
void calculateScanPoints()Calculate the points of the scan. This method must be called beforeIScanObject.arePointsValid()is called and before the scan starts. The methodsetNumberPoints(int)should be called before calling this method if necessary (for example if stop isn't set).
-