Package gda.px.detector
Class DummyAreaDetectorPilatus
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.device.DeviceBase
gda.px.detector.DetectorBase
gda.px.detector.AreaDetectorPilatusBase
gda.px.detector.DummyAreaDetectorPilatus
- All Implemented Interfaces:
Device,Stoppable,Configurable,Findable,gda.observable.IObservable,Detector,IAreaDetectorPilatus,IPilatusDetector
@ServiceInterface(IPilatusDetector.class)
public class DummyAreaDetectorPilatus
extends AreaDetectorPilatusBase
-
Field Summary
Fields inherited from class gda.px.detector.DetectorBase
defaultSuffixFields inherited from class gda.device.DeviceBase
DEFAULT_PROTECTION_LEVEL_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void_abort()protected intprotected int_getGain()protected intprotected int_getMode()protected booleanonly way to guarantee that an acquire is done is by looking at the acquire state, according to Ulrik Pprotected boolean_isBusy()protected void_setAlpha(double alpha) protected void_setAutoIncrement(PilatusAutoIncrement selectedMode) protected void_setBeamX(double beamX) protected void_setBeamY(double beamY) protected void_setCbfTemplate(String cbfTemplate) protected void_setChi(double chi) protected void_setChiIncrement(double chiIncrement) protected void_setDetectorDistance(double distanceInMm) protected void_setDetectorVOffset(double offset) protected void_setFlux(double flux) protected void_setGain(PilatusGain gain) protected void_setGapFill(int gapFillMenuEntry) protected void_setImageMode(PilatusImageMode selectedMode) protected void_setKappa(double kappa) protected void_setMode(PilatusTriggerMode selectedMode) protected void_setOmega(double omega) protected void_setOmegaIncrement(double omegaIncrement) protected void_setOscillationAxis(String oscAxis) protected void_setOscillationSize(double oscSize) protected void_setPhi(double phi) protected void_setPhiIncrement(double phiIncrement) protected void_setPolarization(double polarization) protected void_setStartAngle(double startAngle) protected void_setTransmission(double transmission) protected void_setTwoTheta(double twoTheta) protected void_setWavelength(double wavelength) protected void_start()protected void_waitForArmed(int timeoutInSeconds) voidvoidvoiddoubleintintintdoubledoubleReturns the threshold energy (in eV).booleanvoidsetAutoApplyThresholdGain(boolean autoApply) Sets whether changes to threshold/gain take effect immediately.voidsetDelayTime(double delaySec) voidsetEnergyDemand(double energyDemand) voidsetExposurePeriod(double time) voidsetExposureTime(double time) voidsetFileformat(String format) voidsetFileHeader(String str) voidsetFilenumber(int fileNumber) voidsetFilepath(String pathname) voidsetFileprefix(String prefix) voidsetNumberOfExposures(int numExposures) voidsetNumberOfImages(int numImages) voidsetThresholdEnergy(double threshold) Sets the threshold energy (in eV).voidStart data collectionMethods inherited from class gda.px.detector.AreaDetectorPilatusBase
abort, addIObserver, close, deleteIObserver, deleteIObservers, getActualGain, getAttribute, getAutoIncrement, getAutoRunNumberUtils, getDetectorStatus, getDimensionInMm, getGain, getImageMB, getImageMode, getLastImageName, getMaxDimension, getMinExposureTime, getMinStillExposureTime, getMode, getModel, getPixelSize, getProtectionLevel, getShortName, getSizeX, getSizeY, getThresholdTime, getTypeString, initialiseDataSet, isBusy, isSpecialMode, reconfigure, sendParameters, setAttribute, setAutoIncrement, setAutoRunNumberUtils, setGain, setGapFill, setImageMode, setMinExposureTime, setMinStillExposureTime, setMode, setModel, setPilatusType, setProtectionLevel, setSpecialMode, stop, throwRoiModeUnsupportedException, waitForReadyMethods inherited from class gda.px.detector.DetectorBase
getCurrentParameters, getId, getSuffix, isRoiModeAllowed, setCurrentParameters, setDetectorStatus, setId, setMaxDimension, setRoiModeAllowed, setSuffix, setTypeStringMethods inherited from class gda.device.DeviceBase
getName, isBeingObserved, isConfigureAtStartup, notifyIObservers, setConfigureAtStartup, setNameMethods inherited from class gda.factory.ConfigurableBase
configure, isConfigured, 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
-
Constructor Details
-
DummyAreaDetectorPilatus
- Throws:
DeviceException
-
-
Method Details
-
setAutoApplyThresholdGain
Description copied from interface:IPilatusDetectorSets whether changes to threshold/gain take effect immediately.- Throws:
DeviceException
-
applyThreshold
- Throws:
DeviceException
-
setThresholdEnergy
Description copied from interface:IPilatusDetectorSets the threshold energy (in eV).- Parameters:
threshold- threshold energy, in eV- Throws:
DeviceException
-
getThresholdEnergy
Description copied from interface:IPilatusDetectorReturns the threshold energy (in eV).- Returns:
- threshold energy, in eV
- Throws:
DeviceException
-
_getGain
protected int _getGain()- Specified by:
_getGainin classAreaDetectorPilatusBase
-
_setGain
- Specified by:
_setGainin classAreaDetectorPilatusBase
-
getEnergyDemand
- Throws:
DeviceException
-
setEnergyDemand
- Throws:
DeviceException
-
_getImageMode
- Specified by:
_getImageModein classAreaDetectorPilatusBase- Throws:
DeviceException
-
_setImageMode
- Specified by:
_setImageModein classAreaDetectorPilatusBase- Throws:
DeviceException
-
_getMode
- Specified by:
_getModein classAreaDetectorPilatusBase- Throws:
DeviceException
-
_setMode
- Specified by:
_setModein classAreaDetectorPilatusBase- Throws:
DeviceException
-
_setWavelength
- Specified by:
_setWavelengthin classAreaDetectorPilatusBase- Throws:
IOException
-
_setDetectorDistance
- Specified by:
_setDetectorDistancein classAreaDetectorPilatusBase- Throws:
IOException
-
_setDetectorVOffset
- Specified by:
_setDetectorVOffsetin classAreaDetectorPilatusBase- Throws:
IOException
-
_setBeamX
- Specified by:
_setBeamXin classAreaDetectorPilatusBase- Throws:
IOException
-
_setBeamY
- Specified by:
_setBeamYin classAreaDetectorPilatusBase- Throws:
IOException
-
_setFlux
- Specified by:
_setFluxin classAreaDetectorPilatusBase- Throws:
IOException
-
_setTransmission
- Specified by:
_setTransmissionin classAreaDetectorPilatusBase- Throws:
IOException
-
_setStartAngle
- Specified by:
_setStartAnglein classAreaDetectorPilatusBase- Throws:
IOException
-
_setOscillationSize
- Specified by:
_setOscillationSizein classAreaDetectorPilatusBase- Throws:
IOException
-
_setOscillationAxis
- Specified by:
_setOscillationAxisin classAreaDetectorPilatusBase- Throws:
IOException
-
_setPolarization
- Specified by:
_setPolarizationin classAreaDetectorPilatusBase- Throws:
IOException
-
_setAlpha
- Specified by:
_setAlphain classAreaDetectorPilatusBase- Throws:
IOException
-
_setKappa
- Specified by:
_setKappain classAreaDetectorPilatusBase- Throws:
IOException
-
_setPhi
- Specified by:
_setPhiin classAreaDetectorPilatusBase- Throws:
IOException
-
_setPhiIncrement
- Specified by:
_setPhiIncrementin classAreaDetectorPilatusBase- Throws:
IOException
-
_setChi
- Specified by:
_setChiin classAreaDetectorPilatusBase- Throws:
IOException
-
_setChiIncrement
- Specified by:
_setChiIncrementin classAreaDetectorPilatusBase- Throws:
IOException
-
_setOmega
- Specified by:
_setOmegain classAreaDetectorPilatusBase- Throws:
IOException
-
_setTwoTheta
- Specified by:
_setTwoThetain classAreaDetectorPilatusBase- Throws:
IOException
-
_setOmegaIncrement
- Specified by:
_setOmegaIncrementin classAreaDetectorPilatusBase- Throws:
IOException
-
_setCbfTemplate
- Specified by:
_setCbfTemplatein classAreaDetectorPilatusBase- Throws:
IOException
-
setFilepath
- Throws:
DeviceException
-
setFileprefix
- Parameters:
prefix- file name- Throws:
DeviceException
-
setFilenumber
- Parameters:
fileNumber- next file #- Throws:
DeviceException
-
getFilenumber
- Throws:
DeviceException
-
_getAutoIncrement
- Specified by:
_getAutoIncrementin classAreaDetectorPilatusBase- Throws:
DeviceException
-
_setAutoIncrement
- Specified by:
_setAutoIncrementin classAreaDetectorPilatusBase- Throws:
DeviceException
-
setFileformat
- Throws:
DeviceException
-
_setGapFill
- Specified by:
_setGapFillin classAreaDetectorPilatusBase- Throws:
DeviceException
-
setNumberOfExposures
- Throws:
DeviceException
-
setNumberOfImages
- Throws:
DeviceException
-
setDelayTime
- Throws:
DeviceException
-
setExposureTime
- Throws:
DeviceException
-
setExposurePeriod
- Throws:
DeviceException
-
setFileHeader
- Throws:
DeviceException
-
_abort
- Specified by:
_abortin classAreaDetectorPilatusBase- Throws:
IOException
-
start
Description copied from interface:DetectorStart data collection- Specified by:
startin interfaceDetector- Overrides:
startin classAreaDetectorPilatusBase- Parameters:
file- - the name of the file to createomegaStart- - the starting angle of data collection (to go into image header)- Throws:
DeviceException
-
_start
- Specified by:
_startin classAreaDetectorPilatusBase- Throws:
DeviceException
-
_waitForArmed
- Specified by:
_waitForArmedin classAreaDetectorPilatusBase- Throws:
DeviceException
-
_isBusy
- Specified by:
_isBusyin classAreaDetectorPilatusBase- Throws:
IOException
-
_isAcquiring
Description copied from class:AreaDetectorPilatusBaseonly way to guarantee that an acquire is done is by looking at the acquire state, according to Ulrik P- Specified by:
_isAcquiringin classAreaDetectorPilatusBase- Throws:
IOException
-
enableRoiMode
- Throws:
DeviceException
-
disableRoiMode
- Throws:
DeviceException
-
isInRoiMode
public boolean isInRoiMode() -
getFullSizeX
public int getFullSizeX() -
getFullSizeY
public int getFullSizeY() -
getFullDimensionInMm
-
getMaxFullDimension
public double getMaxFullDimension()
-