Class HC1ScanManager

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

public class HC1ScanManager extends SampleFolderPrefixScanManager implements Findable, org.springframework.beans.factory.InitializingBean, gda.observable.IObserver
This class creates and maps an instance of HC1DataCollection object parameters, which defines a HC1 experiment, to an xml file that is written to disk and then placed on the command queue pending execution.
  • Field Details

  • Constructor Details

    • HC1ScanManager

      public HC1ScanManager()
  • Method Details

    • runHC1ScanXML

      public void runHC1ScanXML(HC1DataCollectionModel model)
      Creates two .xml hc1 experiment parameter files, one that reflects the current experiment run parameters, and a copy of this which has a unique file name, times stamped for historic reference. Both files are persisted in {current visit directory}/xml. The current experiment file is added onto the command queue
      Parameters:
      model - the hc1 model to map to the hc1 experiment .xml output file
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Overrides:
      afterPropertiesSet in class AbstractScanManager
      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.
    • update

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