Package gda.device.scannable
Class TwoJawSlitGap
- All Implemented Interfaces:
INeXusInfoWriteable,Device,Scannable,ScannableMotion,ScannableMotionUnits,Configurable,Findable,gda.observable.IObservable,gda.observable.IObserver
The gap of a two jaw slit.
Based on TwoJawSlitPosition.
-
Field Summary
Fields inherited from class gda.device.scannable.TwoJawSlitPosition
firstJaw, firstJawName, secondJaw, secondJawNameFields inherited from class gda.device.scannable.ScannableMotionUnitsBase
unitsComponentFields inherited from class gda.device.scannable.ScannableMotionBase
numberTries, toleranceFields inherited from class gda.device.scannable.ScannableBase
__doc__, DEFAULT_INPUT_NAME, DEFAULT_OUTPUT_FORMAT, extraNames, inputNames, level, outputFormatFields inherited from class gda.device.DeviceBase
DEFAULT_PROTECTION_LEVEL_PROPERTYFields inherited from interface gda.device.Scannable
ATTR_NEXUS_CATEGORY, ATTR_NX_CLASS, DEFAULT_INPUT_NAME, VALUE_UNAVAILABLEFields inherited from interface gda.device.ScannableMotion
FIRSTINPUTLIMITSFields inherited from interface gda.device.ScannableMotionUnits
HARDWAREUNITS, USERUNITS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected javax.measure.Quantity<javax.measure.quantity.Length>[]calculateTargets(Object position) given a position, where should the motors be moved to?protected double[]getLimits(javax.measure.Quantity<javax.measure.quantity.Length> firstJawMin, javax.measure.Quantity<javax.measure.quantity.Length> firstJawMax, javax.measure.Quantity<javax.measure.quantity.Length> secondJawMin, javax.measure.Quantity<javax.measure.quantity.Length> secondJawMax) [Consider abstract] Read the position in its internal (user) representation.voidsetXmlparametersfilename(String xmlparametersfilename) This string is the name of the xml parameters file which is used to store the beam centre used by these slits.Methods inherited from class gda.device.scannable.TwoJawSlitPosition
asynchronousMoveTo, calculateLimits, checkPositionValid, configure, getCurrentGap, getCurrentPosition, getFirstJaw, getFirstJawName, getSecondJaw, getSecondJawName, isBusy, moveTo, setFirstJaw, setFirstJawName, setSecondJaw, setSecondJawName, stop, update, userUnitFromUnitsComponentMethods inherited from class gda.device.scannable.ScannableMotionUnitsBase
addAcceptableUnit, externalToInternal, getAcceptableUnits, getAttribute, getHardwareUnitString, getInitialUserUnits, getOffset, getUserUnits, internalToExternal, isAt, setHardwareUnitString, setInitialUserUnits, setOffset, setOffset, setUserUnits, toFormattedStringMethods inherited from class gda.device.scannable.ScannableMotionBase
a, addPositionValidator, ar, checkPositionWithinGdaLimits, checkPositionWithinGdaLimits, completeInstantiation, generateScannableLimitsReport, getAdditionalPositionValidators, getFirstInputLimits, getInputLimits, getInputLimits, getLimitsComponent, getLowerGdaLimits, getNumberTries, getScalingFactor, getTolerances, getUpperGdaLimits, r, rawIsBusy, removePositionValidator, setAdditionalPositionValidators, setLimitsComponent, setLowerGdaLimits, setLowerGdaLimits, setNumberTries, setOffsetAndScalingComponent, setScalingFactor, setTolerance, setTolerances, setUpperGdaLimits, setUpperGdaLimits, writeNeXusInformation, writeNeXusInformationLimitsMethods inherited from class gda.device.scannable.ScannableBase
__call__, __call__, __doc__, __getitem__, __len__, __repr__, __str__, atCommandFailure, atLevelEnd, atLevelMoveStart, atLevelStart, atPointEnd, atPointStart, atScanEnd, atScanLineEnd, atScanLineStart, atScanStart, getExtraNames, getInputNames, getLevel, getOutputFormat, getPosition, getScanMetadataAttribute, getScanMetadataAttributeNames, getScanMetadataAttributes, rawAsynchronousMoveTo, setExtraNames, setInputNames, setLevel, setOutputFormat, setScanMetadataAttribute, setScanMetadataAttributes, throwExceptionIfInvalidTarget, toString, validateScannable, valueUnavailableString, waitWhileBusy, waitWhileBusyMethods inherited from class gda.device.DeviceBase
addIObserver, close, deleteIObserver, deleteIObservers, getName, getProtectionLevel, isBeingObserved, isConfigureAtStartup, notifyIObservers, setAttribute, setConfigureAtStartup, setName, setProtectionLevelMethods inherited from class gda.factory.ConfigurableBase
isConfigured, reconfigure, setConfiguredMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface gda.factory.Configurable
isConfigureAtStartup, isConfigured, reconfigureMethods inherited from interface gda.device.Device
close, getProtectionLevel, setAttribute, setProtectionLevelMethods inherited from interface gda.observable.IObservable
addIObserver, deleteIObserver, deleteIObserversMethods inherited from interface gda.device.Scannable
atCommandFailure, atLevelEnd, atLevelMoveStart, atLevelStart, atPointEnd, atPointStart, atScanEnd, atScanLineEnd, atScanLineStart, atScanStart, getExtraNames, getInputNames, getLevel, getOutputFormat, getPosition, getScanMetadataAttribute, getScanMetadataAttributeNames, getScanMetadataAttributes, setExtraNames, setInputNames, setLevel, setOutputFormat, setScanMetadataAttribute, setScanMetadataAttributes, waitWhileBusyMethods inherited from interface gda.device.ScannableMotion
a, ar, checkPositionWithinGdaLimits, checkPositionWithinGdaLimits, getLowerGdaLimits, getNumberTries, getScalingFactor, getTolerances, getUpperGdaLimits, r, setLowerGdaLimits, setLowerGdaLimits, setNumberTries, setScalingFactor, setTolerance, setTolerances, setUpperGdaLimits, setUpperGdaLimits
-
Constructor Details
-
TwoJawSlitGap
public TwoJawSlitGap()
-
-
Method Details
-
getLimits
protected double[] getLimits(javax.measure.Quantity<javax.measure.quantity.Length> firstJawMin, javax.measure.Quantity<javax.measure.quantity.Length> firstJawMax, javax.measure.Quantity<javax.measure.quantity.Length> secondJawMin, javax.measure.Quantity<javax.measure.quantity.Length> secondJawMax) - Overrides:
getLimitsin classTwoJawSlitPosition
-
rawGetPosition
Description copied from class:ScannableBase[Consider abstract] Read the position in its internal (user) representation.- Overrides:
rawGetPositionin classTwoJawSlitPosition- Returns:
- the value represented by this Scannable
- Throws:
DeviceException- See Also:
-
setXmlparametersfilename
This string is the name of the xml parameters file which is used to store the beam centre used by these slits. If this value is set to a non-null value then the behaviour of this scannable is changed to move the gap based on the beam centre in this xml file rather than use the current beam centre. This is useful for motors which drift or frequently fail.- Parameters:
xmlparametersfilename- The xmlparametersfilename to set.
-
getXmlparametersfilename
- Returns:
- Returns the xmlparametersfilename.
-
calculateTargets
protected javax.measure.Quantity<javax.measure.quantity.Length>[] calculateTargets(Object position) throws DeviceException Description copied from class:TwoJawSlitPositiongiven a position, where should the motors be moved to?- Overrides:
calculateTargetsin classTwoJawSlitPosition- Parameters:
position-- Returns:
- Quantity[2]
- Throws:
DeviceException
-