Package gda.px.camera
Class DummyCamera
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.device.DeviceBase
gda.px.camera.DummyCamera
- All Implemented Interfaces:
Device,Configurable,Findable,gda.observable.IObservable,Camera
Dummy class for the gda.px.camera.Camera interface
-
Field Summary
Fields inherited from class gda.device.DeviceBase
DEFAULT_PROTECTION_LEVEL_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckDetectorDistance(double distance) Returns whether or not the requested detector distance is within the available range.voidclose()Close and unconfigure the device.voidexpose()Perform a protein crystallography exposure according to the set parameters.doubleAcceleration of rotation axis in degrees/sec/sec used for ramp up and ramp down.doubleGet the current camera crystal to detector distance.doubledoubleGet the maximum allowed camera crystal to detector distance.doubleGet the minimum allowed camera crystal to detector distance.doubleReturns the rotation axis's omega position.booleanGet the current shutter state of the camera as a string.booleanisSpeedAchievable(double time, double oscillation) Based on passed parameters checks whether requested speed is achivable.voidmakeDetectorSafe(boolean wait) Returns the detector to a safe distance from the crystal position.voidmoveDetectorTo(double distance) Moves the detector to achieve a required crystal to detector distance.voidmoveOmegaBy(double distance) Move the rotation axis's omega axis by an increment.voidmoveOmegaTo(double position) Move the rotation axis's omega axis to a position.voidopen()Open the shutter.voidThis must be called after setting the exposure parameters (by calling setImageAngle, setImageTime and setImageStart) and before expose.voidsetAcceleration(double acceleration) Set the acceleration used for ramp up and ramp down in degrees/sec/secvoidThis should be called after an exposure to reset the omega motor parameters back to normal.voidsetImageAngularSize(double angle) Set the omega rotation during an exposure (in degrees).voidsetImageStartAngle(double position) Set the starting angle of the exposure.voidsetImageTime(double time) Set the total shutter open time during an exposure (in seconds).voidsetNumberPasses(int numPasses) Set the number of repeated passes across the oscillation range during an exposure.voidMove any motion of the rotation axis's omega axis.voidWait until the camera is no longer performing an exposure.voidWait until all elements of the camera are no longer moving.Methods inherited from class gda.device.DeviceBase
addIObserver, 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, toString, wait, wait, waitMethods inherited from interface gda.factory.Configurable
configure, isConfigureAtStartup, isConfigured, reconfigureMethods inherited from interface gda.device.Device
getAttribute, getProtectionLevel, setAttribute, setProtectionLevelMethods inherited from interface gda.observable.IObservable
addIObserver, deleteIObserver, deleteIObservers
-
Constructor Details
-
DummyCamera
public DummyCamera()
-
-
Method Details
-
checkDetectorDistance
Description copied from interface:CameraReturns whether or not the requested detector distance is within the available range.- Specified by:
checkDetectorDistancein interfaceCamera- Parameters:
distance-- Returns:
- true if it is, false if not
- Throws:
DeviceException
-
getDetectorDistance
Description copied from interface:CameraGet the current camera crystal to detector distance.- Specified by:
getDetectorDistancein interfaceCamera- Returns:
- Current camera crystal to detector distance.
- Throws:
DeviceException
-
getDetectorMotionTolerance
- Specified by:
getDetectorMotionTolerancein interfaceCamera- Throws:
DeviceException
-
getMaxDistance
Description copied from interface:CameraGet the maximum allowed camera crystal to detector distance.- Specified by:
getMaxDistancein interfaceCamera- Returns:
- Maximum camera crystal to detector distance.
- Throws:
DeviceException
-
getMinDistance
Description copied from interface:CameraGet the minimum allowed camera crystal to detector distance.- Specified by:
getMinDistancein interfaceCamera- Returns:
- Minimum camera crystal to detector distance.
- Throws:
DeviceException
-
isShutterOpen
Description copied from interface:CameraGet the current shutter state of the camera as a string.- Specified by:
isShutterOpenin interfaceCamera- Returns:
- Current shutter state.
- Throws:
DeviceException
-
makeDetectorSafe
Description copied from interface:CameraReturns the detector to a safe distance from the crystal position. At the end of data collection this may well be done to allow easy access to the crystal mounting area, for manual or automatic crystal mounting.- Specified by:
makeDetectorSafein interfaceCamera- Parameters:
wait- Whether to wait until the move is complete, true to wait.- Throws:
DeviceException
-
waitWhileExposing
Description copied from interface:CameraWait until the camera is no longer performing an exposure.- Specified by:
waitWhileExposingin interfaceCamera- Throws:
DeviceException
-
waitWhileMoving
Description copied from interface:CameraWait until all elements of the camera are no longer moving.- Specified by:
waitWhileMovingin interfaceCamera- Throws:
DeviceException
-
expose
Description copied from interface:CameraPerform a protein crystallography exposure according to the set parameters.This should be called after prepareForExposure. Then setDefaultSpeeds should be called afterwards.
- Specified by:
exposein interfaceCamera- Throws:
DeviceException
-
moveDetectorTo
Description copied from interface:CameraMoves the detector to achieve a required crystal to detector distance.- Specified by:
moveDetectorToin interfaceCamera- Parameters:
distance- Required crystal to detector distance.- Throws:
DeviceException
-
setImageAngularSize
Description copied from interface:CameraSet the omega rotation during an exposure (in degrees).- Specified by:
setImageAngularSizein interfaceCamera- Parameters:
angle- Omega rotation during an exposure (in degrees).- Throws:
DeviceException
-
setImageStartAngle
Description copied from interface:CameraSet the starting angle of the exposure.- Specified by:
setImageStartAnglein interfaceCamera- Parameters:
position- angle of the exposure (in degrees).- Throws:
DeviceException
-
setImageTime
Description copied from interface:CameraSet the total shutter open time during an exposure (in seconds).- Specified by:
setImageTimein interfaceCamera- Parameters:
time- Shutter open time during an exposure (in seconds).- Throws:
DeviceException
-
setNumberPasses
Description copied from interface:CameraSet the number of repeated passes across the oscillation range during an exposure. This is assumed to be 1 by default. If this number is greater than 1 then the exposure time for each pass is adjusted so that the total exposure time is that set by setImageTime.- Specified by:
setNumberPassesin interfaceCamera- Parameters:
numPasses-- Throws:
DeviceException
-
open
Description copied from interface:CameraOpen the shutter.- Specified by:
openin interfaceCamera- Throws:
DeviceException
-
getOmegaPosition
Description copied from interface:CameraReturns the rotation axis's omega position.- Specified by:
getOmegaPositionin interfaceCamera- Returns:
- Omega
- Throws:
DeviceException
-
isSpeedAchievable
Description copied from interface:CameraBased on passed parameters checks whether requested speed is achivable.- Specified by:
isSpeedAchievablein interfaceCamera- Parameters:
time- The exposure duration in seconds.oscillation- The rotation of the crystal during an exposure in degrees.- Returns:
- true for achievable.
- Throws:
DeviceException
-
moveOmegaBy
Description copied from interface:CameraMove the rotation axis's omega axis by an increment.- Specified by:
moveOmegaByin interfaceCamera- Parameters:
distance- The required increment in degrees.- Throws:
DeviceException
-
moveOmegaTo
Description copied from interface:CameraMove the rotation axis's omega axis to a position.- Specified by:
moveOmegaToin interfaceCamera- Parameters:
position- The required position in degrees.- Throws:
DeviceException
-
stopOmega
Description copied from interface:CameraMove any motion of the rotation axis's omega axis.- Specified by:
stopOmegain interfaceCamera- Throws:
DeviceException
-
close
Description copied from interface:DeviceClose and unconfigure the device.- Specified by:
closein interfaceDevice- Overrides:
closein classDeviceBase- Throws:
DeviceException
-
prepareForExposure
Description copied from interface:CameraThis must be called after setting the exposure parameters (by calling setImageAngle, setImageTime and setImageStart) and before expose. This move the omega axis to the correct position for its run-up before opening the shutter during the exposure.- Specified by:
prepareForExposurein interfaceCamera- Throws:
DeviceException
-
setDefaultSpeeds
Description copied from interface:CameraThis should be called after an exposure to reset the omega motor parameters back to normal. This can also be called during a experiment emergency stop to ensure the beamline is returned to a known status.- Specified by:
setDefaultSpeedsin interfaceCamera- Throws:
DeviceException
-
setAcceleration
Description copied from interface:CameraSet the acceleration used for ramp up and ramp down in degrees/sec/sec- Specified by:
setAccelerationin interfaceCamera- Parameters:
acceleration-- Throws:
DeviceException
-
getAcceleration
Description copied from interface:CameraAcceleration of rotation axis in degrees/sec/sec used for ramp up and ramp down.- Specified by:
getAccelerationin interfaceCamera- Returns:
- acceleration in degrees/sec/sec
- Throws:
DeviceException
-