Class DataCollectionScanManager

All Implemented Interfaces:
Findable, IScanManager, FolderPrefixHandler, SampleHandler, org.springframework.beans.factory.InitializingBean

public class DataCollectionScanManager extends SampleFolderPrefixScanManager implements Findable, org.springframework.beans.factory.InitializingBean
  • Field Details

  • Constructor Details

    • DataCollectionScanManager

      public DataCollectionScanManager()
    • DataCollectionScanManager

      public DataCollectionScanManager(boolean isScreeningMode)
  • Method Details

    • getEcrParametersFile

      public String getEcrParametersFile()
    • setEcrParametersFile

      public void setEcrParametersFile(String ecrParametersFile)
    • setIsSampleChangerPresent

      public void setIsSampleChangerPresent(Boolean isSampleChangerPresent)
    • getIsSampleChangerPresent

      public Boolean getIsSampleChangerPresent()
    • isShowSelectorId

      public boolean isShowSelectorId()
    • setShowSelectorId

      public void setShowSelectorId(boolean showSelectorId)
    • setDetDistResolutionConverter

      public void setDetDistResolutionConverter(IDetDistResolutionConverter detDistResolutionConverter)
    • getDataCollectionModel

      public DataCollectionModel getDataCollectionModel()
      Returns the data collection model
      Returns:
      the relevant model
    • getDataCollectionEcrFile

      public File getDataCollectionEcrFile()
      Get the default file used to read in saved extended collect requests
    • getUniqueDataCollectionEcrFile

      public File getUniqueDataCollectionEcrFile()
    • loadDataCollectionParameters

      public DataCollectionParameters loadDataCollectionParameters()
    • loadDataCollectionFile

      public ExtendedCollectRequests loadDataCollectionFile(File dataCollectionFile) throws Exception
      Load the data collection file and return Null if it does not exist or does not load properly.

      Always reloads the file from disk.

      Returns:
      ExtendedCollectRequests or null
      Throws:
      Exception
    • runDataCollectionScan

      public void runDataCollectionScan(DataCollectionModel model, DataCollectionScanManager manager, DataCollectionRow[] rows) throws Exception
      Run a data collection scan for the given fileInfo object and model rows Note that this command will now queue up jobs instead of just running them
      Parameters:
      model - data collection model to use
      manager - scan manager to use
      rows - collection rows to process, unless empty in which case all rows are used.
      Throws:
      Exception
    • setName

      public void setName(String name)
      Description copied from interface: Findable
      Set or change the name of the object (as defined in XML).
      Specified by:
      setName in interface Findable
      Parameters:
      name - the object name
    • getName

      public String getName()
      Description copied from interface: Findable
      Get the object name. Used by Castor to check if the object name has been set before calling the Findable.setName(String) method.
      Specified by:
      getName in interface Findable
      Returns:
      a String containing the object name.
    • setDetector

      public void setDetector(Detector detector)
    • getDetector

      public Detector getDetector()
    • getEnergyChangeToBeConfirmed_eV

      public double getEnergyChangeToBeConfirmed_eV()
    • setEnergyChangeToBeConfirmed_eV

      public void setEnergyChangeToBeConfirmed_eV(double energyChangeToBeConfirmed_eV)
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Overrides:
      afterPropertiesSet in class AbstractScanManager
      Throws:
      Exception
    • removeBadFileSpecCharacters

      public static String removeBadFileSpecCharacters(String s)
    • isGroupEcrsBySample

      public boolean isGroupEcrsBySample()
      Default MX behaviour (with isGroupEcrsBySample=true) is to group ECRs by sample and submit that collection to the server.
      Returns:
      Returns the isGroupEcrsBySample.
    • setGroupEcrsBySample

      public void setGroupEcrsBySample(boolean isGroupEcrsBySample)
      Default MX behaviour (with isGroupEcrsBySample=true) is to group ECRs by sample and submit that collection to the server. This attribute allows that to be overridden so that each table row may be submitted and tracked individually.
      Parameters:
      isGroupEcrsBySample - set handling of ECR submission to server