Class 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 Details

    • DataCollection

      public DataCollection()
  • Method Details

    • parkAllStages

      public void parkAllStages() throws DeviceException, InterruptedException
      blocking move to park all sampleStages in their safe positions. It only returns after all sampleStages are parked.
      Throws:
      DeviceException
      InterruptedException
    • engageStage

      public void engageStage(SampleStage stage) throws DeviceException
      blocking move to engage vacuum pipe in the X-ray beam for the specified stage.
      Parameters:
      stage -
      Throws:
      DeviceException
    • collectData

      public void collectData(String filename) throws InterruptedException
      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

      public String getDataDriver()
    • setDataDriver

      public void setDataDriver(String dataDriver)
    • getDataFolder

      public String getDataFolder()
    • setDataFolder

      public void setDataFolder(String dataFolder)
    • getBeamlineID

      public String getBeamlineID()
    • setBeamlineID

      public void setBeamlineID(String beamlineID)
    • getResUtil

      public LDEResourceUtil getResUtil()
    • setResUtil

      public void setResUtil(LDEResourceUtil resUtil)
    • getEventAdmin

      public Scriptcontroller getEventAdmin()
    • setEventAdmin

      public void setEventAdmin(Scriptcontroller eventAdmin)
    • getStages

      public Map<String,SampleStage> getStages()
    • setStages

      public void setStages(Map<String,SampleStage> sampleStageMap)
    • getDetectorArm

      public DetectorArm getDetectorArm()
    • setDetectorArm

      public void setDetectorArm(DetectorArm detectorArm)
    • getSampleNameScannable

      public Scannable getSampleNameScannable()
    • setSampleNameScannable

      public void setSampleNameScannable(Scannable sampleNameScannable)
    • getCalibrantNameScannable

      public Scannable getCalibrantNameScannable()
    • setCalibrantNameScannable

      public void setCalibrantNameScannable(Scannable calibrantNameScannable)
    • getDatareduction

      public Scannable getDatareduction()
    • setDatareduction

      public void setDatareduction(Scannable datareduction)
    • getPixium

      public Detector getPixium()
    • setPixium

      public void setPixium(Detector pixium)
    • update

      public void update(Object source, Object arg)
      Specified by:
      update in interface gda.observable.IObserver
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception