Package uk.ac.gda.devices.pressurecell
Class PressureCell
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.device.DeviceBase
gda.device.scannable.ScannableBase
uk.ac.gda.devices.pressurecell.PressureCell
- All Implemented Interfaces:
Device,Scannable,Configurable,Findable,gda.observable.IObservable
Scannable interface to the pressure cell allowing it to be used in step scans.
Access to lower level controls are available via the controller instance from the
Access to lower level controls are available via the controller instance from the
getController() method.-
Field Summary
FieldsFields inherited from class gda.device.scannable.ScannableBase
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, VALUE_UNAVAILABLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiduk.ac.gda.devices.pressurecell.data.PressureCellDataControllerbooleanisBusy()Check if the Scannable is moving/operating.voidrawAsynchronousMoveTo(Object position) [Consider abstract] Trigger a move/operation to an internal/hardware position and return immediately.[Consider abstract] Read the position in its internal (user) representation.voidsetAcquire(boolean acquiring) voidsetController(PressureCellController controller) voidsetDataController(uk.ac.gda.devices.pressurecell.data.PressureCellDataController dataController) voidsetFilePath(String directory, String filename) voidsetJumpPressures(double from, double to) voidsetSamples(int before, int after) voidReturns when operation carried out by moveTo has completedvoidwaitWhileBusy(double timeoutInSeconds) Its like waitWhileBusy, has a timeout and will throws a DeviceException if the time limit is reached.Methods inherited from class gda.device.scannable.ScannableBase
__call__, __call__, __doc__, __getitem__, __len__, __repr__, __str__, asynchronousMoveTo, atCommandFailure, atLevelEnd, atLevelMoveStart, atLevelStart, atPointEnd, atPointStart, atScanEnd, atScanLineEnd, atScanLineStart, atScanStart, checkPositionValid, externalToInternal, getExtraNames, getInputNames, getLevel, getOutputFormat, getPosition, getScanMetadataAttribute, getScanMetadataAttributeNames, getScanMetadataAttributes, internalToExternal, isAt, moveTo, setExtraNames, setInputNames, setLevel, setOutputFormat, setScanMetadataAttribute, setScanMetadataAttributes, stop, throwExceptionIfInvalidTarget, toFormattedString, toString, validateScannable, valueUnavailableStringMethods inherited from class gda.device.DeviceBase
addIObserver, close, deleteIObserver, deleteIObservers, getAttribute, getName, getProtectionLevel, isBeingObserved, isConfigureAtStartup, notifyIObservers, setAttribute, setConfigureAtStartup, setName, setProtectionLevelMethods inherited from class gda.factory.ConfigurableBase
configure, 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
configure, isConfigureAtStartup, isConfigured, reconfigureMethods inherited from interface gda.device.Device
close, getAttribute, getProtectionLevel, setAttribute, setProtectionLevelMethods inherited from interface gda.observable.IObservable
addIObserver, deleteIObserver, deleteIObservers
-
Field Details
-
__doc__
- See Also:
-
-
Constructor Details
-
PressureCell
public PressureCell()
-
-
Method Details
-
setFilePath
- Throws:
DeviceException
-
setAcquire
- Throws:
DeviceException
-
getLastFileName
- Throws:
DeviceException
-
setSamples
- Throws:
DeviceException
-
rawGetPosition
Description copied from class:ScannableBase[Consider abstract] Read the position in its internal (user) representation.- Overrides:
rawGetPositionin classScannableBase- Returns:
- the value represented by this Scannable
- Throws:
DeviceException- See Also:
-
rawAsynchronousMoveTo
Description copied from class:ScannableBase[Consider abstract] Trigger a move/operation to an internal/hardware position and return immediately.- Overrides:
rawAsynchronousMoveToin classScannableBase- Parameters:
position- Position in its internal/hardware representation. e.g. with units and offsets removed- Throws:
DeviceException- See Also:
-
setJumpPressures
- Throws:
DeviceException
-
armJumpValve
- Throws:
DeviceException
-
getController
-
setController
-
isBusy
Description copied from interface:ScannableCheck if the Scannable is moving/operating.- Returns:
- true - if operation carried out by moveTo has not completed yet
- Throws:
DeviceException
-
waitWhileBusy
Description copied from class:ScannableBaseReturns when operation carried out by moveTo has completed If this is to be overriden, isBusy must also be valid. Although the pos and scan command currently use this method to determine if the Scannable is busy, this must not be relied upon.- Specified by:
waitWhileBusyin interfaceScannable- Overrides:
waitWhileBusyin classScannableBase- Throws:
DeviceExceptionInterruptedException
-
waitWhileBusy
Its like waitWhileBusy, has a timeout and will throws a DeviceException if the time limit is reached. If timeout invalid input: '<' 0, this will block indefinitely and is equivalent towaitWhileBusy()- Overrides:
waitWhileBusyin classScannableBase- Parameters:
timeoutInSeconds-- Throws:
DeviceExceptionInterruptedException
-
getDataController
public uk.ac.gda.devices.pressurecell.data.PressureCellDataController getDataController() -
setDataController
public void setDataController(uk.ac.gda.devices.pressurecell.data.PressureCellDataController dataController)
-