Package gda.rcp.mx.datacollection.model
Class DataCollectionScanManager
java.lang.Object
gda.rcp.mx.scanmanager.AbstractScanManager
gda.rcp.mx.scanmanager.SampleFolderPrefixScanManager
gda.rcp.mx.datacollection.model.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 Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class gda.rcp.mx.scanmanager.SampleFolderPrefixScanManager
folderNameProvider, folderResolver, folderValidator, prefixProvider, prefixResolver, prefixValidator, sampleChangerController, sampleProviderFields inherited from class gda.rcp.mx.scanmanager.AbstractScanManager
scanFolder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidGet the default file used to read in saved extended collect requestsReturns the data collection modeldoublegetName()Get the object name.booleanDefault MX behaviour (with isGroupEcrsBySample=true) is to group ECRs by sample and submit that collection to the server.booleanloadDataCollectionFile(File dataCollectionFile) Load the data collection file and return Null if it does not exist or does not load properly.static StringvoidrunDataCollectionScan(DataCollectionModel model, DataCollectionScanManager manager, DataCollectionRow[] rows) 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 themvoidsetDetDistResolutionConverter(IDetDistResolutionConverter detDistResolutionConverter) voidsetDetector(Detector detector) voidsetEcrParametersFile(String ecrParametersFile) voidsetEnergyChangeToBeConfirmed_eV(double energyChangeToBeConfirmed_eV) voidsetGroupEcrsBySample(boolean isGroupEcrsBySample) Default MX behaviour (with isGroupEcrsBySample=true) is to group ECRs by sample and submit that collection to the server.voidsetIsSampleChangerPresent(Boolean isSampleChangerPresent) voidSet or change the name of the object (as defined in XML).voidsetShowSelectorId(boolean showSelectorId) Methods inherited from class gda.rcp.mx.scanmanager.SampleFolderPrefixScanManager
getFolderNameProvider, getFolderResolver, getFolderValidator, getPrefixProvider, getPrefixResolver, getPrefixValidator, getSampleChangerController, getSampleProvider, setFolderNameProvider, setPrefixProvider, setSampleChangerController, setSampleProviderMethods inherited from class gda.rcp.mx.scanmanager.AbstractScanManager
getScanFolder, getShutterController, setScanFolder, setShutterController, shutterStateIsOK
-
Field Details
-
NAME_TABLE_INPUT
- See Also:
-
NAME_SINGLE
- See Also:
-
NAME_SCREENING
- See Also:
-
NAME_SEM
- See Also:
-
dataCollectionParametersFile
- See Also:
-
screeningParametersFile
- See Also:
-
-
Constructor Details
-
DataCollectionScanManager
public DataCollectionScanManager() -
DataCollectionScanManager
public DataCollectionScanManager(boolean isScreeningMode)
-
-
Method Details
-
getEcrParametersFile
-
setEcrParametersFile
-
setIsSampleChangerPresent
-
getIsSampleChangerPresent
-
isShowSelectorId
public boolean isShowSelectorId() -
setShowSelectorId
public void setShowSelectorId(boolean showSelectorId) -
setDetDistResolutionConverter
-
getDataCollectionModel
Returns the data collection model- Returns:
- the relevant model
-
getDataCollectionEcrFile
Get the default file used to read in saved extended collect requests -
getUniqueDataCollectionEcrFile
-
loadDataCollectionParameters
-
loadDataCollectionFile
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 usemanager- scan manager to userows- collection rows to process, unless empty in which case all rows are used.- Throws:
Exception
-
setName
Description copied from interface:FindableSet or change the name of the object (as defined in XML). -
getName
Description copied from interface:FindableGet the object name. Used by Castor to check if the object name has been set before calling theFindable.setName(String)method. -
setDetector
-
getDetector
-
getEnergyChangeToBeConfirmed_eV
public double getEnergyChangeToBeConfirmed_eV() -
setEnergyChangeToBeConfirmed_eV
public void setEnergyChangeToBeConfirmed_eV(double energyChangeToBeConfirmed_eV) -
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Overrides:
afterPropertiesSetin classAbstractScanManager- Throws:
Exception
-
removeBadFileSpecCharacters
-
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
-