Package org.opengda.lde.experiments
Class DataCollection
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.jython.ScriptBase
org.opengda.lde.experiments.DataCollection
- All Implemented Interfaces:
Configurable,Findable,gda.observable.IObserver,org.springframework.beans.factory.InitializingBean
public class DataCollection
extends ScriptBase
implements gda.observable.IObserver, org.springframework.beans.factory.InitializingBean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidcollectData(String filename) start LDE data collection.voidengageStage(SampleStage stage) blocking move to engage vacuum pipe in the X-ray beam for the specified stage.voidblocking move to park all sampleStages in their safe positions.voidpause()pause data collection after current sample.voidresume()resume data collection for next sample.voidsetBeamlineID(String beamlineID) voidsetCalibrantNameScannable(Scannable calibrantNameScannable) voidsetDataDriver(String dataDriver) voidsetDataFolder(String dataFolder) voidsetDatareduction(Scannable datareduction) voidsetDetectorArm(DetectorArm detectorArm) voidsetEventAdmin(Scriptcontroller eventAdmin) voidvoidsetResUtil(LDEResourceUtil resUtil) voidsetSampleNameScannable(Scannable sampleNameScannable) voidsetStages(Map<String, SampleStage> sampleStageMap) voidskip()skip data collection for current sample or detector calibration, i.e.voidMethods inherited from class gda.jython.ScriptBase
checkForInterruption, checkForPauses, isPaused, setPausedMethods inherited from class gda.factory.FindableConfigurableBase
getName, setNameMethods inherited from class gda.factory.ConfigurableBase
configure, isConfigureAtStartup, isConfigured, reconfigure, setConfigured
-
Constructor Details
-
DataCollection
public DataCollection()
-
-
Method Details
-
parkAllStages
blocking move to park all sampleStages in their safe positions. It only returns after all sampleStages are parked.- Throws:
DeviceExceptionInterruptedException
-
engageStage
blocking move to engage vacuum pipe in the X-ray beam for the specified stage.- Parameters:
stage-- Throws:
DeviceException
-
collectData
start LDE data collection. Data collection starts with all stages in parking positions, proceed from 1st stage and move down the X-ray beam direction, collect diffraction data from all active samples on these stages along with detector calibration for each of cells having active samples.- Parameters:
filename- - the file containing a list of samples to be collected.- Throws:
InterruptedException
-
pause
public void pause()pause data collection after current sample. This does NOT pause current sample collection if it already started. -
resume
public void resume()resume data collection for next sample. -
skip
public void skip()skip data collection for current sample or detector calibration, i.e. request early finish. -
getDataDriver
-
setDataDriver
-
getDataFolder
-
setDataFolder
-
getBeamlineID
-
setBeamlineID
-
getResUtil
-
setResUtil
-
getEventAdmin
-
setEventAdmin
-
getStages
-
setStages
-
getDetectorArm
-
setDetectorArm
-
getSampleNameScannable
-
setSampleNameScannable
-
getCalibrantNameScannable
-
setCalibrantNameScannable
-
getDatareduction
-
setDatareduction
-
getPixium
-
setPixium
-
update
- Specified by:
updatein interfacegda.observable.IObserver
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-