Package uk.ac.diamond.daq.scanning
Class BeamScannable
java.lang.Object
- All Implemented Interfaces:
IActivatable,IBoundable<Double>,ILevel,INameable,IScanAttributeContainer,IScannable<Double>,ITimeoutable,ITolerable<Double>,IPositionListenable
-
Field Summary
Fields inherited from class org.eclipse.scanning.api.AbstractScannable
delegate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidabort()Call to terminate a movement before it is complete, for example when ScannablePositioner#abort is called due to an exception with another IScannable's movementdoubleThe position is the value which should be: 1.voidsetBeamSize(double beamSize) setPosition(Double value, IPosition position) Moves to the position required, blocking until it is complete.Methods inherited from class org.eclipse.scanning.api.AbstractScannable
addPositionListener, getDeviceInformation, getLevel, getMaximum, getMinimum, getModel, getScanAttribute, getScanAttributeNames, getTolerance, isActivated, register, removePositionListener, setActivated, setLevel, setMaximum, setMinimum, setModel, setPublisher, setScanAttribute, setToleranceMethods inherited from class org.eclipse.scanning.api.AbstractNameableTimeoutable
equals, getTimeout, hashCode, setTimeout, toStringMethods inherited from class org.eclipse.scanning.api.AbstractNameable
getName, setNameMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.scanning.api.IBoundable
getPermittedValuesMethods inherited from interface org.eclipse.scanning.api.scan.event.IPositionListenable
getPositioner, setPositionerMethods inherited from interface org.eclipse.scanning.api.IScannable
getUnit, setPositionMethods inherited from interface org.eclipse.scanning.api.ITimeoutable
getTimeout, setTimeout
-
Constructor Details
-
BeamScannable
public BeamScannable()
-
-
Method Details
-
getPosition
Description copied from interface:IBoundableThe position is the value which should be: 1. Greater than or equal to the lower 2. Less than or equal to the upper. 3. One of the permitted values, if they are not null.- Returns:
- Throws:
ScanningException- if the position cannot be read for any reason
-
setPosition
Description copied from interface:IScannableMoves to the position required, blocking until it is complete. Similar to moveTo(...) in GDA8- Parameters:
value- that this scalar should take.position- if within in a scan or null if not within a scan.- Returns:
- the new position attained by the device, if known. (Saves additional call to getPosition()) If not know the demand value is returned. NOTE if null is returned the system will call getPosition() again.
- Throws:
ScanningException
-
setBeamSize
public void setBeamSize(double beamSize) -
getBeamSize
public double getBeamSize() -
abort
Description copied from interface:IScannableCall to terminate a movement before it is complete, for example when ScannablePositioner#abort is called due to an exception with another IScannable's movement
-